| java.lang.Object org.jboss.ejb.GlobalTxEntityMap
GlobalTxEntityMap | public class GlobalTxEntityMap (Code) | | This class provides a way to find out what entities are contained in
what transaction. It is used, to find which entities to call ejbStore()
on when a ejbFind() method is called within a transaction. EJB 2.0- 9.6.4
also, it is used to synchronize on a remove.
Used in EntitySynchronizationInterceptor, EntityContainer
Entities are stored in an ArrayList to ensure specific ordering.
author: Bill Burke author: Alexey Loubyansky version: $Revision: 62278 $ |
Inner Class :public static interface TxAssociation | |
Field Summary | |
final public static TxAssociation | NONE | final public static TxAssociation | NOT_READY Used for instances in the create phase,
i.e. | final public static TxAssociation | PREVENT_SYNC | final public static TxAssociation | SYNCHRONIZED | final public static TxAssociation | SYNC_SCHEDULED |
Method Summary | |
public void | synchronizeEntities(Transaction tx) sync all EntityEnterpriseContext that are involved (and changed)
within a transaction. |
NONE | final public static TxAssociation NONE(Code) | | |
NOT_READY | final public static TxAssociation NOT_READY(Code) | | Used for instances in the create phase,
i.e. before the ejbCreate and until after the ejbPostCreate returns
|
PREVENT_SYNC | final public static TxAssociation PREVENT_SYNC(Code) | | |
SYNCHRONIZED | final public static TxAssociation SYNCHRONIZED(Code) | | |
SYNC_SCHEDULED | final public static TxAssociation SYNC_SCHEDULED(Code) | | |
synchronizeEntities | public void synchronizeEntities(Transaction tx)(Code) | | sync all EntityEnterpriseContext that are involved (and changed)
within a transaction.
|
|
|