org.jboss.ejb.plugins
Class EntitySynchronizationInterceptor.InstanceSynchronization

java.lang.Object
  extended byorg.jboss.ejb.plugins.EntitySynchronizationInterceptor.InstanceSynchronization
All Implemented Interfaces:
Synchronization (src)
Enclosing class:
EntitySynchronizationInterceptor (src)

protected class EntitySynchronizationInterceptor.InstanceSynchronization
extends java.lang.Object
implements Synchronization (src)


Field Summary
protected  EntityEnterpriseContext (src) ctx
          The context we manage.
protected  BeanLock (src) lock
          The context lock
protected  Transaction (src) tx
          The transaction we follow.
 
Method Summary
 void afterCompletion(int status)
          This method is invoked after the transaction has committed or rolled back.
 void beforeCompletion()
          This method is invoked before the start of the commit process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tx

protected Transaction (src)  tx
The transaction we follow.


ctx

protected EntityEnterpriseContext (src)  ctx
The context we manage.


lock

protected BeanLock (src)  lock
The context lock

Method Detail

beforeCompletion

public void beforeCompletion()
Description copied from interface: Synchronization (src)
This method is invoked before the start of the commit process. The method invocation is done in the context of the transaction that is about to be committed.

Specified by:
beforeCompletion in interface Synchronization (src)

afterCompletion

public void afterCompletion(int status)
Description copied from interface: Synchronization (src)
This method is invoked after the transaction has committed or rolled back.

Specified by:
afterCompletion in interface Synchronization (src)
Parameters:
status - The status of the completed transaction.