Examples of endTransaction()


Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

            }
        } catch (EvolizerException e) {
      throw new EvolizerRuntimeException("Error fetching current session", e);
    } finally {
            if (lSession != null) {
                lSession.endTransaction();
            }
        }
        sLogger.debug("Deleting Famix-FamixModel " + fModel.getName() + " from database completed");
       
        return wasSuccessful;
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

            progress.worked(45);
        } catch (EvolizerException e) {
            throw new EvolizerException(e);
        } finally {
            if (lSession != null) {
                lSession.endTransaction();
            }
        }
    }
}
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

      DummyBusinessEntity entity = new DummyBusinessEntity();
      entity.setAString("This is a test");
   
      s.startTransaction();
      s.saveObject(entity);
      s.endTransaction();
   
      s.close();
   
      fSessionHandler.dropSchema(fDBUrl, fDBDialect, fDBDriverName, fDBUser, fDBPasswd);
   
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

      DummyBusinessEntity entity = new DummyBusinessEntity();
      entity.setAString("This is also a test");
   
      s.startTransaction();
      s.saveObject(entity);
      s.endTransaction();
   

      List<DummyBusinessEntity> lgList = (List<DummyBusinessEntity>) s.query("from " + DummyBusinessEntity.class.getName(), DummyBusinessEntity.class);
   
      assertNotNull(lgList);
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      for(Object o : objects) {
        s.saveObject(o);
      }
      s.endTransaction();
      s.close();
    } catch (EvolizerException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.endTransaction()

  private <T>T saveAndReloadUniqueFromDB(Object object, String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(object);
      s.endTransaction();

      s.close();

      s = fSessionHandler.getCurrentSession(fDBUrl);
View Full Code Here

Examples of org.h2.android.H2Database.endTransaction()

            db.beginTransaction();
            for (int i = 0; i < 1000; i++) {
                db.execSQL("INSERT INTO TEST VALUES(?, 'Hello')", new Object[] { i });
            }
            db.setTransactionSuccessful();
            db.endTransaction();
            log("inserted");
            for (int i = 0; i < 10; i++) {
                Cursor c = db.rawQuery("select * from test where id=?", new String[] { "" + i });
                int count = c.getCount();
                if (count > 0) {
View Full Code Here

Examples of org.jbpm.persistence.db.DbPersistenceService.endTransaction()

    private void startNewTxn(final JbpmJsfContextImpl jbpmJsfContext) {
        if (jbpmJsfContext.hasJbpmContext()) {
            final JbpmContext jbpmContext = jbpmJsfContext.getJbpmContext();
            DbPersistenceService dbPersistenceService = (DbPersistenceService) jbpmContext.getServices().getPersistenceService();
            log.fine("Committing transaction");
            dbPersistenceService.endTransaction();
            dbPersistenceService.beginTransaction();
        }
    }

    private static final Logger log = Logger.getLogger("org.jbpm.jsf.core.phase.JbpmPhaseListener");
View Full Code Here

Examples of org.jtester.core.context.TransactionManager.endTransaction()

    @Override
    public void afterMethodRunned(Object testObject, Method testMethod, Throwable testThrowable) {
      boolean isEnabledTransaction = TestedObject.isTransactionsEnabled();
      TransactionManager transaction = TestedObject.getLocalTransactionManager();
      if (isEnabledTransaction && transaction != null) {
        transaction.endTransaction();
      }
    }

    /**
     * 移除测试方法的事务<br>
 
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.DataService.endTransaction()

    }
    OMElement result = processSingleRequest();
    if (inTx) {
      /* signal the end of transaction, this wont necessarily commit the
       * transaction, it will be done by the external transaction creator */
      dataService.endTransaction();
    }
    return result;
  }
 
  private OMElement processSingleRequest() throws DataServiceFault {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.