|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionContext
The transaction context is an abstraction for different transaction management strategies existing the Java Ecosystem. Provides transaction lifecycle management and management of transaction listeners. Note: not every Technology or environment may provide a full implementation of this interface.
Method Summary | |
---|---|
void |
addTransactionListener(TransactionState transactionState,
TransactionListener transactionListener)
Add a TransactionListener to the current transaction. |
void |
commit()
Commit the current transaction. |
boolean |
isTransactionActive()
|
void |
rollback()
Rollback the current transaction. |
Method Detail |
---|
void commit()
void rollback()
void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
TransactionListener
to the current transaction.
transactionState
- the transaction state for which the TransactionListener
should be added.transactionListener
- the TransactionListener
to add.boolean isTransactionActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |