public interface TransactionListener
Transaction
actions.Modifier and Type | Method and Description |
---|---|
void |
afterBegin(TransactionIsolation isolation)
Invoked after the transaction is begun.
|
void |
afterCommit(Set<Type<?>> types)
Invoked after the transaction is committed successfully.
|
void |
afterRollback(Set<Type<?>> types)
Invoked after the transaction is rolled back successfully.
|
void |
beforeBegin(TransactionIsolation isolation)
Invoked before the transaction is begun.
|
void |
beforeCommit(Set<Type<?>> types)
Invoked before the transaction is committed.
|
void |
beforeRollback(Set<Type<?>> types)
Invoked before the transaction is rolled back.
|
void beforeBegin(TransactionIsolation isolation)
isolation
- TransactionIsolation
level of the transaction.void afterBegin(TransactionIsolation isolation)
isolation
- TransactionIsolation
level of the transaction.void beforeCommit(Set<Type<?>> types)
types
- collection of entity types involved in the transactionvoid afterCommit(Set<Type<?>> types)
types
- collection of entity types involved in the transactionvoid beforeRollback(Set<Type<?>> types)
types
- collection of entity types involved in the transaction