org.jboss.ejb
Class EntityEnterpriseContext

java.lang.Object
  extended byorg.jboss.ejb.EnterpriseContext (src) 
      extended byorg.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)

Nested Class Summary
protected  class EntityEnterpriseContext.EntityContextImpl (src)
           
 class EntityEnterpriseContext.TimerServiceWrapper (src)
          Delegates to the underlying TimerService, after checking access
 
Nested classes inherited from class org.jboss.ejb.EnterpriseContext (src)
EnterpriseContext.EJBContextImpl (src) , EnterpriseContext.UserTransactionImpl (src)
 
Field Summary
 
Fields inherited from class org.jboss.ejb.EnterpriseContext (src)
log
 
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
 
Constructor Summary
EntityEnterpriseContext(java.lang.Object instance, Container (src)  con)
           
 
Method Summary
 void clear()
          before reusing this context we clear it of previous state called by pool.free()
 void discard()
           
 java.lang.Object getCacheKey()
           
 EJBContext (src) getEJBContext()
          Get the EJBContext object
 EJBLocalObject (src) getEJBLocalObject()
           
 EJBObject (src) getEJBObject()
           
 NonReentrantLock (src) getMethodLock()
          A non-reentrant deadlock detectable lock that is used to protected against entity bean reentrancy.
 java.lang.Object getPersistenceContext()
           
 GlobalTxEntityMap.TxAssociation (src) getTxAssociation()
           
 boolean hasTxSynchronization()
           
 void hasTxSynchronization(boolean value)
           
 boolean isReadOnly()
           
 boolean isValid()
           
 void setCacheKey(java.lang.Object key)
           
 void setEJBLocalObject(EJBLocalObject (src)  eo)
           
 void setEJBObject(EJBObject (src)  eo)
           
 void setPersistenceContext(java.lang.Object ctx)
           
 void setReadOnly(boolean readOnly)
           
 void setTxAssociation(GlobalTxEntityMap.TxAssociation (src)  txAssociation)
           
 void setValid(boolean valid)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

EntityEnterpriseContext

public EntityEnterpriseContext(java.lang.Object instance,
                               Container (src)  con)
                        throws java.rmi.RemoteException
Method Detail

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()