|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommitListener
Represents a listener that will be notified whenever a Transaction
is
committed. This interface is meant to be implemented by users of the
Framework.
Note that the implementation of this interface MUST be thread-safe, since
there may be several Transactions being committed at once, causing the
methods in the listener to be called concurrently.
Method Summary | |
---|---|
void |
afterCommit(Transaction transaction)
This method is called after any Transaction is committed. |
void |
beforeCommit(Transaction transaction)
This method is called before any Transaction is committed. |
Method Detail |
---|
void beforeCommit(Transaction transaction)
Transaction
is committed. Any
unchecked exception throw by this method is going to cause the
transaction to be rolled back instead of committed.
transaction
- The transaction about to be committed.void afterCommit(Transaction transaction)
Transaction
is committed. The
outcome of the transaction can be determined by calling
Transaction.getStatus()
transaction
- The transaction that was committed/rolled-back.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |