org.beanlet.transaction
Interface TransactionSynchronization


public interface TransactionSynchronization

Allows a beanlet instance to synchronize its state with the transactions performed on it. Beanlets are not required to implement this interface.

See Also:
AfterBegin, BeforeCompletion, AfterCompletion

Method Summary
 void afterBegin()
          The afterBegin method notifies a beanlet instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction.
 void afterCompletion(boolean committed)
          The afterCompletion method notifies a beanlet instance that the transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back.
 void beforeCompletion()
          The beforeCompletion method notifies a beanlet instance that a transaction is about to be committed.
 

Method Detail

afterBegin

void afterBegin()
The afterBegin method notifies a beanlet instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction.


beforeCompletion

void beforeCompletion()
The beforeCompletion method notifies a beanlet instance that a transaction is about to be committed.


afterCompletion

void afterCompletion(boolean committed)
The afterCompletion method notifies a beanlet instance that the transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back. Param committed is true if the transaction has been committed, false if it has been rolled back.



Copyright © 2006-2012. All Rights Reserved.