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 TypeMethodDescriptionbooleanisActive()Returns whether the current transaction is active.voidMark the current transaction as rollback only.voidregisterSynchronization(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
-