/** * Called from beforeCompletion external transaction synchronization listener callback * to close the external connection corresponding to the completing external transaction. * Final sql calls could be sent through the connection by this method * before it closes the connection. */ public void closeJTSConnection() { if (usesExternalTransactionController()) { this.isInTransaction = false; if (this.usesExternalConnectionPooling) { closeConnection(); } } }
/** * Called from beforeCompletion external transaction synchronization listener callback * to close the external connection corresponding to the completing external transaction. * Final sql calls could be sent through the connection by this method * before it closes the connection. */ public void closeJTSConnection() { if (usesExternalTransactionController()) { this.isInTransaction = false; if (this.usesExternalConnectionPooling) { closeConnection(); } } }
/** * Called from beforeCompletion external transaction synchronization listener callback * to close the external connection corresponding to the completing external transaction. * Final sql calls could be sent through the connection by this method * before it closes the connection. */ public void closeJTSConnection() { if (usesExternalTransactionController()) { this.isInTransaction = false; if (this.usesExternalConnectionPooling) { closeConnection(); } } }
/** * Begin a transaction on the database. If not using managed transaction begin a local transaction. */ public void beginTransaction(AbstractSession session) throws DatabaseException { if (usesExternalTransactionController()) { if (session.isExclusiveConnectionRequired() && !this.isInTransaction && this.usesExternalConnectionPooling) { closeConnection(); } this.isInTransaction = true; return; } session.log(SessionLog.FINER, SessionLog.TRANSACTION, "begin_transaction", (Object[])null, this); try { session.startOperationProfile(SessionProfiler.TRANSACTION); incrementCallCount(session); basicBeginTransaction(session); this.isInTransaction = true; } finally { decrementCallCount(); session.endOperationProfile(SessionProfiler.TRANSACTION); } }
/** * Begin a transaction on the database. If not using managed transaction begin a local transaction. */ public void beginTransaction(AbstractSession session) throws DatabaseException { if (usesExternalTransactionController()) { if (session.isExclusiveConnectionRequired() && !this.isInTransaction && this.usesExternalConnectionPooling) { closeConnection(); } this.isInTransaction = true; return; } session.log(SessionLog.FINER, SessionLog.TRANSACTION, "begin_transaction", (Object[])null, this); try { session.startOperationProfile(SessionProfiler.Transaction); incrementCallCount(session); basicBeginTransaction(session); this.isInTransaction = true; } finally { decrementCallCount(); session.endOperationProfile(SessionProfiler.Transaction); } }
/** * Begin a transaction on the database. If not using managed transaction begin a local transaction. */ public void beginTransaction(AbstractSession session) throws DatabaseException { if (usesExternalTransactionController()) { if (session.isExclusiveConnectionRequired() && !this.isInTransaction && this.usesExternalConnectionPooling) { closeConnection(); } this.isInTransaction = true; return; } session.log(SessionLog.FINER, SessionLog.TRANSACTION, "begin_transaction", (Object[])null, this); try { session.startOperationProfile(SessionProfiler.Transaction); incrementCallCount(session); basicBeginTransaction(session); this.isInTransaction = true; } finally { decrementCallCount(); session.endOperationProfile(SessionProfiler.Transaction); } }
if (usesExternalTransactionController()) {
if (usesExternalTransactionController()) {
if (usesExternalTransactionController()) {