org.jboss.ejb.plugins
Class EntityMultiInstanceSynchronizationInterceptor.MultiInstanceSynchronization

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

protected class EntityMultiInstanceSynchronizationInterceptor.MultiInstanceSynchronization
extends java.lang.Object
implements Synchronization (src)


Field Summary
protected  EntityEnterpriseContext (src) ctx
          The context we manage.
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.

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.