Interface SynchronizationRegistryImplementor
- All Superinterfaces:
Serializable,SynchronizationRegistry
- All Known Implementing Classes:
SynchronizationRegistryStandardImpl
SPI contract for
SynchronizationRegistry implementors.-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all synchronizations from this registry.voidnotifySynchronizationsAfterTransactionCompletion(int status) Delegates theSynchronization.afterCompletion(int)call to each registered Synchronization.voidDelegates theSynchronization.beforeCompletion()call to each registered SynchronizationMethods inherited from interface org.hibernate.resource.transaction.spi.SynchronizationRegistry
registerSynchronization
-
Method Details
-
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 registeredSynchronizations after all have been notified.- Parameters:
status- The transaction status, perStatusconstants
-
clearSynchronizations
void clearSynchronizations()Clears all synchronizations from this registry. Note that synchronizations are automatically cleared during after-completion handling; seenotifySynchronizationsAfterTransactionCompletion(int)
-