当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
TxEntityMap (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb
Class TxEntityMap
java.lang.Object
org.jboss.ejb.TxEntityMap
Deprecated. this class was useful only for Instance Per Transaction containers and was used to check whether
the instance is associated with the tx. There is org.jboss.ejb.plugins.PerTxEntityInstanceCache which is
a per tx implementation of org.jboss.ejb.EntityCache which should be used with IPT containers.
(alex@jboss.org)
This class provides a way to find out what entities of a certain type that are contained in
within a transaction. It is attached to a specific instance of a container.
This class interfaces with the static GlobalTxEntityMap. EntitySynchronizationInterceptor
registers tx/entity pairs through this class.
Used in EntitySynchronizationInterceptor.
- public class TxEntityMap
- extends Object
- Version:
- $Revision: 1.15 $
Revisions:
Revisions:
2001/08/06: billb
- Got rid of disassociate and added a javax.transaction.Synchronization. The sync will clean up the map now.
- This class now interacts with GlobalTxEntityMap available.
- Author:
- Bill Burke
Field Summary |
protected org.jboss.tm.TransactionLocal |
m_map
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_map
protected org.jboss.tm.TransactionLocal m_map
- Deprecated.
TxEntityMap
public TxEntityMap()
- Deprecated.
associate
public void associate(Transaction tx,
EntityEnterpriseContext entity)
throws RollbackException,
SystemException
- Deprecated.
- associate entity with transaction
- Throws:
RollbackException
SystemException
getCtx
public EntityEnterpriseContext getCtx(Transaction tx,
Object key)
- Deprecated.
getCtx
public EntityEnterpriseContext getCtx(Object key)
- Deprecated.
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.