ehcache

net.sf.ehcache.hibernate.tm
Class TransactionSynchronization

java.lang.Object
  extended by net.sf.ehcache.hibernate.tm.TransactionSynchronization
All Implemented Interfaces:
javax.transaction.Synchronization

public class TransactionSynchronization
extends java.lang.Object
implements javax.transaction.Synchronization

Author:
Alex Snaps

Constructor Summary
TransactionSynchronization(SyncTransaction transaction)
          Synchronization on a Transaction
 
Method Summary
 void afterCompletion(int status)
          
 void beforeCompletion()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionSynchronization

public TransactionSynchronization(SyncTransaction transaction)
Synchronization on a Transaction

Parameters:
transaction - the SyncTransaction to commit or rollback after the real Transaction finished
Method Detail

beforeCompletion

public void beforeCompletion()

Specified by:
beforeCompletion in interface javax.transaction.Synchronization

afterCompletion

public void afterCompletion(int status)

Specified by:
afterCompletion in interface javax.transaction.Synchronization

ehcache

true