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

public Class RegisteredSynchronization

extends Object
implements Synchronization
Class Inheritance
All Implemented Interfaces
javax.transaction.Synchronization
Imports
javax.transaction.Synchronization, org.jboss.logging.Logger

The JTA javax.transaction.Synchronization Hibernate registers when needed for JTA callbacks.

Note that we split the notion of the registered Synchronization and the processing of the Synchronization callbacks mainly to account for "separation of concerns", but also so that the transaction engine does not have to hold reference to the actual Synchronization that gets registered with the JTA system.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger
private final SynchronizationCallbackCoordinator

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements javax.transaction.Synchronization.afterCompletion.

This method is called by the transaction manager after the transaction is committed or rolled back.
public void
beforeCompletion()

Implements javax.transaction.Synchronization.beforeCompletion.

The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
synchronizationCallbackCoordinatorback to summary
private final SynchronizationCallbackCoordinator synchronizationCallbackCoordinator

Constructor Detail

RegisteredSynchronizationback to summary
public RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator)

Method Detail

afterCompletionback to summary
public void afterCompletion(int status)

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
beforeCompletionback to summary
public void beforeCompletion()

Implements javax.transaction.Synchronization.beforeCompletion.

Doc from javax.transaction.Synchronization.beforeCompletion.

The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed.

Annotations
@Override