public interface TransactionContext
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2021. All rights reserved.