org.apache.jdo.impl.pm
Class TransactionSynchronization

java.lang.Object
  extended byorg.apache.jdo.impl.pm.TransactionSynchronization
All Implemented Interfaces:
javax.transaction.Synchronization

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

This is a Synchronization instance associated with the corresponding instance of the TransactionImpl. Is used for synchronization callbacks in a managed environment. This is a separate object to avoid a requirement for a non-managed application have JTA classes in its classpath.

Author:
Marina Vatkina

Field Summary
private  TransactionImpl tx
          Reference to TransactionImpl instance associated with this instance of TransactionSynchronization
 
Constructor Summary
(package private) TransactionSynchronization(TransactionImpl newtx)
           
 
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
 

Field Detail

tx

private TransactionImpl tx
Reference to TransactionImpl instance associated with this instance of TransactionSynchronization

Constructor Detail

TransactionSynchronization

TransactionSynchronization(TransactionImpl newtx)
Method Detail

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface javax.transaction.Synchronization
See Also:
Synchronization.beforeCompletion()

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface javax.transaction.Synchronization
See Also:
Synchronization.afterCompletion(int status)