Package com.ultikits.ultitools.manager
Class JsonTransactionManager.Context
java.lang.Object
com.ultikits.ultitools.manager.JsonTransactionManager.Context
- Enclosing class:
JsonTransactionManager
Internal class to hold JSON transaction state -- the JSON analogue of
DataSourceTransactionManager.TransactionContext, minus anything JDBC-specific.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) booleanD-08: set by an innerJsonTransactionManager.rollback()at depth > 1 instead of tearing the context down.(package private) final JsonTransactionThe staged writes of this context; carried along when the context is suspended. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
depth
int depth -
rollbackOnly
boolean rollbackOnlyD-08: set by an innerJsonTransactionManager.rollback()at depth > 1 instead of tearing the context down. The outerJsonTransactionManager.commit()at depth 1 checks this before committing -- if set, it discards the staged writes and throwsUnexpectedRollbackExceptionrather than silently committing (or silently returning) as if the inner rollback never happened. -
transaction
The staged writes of this context; carried along when the context is suspended.
-
-
Constructor Details
-
Context
Context(JsonTransaction transaction)
-