|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
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 |
|---|
void afterBegin()
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 beforeCompletion()
beforeCompletion method notifies a beanlet instance that a
transaction is about to be committed.
void afterCompletion(boolean committed)
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||