Interface SynchronizationRegistryImplementor
- All Superinterfaces:
Serializable
,SynchronizationRegistry
- All Known Implementing Classes:
SynchronizationRegistryStandardImpl
SPI contract for
SynchronizationRegistry
implementors.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears all synchronizations from this registry.void
notifySynchronizationsAfterTransactionCompletion
(int status) Delegates theSynchronization.afterCompletion(int)
call to each registered Synchronization.void
Delegates 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 registeredSynchronization
s 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)
-