Interface SynchronizationRegistryImplementor
-
- All Superinterfaces:
java.io.Serializable,SynchronizationRegistry
public interface SynchronizationRegistryImplementor extends SynchronizationRegistry
SPI contract for SynchronizationRegistry implementors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearSynchronizations()Clears all synchronizations from this registry.voidnotifySynchronizationsAfterTransactionCompletion(int status)Delegates theSynchronization.afterCompletion(int)call to each registered Synchronization.voidnotifySynchronizationsBeforeTransactionCompletion()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, perStatusconstants
-
clearSynchronizations
void clearSynchronizations()
Clears all synchronizations from this registry. Note that synchronizations are automatically cleared during after-completion handling; seenotifySynchronizationsAfterTransactionCompletion(int)
-
-