org.apache.openejb.core.entity
Class EntityContext

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

public class EntityContext
extends BaseContext
implements javax.ejb.EntityContext

Version:
$Rev: 1153797 $ $Date: 2011-08-04 09:09:44 +0000 (Thu, 04 Aug 2011) $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.openejb.core.BaseContext
BaseContext.Call, BaseContext.State, BaseContext.UserTransactionWrapper
 
Field Summary
 
Fields inherited from class org.apache.openejb.core.BaseContext
securityService, userTransaction
 
Constructor Summary
EntityContext(SecurityService securityService)
           
 
Method Summary
 void check(BaseContext.Call call)
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 Object getPrimaryKey()
           
 
Methods inherited from class org.apache.openejb.core.BaseContext
getCallerIdentity, getCallerPrincipal, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, getUserTransaction, illegal, isCallerInRole, isCallerInRole, isCallerInRole, isTimerMethodAllowed, isUserTransactionAccessAllowed, lookup, setRollbackOnly, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Constructor Detail

EntityContext

public EntityContext(SecurityService securityService)
Method Detail

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()
                                           throws IllegalStateException
Specified by:
getEJBLocalObject in interface javax.ejb.EntityContext
Throws:
IllegalStateException

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws IllegalStateException
Specified by:
getEJBObject in interface javax.ejb.EntityContext
Throws:
IllegalStateException

getPrimaryKey

public Object getPrimaryKey()
                     throws IllegalStateException
Specified by:
getPrimaryKey in interface javax.ejb.EntityContext
Throws:
IllegalStateException

check

public void check(BaseContext.Call call)
Specified by:
check in class BaseContext


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.