org.jboss.ejb
Class EntityEnterpriseContext
java.lang.Object
org.jboss.ejb.EnterpriseContext (src)
org.jboss.ejb.EntityEnterpriseContext
- All Implemented Interfaces:
- AllowedOperationsFlags (src)
- public class EntityEnterpriseContext
- extends EnterpriseContext (src)
The EntityEnterpriseContext is used to associate EntityBean instances
with metadata about it.
- See Also:
EnterpriseContext
(src)
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags (src) |
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED |
Methods inherited from class org.jboss.ejb.EnterpriseContext (src) |
getCallerPrincipal, getContainer, getId, getInstance, getTransaction, getTxLock, isContainerManagedTx, isLocked, isUserManagedTx, lock, setId, setPrincipal, setTransaction, setUserTransactionStartedListener, unlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EntityEnterpriseContext
public EntityEnterpriseContext(java.lang.Object instance,
Container (src) con)
throws java.rmi.RemoteException
getMethodLock
public NonReentrantLock (src) getMethodLock()
- A non-reentrant deadlock detectable lock that is used to protected against
entity bean reentrancy.
- Returns:
clear
public void clear()
- Description copied from class:
EnterpriseContext (src)
- before reusing this context we clear it of previous state called
by pool.free()
- Overrides:
clear
in class EnterpriseContext (src)
discard
public void discard()
throws java.rmi.RemoteException
- Specified by:
discard
in class EnterpriseContext (src)
- Throws:
java.rmi.RemoteException
getEJBContext
public EJBContext (src) getEJBContext()
- Description copied from class:
EnterpriseContext (src)
- Get the EJBContext object
- Specified by:
getEJBContext
in class EnterpriseContext (src)
setEJBObject
public void setEJBObject(EJBObject (src) eo)
getEJBObject
public EJBObject (src) getEJBObject()
setEJBLocalObject
public void setEJBLocalObject(EJBLocalObject (src) eo)
getEJBLocalObject
public EJBLocalObject (src) getEJBLocalObject()
setCacheKey
public void setCacheKey(java.lang.Object key)
getCacheKey
public java.lang.Object getCacheKey()
setPersistenceContext
public void setPersistenceContext(java.lang.Object ctx)
getPersistenceContext
public java.lang.Object getPersistenceContext()
hasTxSynchronization
public void hasTxSynchronization(boolean value)
hasTxSynchronization
public boolean hasTxSynchronization()
getTxAssociation
public GlobalTxEntityMap.TxAssociation (src) getTxAssociation()
setTxAssociation
public void setTxAssociation(GlobalTxEntityMap.TxAssociation (src) txAssociation)
setValid
public void setValid(boolean valid)
isValid
public boolean isValid()
setReadOnly
public void setReadOnly(boolean readOnly)
isReadOnly
public boolean isReadOnly()
toString
public java.lang.String toString()