com.sun.ejb.containers
Class EntityContextImpl
java.lang.Object
com.sun.ejb.containers.EJBContextImpl
com.sun.ejb.containers.EntityContextImpl
- All Implemented Interfaces:
- ComponentContext, java.io.Serializable, EJBContext, EntityContext, ResourceHandler
- Direct Known Subclasses:
- ReadOnlyContextImpl
public class EntityContextImpl
- extends EJBContextImpl
- implements EntityContext
Implementation of EJBContext for EntityBeans
- See Also:
- Serialized Form
| Fields inherited from class com.sun.ejb.containers.EJBContextImpl |
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction |
| Methods inherited from class com.sun.ejb.containers.EJBContextImpl |
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEnvironment, getInterceptorInstances, getLastTimeUsed, getResourceList, getRollbackOnly, getTransaction, getUserTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, unregisterResource |
| 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, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly |
getPrimaryKey
public java.lang.Object getPrimaryKey()
throws java.lang.IllegalStateException
- Implementation of EntityContext method.
- Specified by:
getPrimaryKey in interface EntityContext
- Throws:
java.lang.IllegalStateException
getEJBObject
public EJBObject getEJBObject()
throws java.lang.IllegalStateException
- Implementation of EntityContext method, overrides EJBContextImpl method.
- Specified by:
getEJBObject in interface EntityContext- Overrides:
getEJBObject in class EJBContextImpl
- Throws:
java.lang.IllegalStateException
getTimerService
public TimerService getTimerService()
throws java.lang.IllegalStateException
- Specified by:
getTimerService in interface EJBContext
- Throws:
java.lang.IllegalStateException
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity()
throws java.lang.IllegalStateException
- Description copied from class:
EJBContextImpl
- Overridden in containers that allow access to isCallerInRole() and
getCallerPrincipal()
- Overrides:
checkAccessToCallerSecurity in class EJBContextImpl
- Throws:
java.lang.IllegalStateException
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess()
throws java.lang.IllegalStateException
- Description copied from class:
EJBContextImpl
- The EJB spec makes a distinction between access to the TimerService
object itself (via EJBContext.getTimerService) and access to the
methods on TimerService, Timer, and TimerHandle. The latter case
is covered by this check. It is overridden in the applicable concrete
context impl subclasses.
- Specified by:
checkTimerServiceMethodAccess in interface ComponentContext- Overrides:
checkTimerServiceMethodAccess in class EJBContextImpl
- Throws:
java.lang.IllegalStateException
isCascadeDeleteAfterSuperEJBRemove
public final boolean isCascadeDeleteAfterSuperEJBRemove()
setCascadeDeleteAfterSuperEJBRemove
public final void setCascadeDeleteAfterSuperEJBRemove(boolean value)
isCascadeDeleteBeforeEJBRemove
public final boolean isCascadeDeleteBeforeEJBRemove()
setCascadeDeleteBeforeEJBRemove
public final void setCascadeDeleteBeforeEJBRemove(boolean value)
Copyright © 2012 GlassFish Community. All Rights Reserved.