Top Fields Constructors Methods
org.hibernate.cache.spi

public abstract Class AbstractCacheTransactionSynchronization

extends Object
implements CacheTransactionSynchronization
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.CacheTransactionSynchronization
Known Direct Subclasses
org.hibernate.cache.spi.StandardCacheTransactionSynchronization

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private long
private final RegionFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long
public void
transactionCompleted(boolean
Was the resource transaction successful?
successful
)

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.transactionCompleted.

Callback that the underling resource transaction to which the owning Session was joined is in the "completed" stage.
public final void
transactionCompleting()

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.transactionCompleting.

Callback that the underling resource transaction to which the owning Session was joined is in the beginning stages of completing.
public final void
transactionJoined()

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.transactionJoined.

Callback that owning Session has become joined to a resource transaction.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lastTransactionCompletionTimestampback to summary
private long lastTransactionCompletionTimestamp
regionFactoryback to summary
private final RegionFactory regionFactory

Constructor Detail

AbstractCacheTransactionSynchronizationback to summary
public AbstractCacheTransactionSynchronization(RegionFactory regionFactory)

Method Detail

getCachingTimestampback to summary
public long getCachingTimestamp()

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.getCachingTimestamp.

Doc from org.hibernate.cache.spi.CacheTransactionSynchronization.getCachingTimestamp.

What is the start time of this context object?

Annotations
@Override
transactionCompletedback to summary
public void transactionCompleted(boolean successful)

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.transactionCompleted.

Doc from org.hibernate.cache.spi.CacheTransactionSynchronization.transactionCompleted.

Callback that the underling resource transaction to which the owning Session was joined is in the "completed" stage. This method is called regardless of success or failure of the transaction - the outcome is passed as a boolean.

Parameters
successful:boolean

Was the resource transaction successful?

Annotations
@Override
transactionCompletingback to summary
public final void transactionCompleting()

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.transactionCompleting.

Doc from org.hibernate.cache.spi.CacheTransactionSynchronization.transactionCompleting.

Callback that the underling resource transaction to which the owning Session was joined is in the beginning stages of completing. Note that this is only called for successful "begin completion" of the underlying resource transaction (not rolling-back, marked-for-rollback, etc)

Annotations
@Override
transactionJoinedback to summary
public final void transactionJoined()

Implements org.hibernate.cache.spi.CacheTransactionSynchronization.transactionJoined.

Doc from org.hibernate.cache.spi.CacheTransactionSynchronization.transactionJoined.

Callback that owning Session has become joined to a resource transaction.

Annotations
@Override