Class TransactionManagerBasedSynchronizationStrategy
- java.lang.Object
-
- org.hibernate.engine.transaction.jta.platform.internal.TransactionManagerBasedSynchronizationStrategy
-
- All Implemented Interfaces:
Serializable
,JtaSynchronizationStrategy
public class TransactionManagerBasedSynchronizationStrategy extends Object implements JtaSynchronizationStrategy
Implementation of theJtaSynchronizationStrategy
contract based on using aTransactionManager
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransactionManagerBasedSynchronizationStrategy(TransactionManagerAccess transactionManagerAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRegisterSynchronization()
Can a synchronization be registered?void
registerSynchronization(Synchronization synchronization)
Register a synchronization
-
-
-
Constructor Detail
-
TransactionManagerBasedSynchronizationStrategy
public TransactionManagerBasedSynchronizationStrategy(TransactionManagerAccess transactionManagerAccess)
-
-
Method Detail
-
registerSynchronization
public void registerSynchronization(Synchronization synchronization)
Description copied from interface:JtaSynchronizationStrategy
Register a synchronization- Specified by:
registerSynchronization
in interfaceJtaSynchronizationStrategy
- Parameters:
synchronization
- The synchronization to register.
-
canRegisterSynchronization
public boolean canRegisterSynchronization()
Description copied from interface:JtaSynchronizationStrategy
Can a synchronization be registered?- Specified by:
canRegisterSynchronization
in interfaceJtaSynchronizationStrategy
- Returns:
- true/false
-
-