Interface TransactionAccess
public interface TransactionAccess
A transaction control abstraction that allows to be independent of the concrete transaction technology.
- Since:
- 1.4.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description boolean
isActive()
Returns whether the current transaction is active.void
markRollbackOnly()
Mark the current transaction as rollback only.void
registerSynchronization(Synchronization synchronization)
Registers the given synchronization in the current transaction.
-
Method Details
-
isActive
boolean isActive()Returns whether the current transaction is active.- Returns:
- true if active, false otherwise
-
markRollbackOnly
void markRollbackOnly()Mark the current transaction as rollback only. -
registerSynchronization
Registers the given synchronization in the current transaction.- Parameters:
synchronization
- The synchronization to register
-