Top Description Fields Constructors Methods
org.hibernate.resource.transaction.backend.jta.internal.synchronization

public Class SynchronizationCallbackCoordinatorTrackingImpl

extends SynchronizationCallbackCoordinatorNonTrackingImpl
Class Inheritance
Imports
org.hibernate.HibernateException, org.hibernate.engine.transaction.internal.jta.JtaStatusHelper, org.hibernate.internal.CoreMessageLogger

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)
Authors
Steve Ebersole, Brett Meyer

Field Summary

Modifier and TypeField and Description
private volatile boolean
private static final CoreMessageLogger
private volatile long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterCompletion(int
The status of the transaction completion.
status
)

Overrides org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl.afterCompletion.

Implements javax.transaction.Synchronization.afterCompletion.

This method is called by the transaction manager after the transaction is committed or rolled back.
public void
public void
public void
Inherited from org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl:
beforeCompletiondoAfterCompletion

Field Detail

delayedCompletionHandlingback to summary
private volatile boolean delayedCompletionHandling
logback to summary
private static final CoreMessageLogger log

Hides org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl.log.

registrationThreadIdback to summary
private volatile long registrationThreadId

Constructor Detail

SynchronizationCallbackCoordinatorTrackingImplback to summary
public SynchronizationCallbackCoordinatorTrackingImpl(SynchronizationCallbackTarget target)

Method Detail

afterCompletionback to summary
public void afterCompletion(int status)

Overrides org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl.afterCompletion.

Implements javax.transaction.Synchronization.afterCompletion.

Doc from javax.transaction.Synchronization.afterCompletion.

This method is called by the transaction manager after the transaction is committed or rolled back.

Parameters
status:int

The status of the transaction completion.

Annotations
@Override
processAnyDelayedAfterCompletionback to summary
public void processAnyDelayedAfterCompletion()

Overrides org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl.processAnyDelayedAfterCompletion.

Implements org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinator.processAnyDelayedAfterCompletion.

Doc from org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinator.processAnyDelayedAfterCompletion.

Called by the TransactionCoordinator to allow the SynchronizationCallbackCoordinator to process any after-completion handling that it may have delayed due to thread affinity

Annotations
@Override
resetback to summary
public void reset()

Overrides org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl.reset.

Annotations
@Override
synchronizationRegisteredback to summary
public void synchronizationRegistered()

Overrides org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorNonTrackingImpl.synchronizationRegistered.

Implements org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinator.synchronizationRegistered.

Doc from org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinator.synchronizationRegistered.

Called by the TransactionCoordinator when it registers the Synchronization with the JTA system

Annotations
@Override