static class TransactionManager.UndoableHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TransactionManager.WorkArea |
wa
The
TransactionManager.WorkArea instance. |
Constructor and Description |
---|
UndoableHelper(TransactionManager.WorkArea wa)
Create a new instance and associate the given WorkArea instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processUndoables()
Check if undoable can be processed by the current block.
|
int |
registerUndoable(LazyUndoable src)
Register the undoable with all transaction blocks (currently in the stack) started after
the given transaction level.
|
private TransactionManager.WorkArea wa
TransactionManager.WorkArea
instance.public UndoableHelper(TransactionManager.WorkArea wa)
wa
- The TransactionManager.WorkArea
instance.public int registerUndoable(LazyUndoable src)
src
- The undoable instance.TransactionManager.WorkArea.txNestingLevel
.public boolean processUndoables()
true
if a transaction has been started and the current block's
transaction level is not TransactionManager.NO_TRANSACTION
.