Top Description Fields Constructors Methods
org.hibernate.transaction.synchronization

public Class HibernateSynchronizationImpl

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

The Synchronization implementation Hibernate registers with the JTA javax.transaction.Transaction
Authors
Gavin King, Steve Ebersole

Field Summary

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

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

coordinatorback to summary
private final CallbackCoordinator coordinator
logback to summary
private static final Logger log

Constructor Detail

HibernateSynchronizationImplback to summary
public HibernateSynchronizationImpl(CallbackCoordinator coordinator)

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.

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.