org.hibernate.engine.transaction.synchronization.internal
Class SynchronizationCallbackCoordinatorTrackingImpl

java.lang.Object
  extended by org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl
      extended by org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorTrackingImpl
All Implemented Interfaces:
Synchronization, SynchronizationCallbackCoordinator

public class SynchronizationCallbackCoordinatorTrackingImpl
extends SynchronizationCallbackCoordinatorNonTrackingImpl

Extension of SynchronizationCallbackCoordinatorNonTrackingImpl that adds checking of whether a rollback comes from a thread other than the application thread (thread used to register the Synchronization)


Constructor Summary
SynchronizationCallbackCoordinatorTrackingImpl(TransactionCoordinator transactionCoordinator)
           
 
Method Summary
 void afterCompletion(int status)
           
 void processAnyDelayedAfterCompletion()
          A callback to perform any delayed afterCompletion processes
 void reset()
           
 void synchronizationRegistered()
          A callback whenever a JTA Synchronization is registered
 
Methods inherited from class org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl
beforeCompletion, doAfterCompletion, setAfterCompletionAction, setExceptionMapper, setManagedFlushChecker, transactionCoordinator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizationCallbackCoordinatorTrackingImpl

public SynchronizationCallbackCoordinatorTrackingImpl(TransactionCoordinator transactionCoordinator)
Method Detail

reset

public void reset()
Overrides:
reset in class SynchronizationCallbackCoordinatorNonTrackingImpl

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface Synchronization
Overrides:
afterCompletion in class SynchronizationCallbackCoordinatorNonTrackingImpl

synchronizationRegistered

public void synchronizationRegistered()
Description copied from interface: SynchronizationCallbackCoordinator
A callback whenever a JTA Synchronization is registered

Specified by:
synchronizationRegistered in interface SynchronizationCallbackCoordinator
Overrides:
synchronizationRegistered in class SynchronizationCallbackCoordinatorNonTrackingImpl

processAnyDelayedAfterCompletion

public void processAnyDelayedAfterCompletion()
Description copied from interface: SynchronizationCallbackCoordinator
A callback to perform any delayed afterCompletion processes

Specified by:
processAnyDelayedAfterCompletion in interface SynchronizationCallbackCoordinator
Overrides:
processAnyDelayedAfterCompletion in class SynchronizationCallbackCoordinatorNonTrackingImpl


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.