Package com.jengine.orm.db

Examples of com.jengine.orm.db.DBSavePoint


        clearData();
        connection.startTransaction();
        loadData();
            // save point
            DBSavePoint point = connection.savePoint();
            Author.cls.get(1).setLastName("test1");
            connection.rollback(point);
            connection.releasePoint(point);
        connection.commit();
        check( Author.cls.count() > 0 );
View Full Code Here


                throw new DBException(e);
            } finally {
                connection.finishTransaction();
            }
        } else {
            DBSavePoint point = connection.savePoint();
            try{
                remove(obj);
                insert(obj);
            } catch (Exception e) {
                connection.rollback(point);
View Full Code Here

    }

    public DBSavePoint savePoint(String name) throws DBException {
        try {
            logger.info("Save Point '" + name + "' start");
            return new DBSavePoint(getNativeConnection().setSavepoint(name));
        } catch (SQLException e) {
            throw new DBException(e);
        }
    }
View Full Code Here

    }

    public DBSavePoint savePoint() throws DBException {
        try {
            logger.info("Save Point start");
            return new DBSavePoint(getNativeConnection().setSavepoint());
        } catch (SQLException e) {
            throw new DBException(e);
        }
    }
View Full Code Here

        //TransactionalPortalCacheHelper.();
    }

    public DBSavePoint savePoint(String name) throws DBException {
        log.debug("Save Point '" + name + "' start");
        return new DBSavePoint(null);
    }
View Full Code Here

        return new DBSavePoint(null);
    }

    public DBSavePoint savePoint() throws DBException {
        log.debug("Save Point start");
        return new DBSavePoint(null);
    }
View Full Code Here

        clearData();
        connection.startTransaction();
        loadData();
            // save point
            DBSavePoint point = connection.savePoint();
            Author.cls.get(1).setLastName("test1");
            connection.rollback(point);
            connection.releasePoint(point);
        connection.commit();
        check( Author.cls.count() > 0 );
View Full Code Here

TOP

Related Classes of com.jengine.orm.db.DBSavePoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.