org.openejb.core.entity
Class EntityContext

java.lang.Object
  extended by org.openejb.core.CoreContext
      extended by org.openejb.core.entity.EntityContext
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EJBContext, javax.ejb.EntityContext

public class EntityContext
extends CoreContext
implements javax.ejb.EntityContext

This class imposes restrictions on what Entity methods can access which EntityContext methods. This class manages restrictions related to the position of the bean in its life-cycle to the EntityContext operation being performed. Restrictions are specified in the EJB specification. The CoreContext actually fulfills the request, this class just applies restrictions on access.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openejb.core.CoreContext
EJBHOME_METHOD, EJBOBJECT_METHOD, ROLLBACK_METHOD, SECURITY_METHOD, USER_TRANSACTION_METHOD
 
Constructor Summary
EntityContext()
           
 
Method Summary
 void checkBeanState(byte methodCategory)
           
protected  EjbObjectProxyHandler newEjbObjectHandler(RpcContainer container, java.lang.Object pk, java.lang.Object depID)
           
 
Methods inherited from class org.openejb.core.CoreContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getPrimaryKey, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EntityContext
getEJBLocalObject, getEJBObject, getPrimaryKey
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 

Constructor Detail

EntityContext

public EntityContext()
Method Detail

checkBeanState

public void checkBeanState(byte methodCategory)
                    throws java.lang.IllegalStateException
Specified by:
checkBeanState in class CoreContext
Throws:
java.lang.IllegalStateException

newEjbObjectHandler

protected EjbObjectProxyHandler newEjbObjectHandler(RpcContainer container,
                                                    java.lang.Object pk,
                                                    java.lang.Object depID)
Specified by:
newEjbObjectHandler in class CoreContext


Copyright © 1999-2011 OpenEJB. All Rights Reserved.