public interface Commitable
Modifier and Type | Method and Description |
---|---|
void |
commit(boolean transaction)
Saves any temporary state to the persistent form or storage that is
associated with this class.
|
void |
rollback(boolean transaction)
Notifies that a rollback has just occurred (all state maintained
through the
Undoable interface has been already rolled back). |
void |
rollbackPending()
Notifies that a pending rollback has just occurred (i.e.
|
void |
validate(boolean transaction)
Notifies that a block is about to be normally exited or normally
iterated and that any deferred validation processing should be executed.
|
void commit(boolean transaction)
transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).void rollback(boolean transaction)
Undoable
interface has been already rolled back).
This notification can be used to implement cleanup of any custom
state that needs to be maintained in this case. It can also be used
to implement a rollback that is completely independent of the
Undoable
(externally driven) interface.transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).void rollbackPending()
void validate(boolean transaction) throws ErrorConditionException
LEAVE
, NEXT
and
RETURN
are also considered normal exits or iterations so
long as they were not preceded by an UNDO
. Likewise, a
QUIT
is a normal exit so long as it is not inside a block
that has an ON QUIT UNDO, <action>
.transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).ErrorConditionException
- If validation fails.