|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Commitable serves as a placeholder for an action that is either delayed until it is safe to execute, or that can be undone.
Commitables are collected in a Transaction
and either
will all of them be commited
or all of them rolled back
. If something really bad happens during commit or
rollback, e.g. a database commit fails, a FatalTransactionException should
be thrown to signal that the whole commit or rollback operation is void.
Method Summary | |
void |
commit()
Commit the action of the Commitable. |
void |
rollback()
Undo the action of the Commitable. |
Method Detail |
public void commit() throws FatalTransactionException
FatalTransactionException
- If something fails in a way
that makes completion of commit impossible.public void rollback() throws FatalTransactionException
FatalTransactionException
- If something fails in a way
that makes completion of rollback impossible.
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |