Interface SynchronizationRegistryImplementor
-
- All Superinterfaces:
Serializable
,SynchronizationRegistry
- All Known Implementing Classes:
SynchronizationRegistryStandardImpl
public interface SynchronizationRegistryImplementor extends SynchronizationRegistry
SPI contract for SynchronizationRegistry implementors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearSynchronizations()
Clears all synchronizations from this registry.void
notifySynchronizationsAfterTransactionCompletion(int status)
Delegates theSynchronization.afterCompletion(int)
call to each registered Synchronization.void
notifySynchronizationsBeforeTransactionCompletion()
Delegates theSynchronization.beforeCompletion()
call to each registered Synchronization-
Methods inherited from interface org.hibernate.resource.transaction.spi.SynchronizationRegistry
registerSynchronization
-
-
-
-
Method Detail
-
notifySynchronizationsBeforeTransactionCompletion
void notifySynchronizationsBeforeTransactionCompletion()
Delegates theSynchronization.beforeCompletion()
call to each registered Synchronization
-
notifySynchronizationsAfterTransactionCompletion
void notifySynchronizationsAfterTransactionCompletion(int status)
Delegates theSynchronization.afterCompletion(int)
call to each registered Synchronization. Will also clear the registered Synchronizations after all have been notified.- Parameters:
status
- The transaction status, perStatus
constants
-
clearSynchronizations
void clearSynchronizations()
Clears all synchronizations from this registry. Note that synchronizations are automatically cleared during after-completion handling; seenotifySynchronizationsAfterTransactionCompletion(int)
-
-