Class EntityContextImpl
- java.lang.Object
-
- com.sun.ejb.containers.EJBContextImpl
-
- org.glassfish.persistence.ejb.entitybean.container.EntityContextImpl
-
- All Implemented Interfaces:
ComponentContext,jakarta.ejb.EJBContext,jakarta.ejb.EntityContext,Serializable,ResourceHandler,CascadeDeleteNotifier
- Direct Known Subclasses:
ReadOnlyContextImpl
public class EntityContextImpl extends EJBContextImpl implements jakarta.ejb.EntityContext, CascadeDeleteNotifier
Implementation of EJBContext for EntityBeans- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBContextImpl
EJBContextImpl.BeanState
-
-
Field Summary
-
Fields inherited from class com.sun.ejb.containers.EJBContextImpl
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAccessToCallerSecurity()Overridden in containers that allow access to isCallerInRole() and getCallerPrincipal()voidcheckTimerServiceMethodAccess()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.jakarta.ejb.EJBObjectgetEJBObject()Implementation of EntityContext method, overrides EJBContextImpl method.ObjectgetPrimaryKey()Implementation of EntityContext method.jakarta.ejb.TimerServicegetTimerService()booleanisCascadeDeleteAfterSuperEJBRemove()booleanisCascadeDeleteBeforeEJBRemove()voidsetCascadeDeleteAfterSuperEJBRemove(boolean value)voidsetCascadeDeleteBeforeEJBRemove(boolean value)-
Methods inherited from class com.sun.ejb.containers.EJBContextImpl
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEnvironment, getInterceptorInstances, getKey, getLastTimeUsed, getResourceList, getRollbackOnly, getState, getTransaction, getUserTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getPrimaryKey
public Object getPrimaryKey() throws IllegalStateException
Implementation of EntityContext method.- Specified by:
getPrimaryKeyin interfacejakarta.ejb.EntityContext- Throws:
IllegalStateException
-
getEJBObject
public jakarta.ejb.EJBObject getEJBObject() throws IllegalStateExceptionImplementation of EntityContext method, overrides EJBContextImpl method.- Specified by:
getEJBObjectin interfacejakarta.ejb.EntityContext- Overrides:
getEJBObjectin classEJBContextImpl- Throws:
IllegalStateException
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity() throws IllegalStateExceptionDescription copied from class:EJBContextImplOverridden in containers that allow access to isCallerInRole() and getCallerPrincipal()- Overrides:
checkAccessToCallerSecurityin classEJBContextImpl- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess() throws IllegalStateExceptionDescription copied from class:EJBContextImplThe 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:
checkTimerServiceMethodAccessin interfaceComponentContext- Overrides:
checkTimerServiceMethodAccessin classEJBContextImpl- Throws:
IllegalStateException
-
isCascadeDeleteAfterSuperEJBRemove
public final boolean isCascadeDeleteAfterSuperEJBRemove()
-
setCascadeDeleteAfterSuperEJBRemove
public final void setCascadeDeleteAfterSuperEJBRemove(boolean value)
- Specified by:
setCascadeDeleteAfterSuperEJBRemovein interfaceCascadeDeleteNotifier
-
isCascadeDeleteBeforeEJBRemove
public final boolean isCascadeDeleteBeforeEJBRemove()
-
setCascadeDeleteBeforeEJBRemove
public final void setCascadeDeleteBeforeEJBRemove(boolean value)
-
-