/** * INTERNAL: * Begin an external transaction. * * @param session The session for which the transaction is being begun. */ public void beginTransaction(AbstractSession session) { try { Object status = getTransactionStatus(); logTxStateTrace(session, "TX_begin", status); // Make sure that we are in a state that we can actually start // a transaction (e.g. ensure one is not already in progress) if (canBeginTransaction_impl(status)) { logTxTrace(session, "TX_beginningTxn", null); beginTransaction_impl(); session.setWasJTSTransactionInternallyStarted(true); } } catch (Exception exception) { throw TransactionException.errorBeginningExternalTransaction(exception); } }
/** * INTERNAL: * Begin an external transaction. * * @param session The session for which the transaction is being begun. */ public void beginTransaction(AbstractSession session) { try { Object status = getTransactionStatus(); logTxStateTrace(session, "TX_begin", status); // Make sure that we are in a state that we can actually start // a transaction (e.g. ensure one is not already in progress) if (canBeginTransaction_impl(status)) { logTxTrace(session, "TX_beginningTxn", null); beginTransaction_impl(); session.setWasJTSTransactionInternallyStarted(true); } } catch (Exception exception) { throw TransactionException.errorBeginningExternalTransaction(exception); } }
/** * INTERNAL: * Begin an external transaction. * * @param session The session for which the transaction is being begun. */ public void beginTransaction(AbstractSession session) { try { Object status = getTransactionStatus(); logTxStateTrace(session, "TX_begin", status); // Make sure that we are in a state that we can actually start // a transaction (e.g. ensure one is not already in progress) if (canBeginTransaction_impl(status)) { logTxTrace(session, "TX_beginningTxn", null); beginTransaction_impl(); session.setWasJTSTransactionInternallyStarted(true); } } catch (Exception exception) { throw TransactionException.errorBeginningExternalTransaction(exception); } }