Package org.hibernate.cache.internal
Class NoCachingTransactionSynchronizationImpl
- java.lang.Object
-
- org.hibernate.cache.internal.NoCachingTransactionSynchronizationImpl
-
- All Implemented Interfaces:
CacheTransactionSynchronization
public class NoCachingTransactionSynchronizationImpl extends Object implements CacheTransactionSynchronization
-
-
Field Summary
Fields Modifier and Type Field Description static NoCachingTransactionSynchronizationImplINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCachingTimestamp()What is the start time of this context object?longgetCurrentTransactionStartTimestamp()What is the start time of this context object?voidtransactionCompleted(boolean successful)Callback that the underling resource transaction to which the owning Session was joined is in the "completed" stage.voidtransactionCompleting()Callback that the underling resource transaction to which the owning Session was joined is in the beginning stages of completing.voidtransactionJoined()Callback that owning Session has become joined to a resource transaction.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.cache.spi.CacheTransactionSynchronization
transactionResumed, transactionSuspended
-
-
-
-
Field Detail
-
INSTANCE
public static final NoCachingTransactionSynchronizationImpl INSTANCE
-
-
Method Detail
-
getCurrentTransactionStartTimestamp
public long getCurrentTransactionStartTimestamp()
Description copied from interface:CacheTransactionSynchronizationWhat is the start time of this context object?- Specified by:
getCurrentTransactionStartTimestampin interfaceCacheTransactionSynchronization
-
getCachingTimestamp
public long getCachingTimestamp()
Description copied from interface:CacheTransactionSynchronizationWhat is the start time of this context object?- Specified by:
getCachingTimestampin interfaceCacheTransactionSynchronization
-
transactionJoined
public void transactionJoined()
Description copied from interface:CacheTransactionSynchronizationCallback that owning Session has become joined to a resource transaction.- Specified by:
transactionJoinedin interfaceCacheTransactionSynchronization
-
transactionCompleting
public void transactionCompleting()
Description copied from interface:CacheTransactionSynchronizationCallback 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)- Specified by:
transactionCompletingin interfaceCacheTransactionSynchronization
-
transactionCompleted
public void transactionCompleted(boolean successful)
Description copied from interface:CacheTransactionSynchronizationCallback 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.- Specified by:
transactionCompletedin interfaceCacheTransactionSynchronization- Parameters:
successful- Was the resource transaction successful?
-
-