|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple listener to allow tasks to be performed after a transaction is committed or rolled back. A typical use of this listener would be handling repopulation of a data object cache (cf SiteNode). To prevent infinite recursion in the case where the listener itself uses a transaction, listener invocations are one time events - ie the listener is removed immediately after it has run.
TransactionContext
Method Summary | |
void |
afterAbort(TransactionContext txn)
Called immediately after the transaction has aborted |
void |
afterCommit(TransactionContext txn)
Called immediately after the transaction has committed |
void |
beforeAbort(TransactionContext txn)
Called immediately before the transaction has aborted |
void |
beforeCommit(TransactionContext txn)
Called immediately before the transaction has committed |
Method Detail |
public void beforeCommit(TransactionContext txn)
public void afterCommit(TransactionContext txn)
public void beforeAbort(TransactionContext txn)
public void afterAbort(TransactionContext txn)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |