Package com.ultikits.ultitools.manager
Class DataSourceTransactionManager.TransactionContext
java.lang.Object
com.ultikits.ultitools.manager.DataSourceTransactionManager.TransactionContext
- Enclosing class:
DataSourceTransactionManager
Internal class to hold transaction state.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) Connection(package private) int(package private) boolean(package private) int(package private) booleanD-08: set by an innerrollback()at depth > 1 instead of tearing the context down.(package private) LongD-10: set byDataSourceTransactionManager.setTimeout(int)to theSystem.nanoTime()value at which this transaction's query-timeout budget expires. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
connection
Connection connection -
active
boolean active -
depth
int depth -
originalIsolation
int originalIsolation -
originalAutoCommit
boolean originalAutoCommit -
rollbackOnly
boolean rollbackOnlyD-08: set by an innerrollback()at depth > 1 instead of tearing the context down. The outercommit()at depth 1 checks this before committing - if set, it performs a real rollback, cleans up, and throwsUnexpectedRollbackExceptionrather than silently committing (or silently returning) as if the inner rollback never happened. -
timeoutDeadlineNanos
Long timeoutDeadlineNanosD-10: set byDataSourceTransactionManager.setTimeout(int)to theSystem.nanoTime()value at which this transaction's query-timeout budget expires.nullmeans no timeout is configured --DataSourceTransactionManager.getTimeoutDeadlineNanos()reports that as-is, never coercing it to a sentinel like0or-1.
-
-
Constructor Details
-
TransactionContext
TransactionContext()
-