Top Description Methods
org.hibernate.resource.transaction.spi

public Interface SynchronizationRegistryImplementor

extends SynchronizationRegistry
Known Direct Implementers
org.hibernate.resource.transaction.internal.SynchronizationRegistryStandardImpl

SPI contract for SynchronizationRegistry implementors.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
clearSynchronizations()

Clears all synchronizations from this registry.

public void
notifySynchronizationsAfterTransactionCompletion(int
The transaction status, per javax.transaction.Status constants
status
)

Delegates the javax.transaction.Synchronization#afterCompletion call to each registered Synchronization.

public void
Inherited from org.hibernate.resource.transaction.spi.SynchronizationRegistry:
registerSynchronization

Method Detail

clearSynchronizationsback to summary
public void clearSynchronizations()

Clears all synchronizations from this registry. Note that synchronizations are automatically cleared during after-completion handling; see notifySynchronizationsAfterTransactionCompletion

notifySynchronizationsAfterTransactionCompletionback to summary
public void notifySynchronizationsAfterTransactionCompletion(int status)

Delegates the javax.transaction.Synchronization#afterCompletion call to each registered Synchronization. Will also clear the registered Synchronizations after all have been notified.

Parameters
status:int

The transaction status, per javax.transaction.Status constants

notifySynchronizationsBeforeTransactionCompletionback to summary
public void notifySynchronizationsBeforeTransactionCompletion()

Delegates the javax.transaction.Synchronization#beforeCompletion call to each registered Synchronization