Class JsonTransactionManager.Context

java.lang.Object
com.ultikits.ultitools.manager.JsonTransactionManager.Context
Enclosing class:
JsonTransactionManager

private static final class JsonTransactionManager.Context extends Object
Internal class to hold JSON transaction state -- the JSON analogue of DataSourceTransactionManager.TransactionContext, minus anything JDBC-specific.
  • Field Details

    • depth

      int depth
    • rollbackOnly

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

      final JsonTransaction transaction
      The staged writes of this context; carried along when the context is suspended.
  • Constructor Details