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: 688602 $ $Date: 2008-08-25 04:39:06 +0200 (Mo, 25. Aug 2008) $
See Also:
Serialized Form

Nested Class Summary
protected static class EntityContext.ActivatePassivateEntityState
           
protected static class EntityContext.ContextEntityState
           
protected static class EntityContext.CreateEntityState
           
protected static class EntityContext.FindEntityState
           
protected static class EntityContext.HomeEntityState
           
protected static class EntityContext.LifecycleBusinessTimeoutEntityState
           
 
Nested classes/interfaces inherited from class org.apache.openejb.core.BaseContext
BaseContext.State, BaseContext.UserTransactionWrapper
 
Field Summary
protected static BaseContext.State[] states
           
 
Constructor Summary
EntityContext(SecurityService securityService)
           
 
Method Summary
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 Object getPrimaryKey()
           
protected  BaseContext.State getState()
           
static BaseContext.State[] getStates()
           
 
Methods inherited from class org.apache.openejb.core.BaseContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, isEntityManagerAccessAllowed, isEntityManagerFactoryAccessAllowed, isJNDIAccessAllowed, isMessageContextAccessAllowed, isTimerAccessAllowed, 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, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Field Detail

states

protected static final BaseContext.State[] states
Constructor Detail

EntityContext

public EntityContext(SecurityService securityService)
Method Detail

getStates

public static BaseContext.State[] getStates()

getState

protected BaseContext.State getState()
Specified by:
getState in class BaseContext

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


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.