Examples of commitTransaction()


Examples of ch.ethz.vs.rowa.Middleware.commitTransaction()

   
    mware.executeQuery(c1, null, "do some query");
    mware.executeQuery(c2, null, "do some query");
    mware.executeQuery(c2, null, "query 2");
    mware.executeQuery(c1, null, "query 2");
    mware.commitTransaction(c1);
   
   
   
   
    mware.commitTransaction(c2);
View Full Code Here

Examples of ch.ethz.vs.rowa.Middleware.commitTransaction()

    mware.commitTransaction(c1);
   
   
   
   
    mware.commitTransaction(c2);
    //mware.shutdown();
   
  }
}
View Full Code Here

Examples of com.alibaba.druid.support.ibatis.SqlMapClientWrapper.commitTransaction()

        } catch (Exception ex) {
            error = ex;
        }
        Assert.assertNotNull(error);
        wrapper.startTransaction();
        wrapper.commitTransaction();
       
        wrapper.getMappedStatement("Sequence.getValue");
       
        wrapper.isEnhancementEnabled();
        wrapper.isLazyLoadingEnabled();
View Full Code Here

Examples of com.alibaba.druid.support.ibatis.SqlMapSessionWrapper.commitTransaction()

        SqlMapSessionImpl session = new SqlMapSessionImpl(client);
        SqlMapSessionWrapper wrapper = new SqlMapSessionWrapper(client, session);

        wrapper.startTransaction();
        wrapper.commitTransaction();
        wrapper.getDataSource();
        wrapper.getCurrentConnection();
        wrapper.getUserConnection();
        wrapper.close();
    }
View Full Code Here

Examples of com.avaje.ebean.EbeanServer.commitTransaction()

  @Override
  public void afterInvocation()
  {
    EbeanServer ebean = EbeanContext.server();
    if (ebean != null && ebean.currentTransaction() != null) ebean.commitTransaction();
  }

  @Override
  public void invocationFinally()
  {
View Full Code Here

Examples of com.buschmais.jqassistant.core.store.api.Store.commitTransaction()

        try {
            projectDescriptor = resolveProject(project, MavenProjectDirectoryDescriptor.class);
            projectDescriptor.setFileName(project.getBasedir().getAbsolutePath());
            projectDescriptor.setPackaging(project.getPackaging());
        } finally {
            store.commitTransaction();
        }
        Artifact artifact = project.getArtifact();
        ArtifactDescriptor mainArtifactDescriptor = scanClassesDirectory(projectDescriptor, artifact, false, project.getBuild().getOutputDirectory(), scanner);
        ArtifactDescriptor testArtifactDescriptor = scanClassesDirectory(projectDescriptor, artifact, true, project.getBuild().getTestOutputDirectory(),
                scanner);
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.commitTransaction()

    public <T> T executeTransaction(TransactionOptions options, TransactionalTask<T> task) throws TransactionException {
        final TransactionContext context = newTransactionContext(options);
        context.beginTransaction();
        try {
            final T value = task.execute(context);
            context.commitTransaction();
            return value;
        } catch (Throwable e) {
            context.rollbackTransaction();
            if (e instanceof TransactionException) {
                throw (TransactionException) e;
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.commitTransaction()

    @Override
    public Object innerCall() throws Exception {
        ClientEndpoint endpoint = getEndpoint();
        TransactionContext transactionContext = endpoint.getTransactionContext(txnId);
        if (prepareAndCommit) {
            transactionContext.commitTransaction();
        } else {
            Transaction transaction = TransactionAccessor.getTransaction(transactionContext);
            transaction.commit();
        }
        endpoint.removeTransactionContext(txnId);
View Full Code Here

Examples of com.ibatis.sqlmap.client.SqlMapClient.commitTransaction()

            }
            for (String statement : statements) {
                client.update(statement.trim(), data);
            }
            if (useTrans) {
                client.commitTransaction();
            }
        } finally {
            if (useTrans) {
                client.endTransaction();
            }
View Full Code Here

Examples of com.scooterframework.transaction.TransactionManager.commitTransaction()

      //artificially creating an exception
      int i = 1;
      int j = 0;
      System.out.println("You should not see this line: " + i/j);
     
        tm.commitTransaction();
      }
      catch (Exception ex) {
        tm.rollbackTransaction();
     
      Object countAfterRollback = SqlServiceClient.retrieveObjectBySQL(countSql);
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.