public void beforeCompletion() { getSynchronizations().beforeTransactionCommit(); }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { btm.commit(); success = true; } finally { synchronizations.afterTransactionCompletion(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JTA transaction"); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { delegate.commit(); success = true; } finally { synchronizations.afterTransactionCompletion(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { UserTransaction userTransaction = ejbContext.getUserTransaction(); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { userTransaction.commit(); success = true; } finally { synchronizations.afterTransactionCompletion(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JTA transaction"); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { delegate.commit(); success = true; } finally { synchronizations.afterTransactionCommit(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { UserTransaction userTransaction = ejbContext.getUserTransaction(); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { userTransaction.commit(); success = true; } finally { synchronizations.afterTransactionCommit(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JPA resource-local transaction"); javax.persistence.EntityTransaction delegate = getDelegate(); boolean success = false; try { if (delegate.getRollbackOnly()) { delegate.rollback(); throw new RollbackException(); } else { getSynchronizations().beforeTransactionCommit(); delegate.commit(); success = true; } } finally { getSynchronizations().afterTransactionCompletion(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JPA resource-local transaction"); assertActive(); javax.persistence.EntityTransaction delegate = getDelegate(); clearEntityManager(); boolean success = false; try { if ( delegate.getRollbackOnly() ) { delegate.rollback(); throw new RollbackException(); } else { getSynchronizations().beforeTransactionCommit(); delegate.commit(); success = true; } } finally { getSynchronizations().afterTransactionCommit(success); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing JPA resource-local transaction"); Transaction delegate = getDelegate(); boolean success = false; boolean tempSynchronizationRegistered = synchronizationRegistered; try { if (delegate.isActive()) { if (!rollbackOnly) { if (!tempSynchronizationRegistered) { // should only occur if the user started the transaction // directly through the session getSynchronizations().beforeTransactionCommit(); } delegate.commit(); success = true; } else { rollback(); } } } finally { if (!tempSynchronizationRegistered) { getSynchronizations().afterTransactionCompletion(success); } } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { log.debug("committing Spring transaction"); assertActive(); boolean success = false; Synchronizations synchronizations = getSynchronizations(); synchronizations.beforeTransactionCommit(); try { getPlatformTransactionManagerRequired().commit(currentTransaction); success = true; } finally { currentTransaction = null; synchronizations.afterTransactionCommit(success); } }