|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionEventListener
Listener interface for TransactionService
-related events.
Any service interested in those events should register itself as a listener.
In general, application code does not need to be notified by this kind of
events, actually this feature is more used internally by various
implementations of TransactionService
.
Please not that this interface may change later if necessary (while developping actual implementations for TransactionService).
Method Summary | |
---|---|
void |
afterNewTransactionBegins()
Called immediately after a new transaction has been created by the TransactionService . |
void |
afterTransactionEnds(boolean committed)
Called immediately after the current transaction has been closed by the TransactionService . |
void |
beforeNewTransactionBegins()
Called immediately before a new transaction is created by the TransactionService . |
void |
beforeTransactionEnds(boolean committed)
Called immediately before the current transaction is to be closed by the TransactionService . |
Method Detail |
---|
void beforeNewTransactionBegins()
TransactionService
.
void afterNewTransactionBegins()
TransactionService
.
void beforeTransactionEnds(boolean committed)
TransactionService
.
committed
- true
if the current transaction will be
committed, false
if it will be rolled backvoid afterTransactionEnds(boolean committed)
TransactionService
.
committed
- true
if the current transaction has been
committed, false
if it has been rolled back
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |