类 SynchronizationRegistryStandardImpl
- java.lang.Object
-
- org.hibernate.resource.transaction.internal.SynchronizationRegistryStandardImpl
-
public class SynchronizationRegistryStandardImpl extends Object implements SynchronizationRegistryImplementor
The standard implementation of the SynchronizationRegistry contract- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 SynchronizationRegistryStandardImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclearSynchronizations()Clears all synchronizations from this registry.intgetNumberOfRegisteredSynchronizations()Intended for test accessvoidnotifySynchronizationsAfterTransactionCompletion(int status)Delegates theSynchronization.afterCompletion(int)call to each registered Synchronization.voidnotifySynchronizationsBeforeTransactionCompletion()Delegates theSynchronization.beforeCompletion()call to each registered SynchronizationvoidregisterSynchronization(javax.transaction.Synchronization synchronization)Register aSynchronizationcallback for this transaction.
-
-
-
方法详细资料
-
getNumberOfRegisteredSynchronizations
public int getNumberOfRegisteredSynchronizations()
Intended for test access- 返回:
- The number of Synchronizations registered
-
registerSynchronization
public void registerSynchronization(javax.transaction.Synchronization synchronization)
从接口复制的说明:SynchronizationRegistryRegister aSynchronizationcallback for this transaction.- 指定者:
registerSynchronization在接口中SynchronizationRegistry- 参数:
synchronization- The synchronization callback to register.
-
notifySynchronizationsBeforeTransactionCompletion
public void notifySynchronizationsBeforeTransactionCompletion()
从接口复制的说明:SynchronizationRegistryImplementorDelegates theSynchronization.beforeCompletion()call to each registered Synchronization
-
notifySynchronizationsAfterTransactionCompletion
public void notifySynchronizationsAfterTransactionCompletion(int status)
从接口复制的说明:SynchronizationRegistryImplementorDelegates theSynchronization.afterCompletion(int)call to each registered Synchronization. Will also clear the registered Synchronizations after all have been notified.- 指定者:
notifySynchronizationsAfterTransactionCompletion在接口中SynchronizationRegistryImplementor- 参数:
status- The transaction status, perStatusconstants
-
clearSynchronizations
public void clearSynchronizations()
从接口复制的说明:SynchronizationRegistryImplementorClears all synchronizations from this registry. Note that synchronizations are automatically cleared during after-completion handling; seeSynchronizationRegistryImplementor.notifySynchronizationsAfterTransactionCompletion(int)
-
-