|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The StateHolder interface is used by CommitableStateChange to make the change of an Object's state
part of a Transaction.
The StateHolder's saveState method is called by
the constructor of the CommitableStateChange. Its return value can
hold any kind of information that will be passed on to commitState or restoreState,
e.g. the saved state itself or just a flag, whether the
state was actually saved.
| Method Summary | |
void |
commitState(java.lang.Object info)
Commit the saved state of the StateHolder. |
void |
restoreState(java.lang.Object info)
Restore the StateHolder's state. |
java.lang.Object |
saveState()
Save the StateHolder's state. |
| Method Detail |
public java.lang.Object saveState()
commitState or restoreState.
public void commitState(java.lang.Object info)
throws FatalTransactionException
info - The information returned from saveState.FatalTransactionException - If something fails in a way that
corrupts the whole Transaction.
public void restoreState(java.lang.Object info)
throws FatalTransactionException
info - The information returned from saveState.FatalTransactionException - If something fails in a way that
corrupts the whole Transaction.
|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||