Class DataSourceTransactionManager.TransactionContext

java.lang.Object
com.ultikits.ultitools.manager.DataSourceTransactionManager.TransactionContext
Enclosing class:
DataSourceTransactionManager

static class DataSourceTransactionManager.TransactionContext extends Object
Internal class to hold transaction state.
  • Field Details

    • connection

      Connection connection
    • active

      boolean active
    • depth

      int depth
    • originalIsolation

      int originalIsolation
    • originalAutoCommit

      boolean originalAutoCommit
    • rollbackOnly

      boolean rollbackOnly
      D-08: set by an inner rollback() at depth > 1 instead of tearing the context down. The outer commit() at depth 1 checks this before committing - if set, it performs a real rollback, cleans up, and throws UnexpectedRollbackException rather than silently committing (or silently returning) as if the inner rollback never happened.
    • timeoutDeadlineNanos

      Long timeoutDeadlineNanos
      D-10: set by DataSourceTransactionManager.setTimeout(int) to the System.nanoTime() value at which this transaction's query-timeout budget expires. null means no timeout is configured -- DataSourceTransactionManager.getTimeoutDeadlineNanos() reports that as-is, never coercing it to a sentinel like 0 or -1.
  • Constructor Details

    • TransactionContext

      TransactionContext()