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 void
checkAccessToCallerSecurity()
Overridden in containers that allow access to isCallerInRole() and getCallerPrincipal()void
checkTimerServiceMethodAccess()
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.EJBObject
getEJBObject()
Implementation of EntityContext method, overrides EJBContextImpl method.Object
getPrimaryKey()
Implementation of EntityContext method.jakarta.ejb.TimerService
getTimerService()
boolean
isCascadeDeleteAfterSuperEJBRemove()
boolean
isCascadeDeleteBeforeEJBRemove()
void
setCascadeDeleteAfterSuperEJBRemove(boolean value)
void
setCascadeDeleteBeforeEJBRemove(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:
getPrimaryKey
in interfacejakarta.ejb.EntityContext
- Throws:
IllegalStateException
-
getEJBObject
public jakarta.ejb.EJBObject getEJBObject() throws IllegalStateException
Implementation of EntityContext method, overrides EJBContextImpl method.- Specified by:
getEJBObject
in interfacejakarta.ejb.EntityContext
- Overrides:
getEJBObject
in classEJBContextImpl
- Throws:
IllegalStateException
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException
- Specified by:
getTimerService
in interfacejakarta.ejb.EJBContext
- Throws:
IllegalStateException
-
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity() throws IllegalStateException
Description copied from class:EJBContextImpl
Overridden in containers that allow access to isCallerInRole() and getCallerPrincipal()- Overrides:
checkAccessToCallerSecurity
in classEJBContextImpl
- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess() throws 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 interfaceComponentContext
- Overrides:
checkTimerServiceMethodAccess
in classEJBContextImpl
- Throws:
IllegalStateException
-
isCascadeDeleteAfterSuperEJBRemove
public final boolean isCascadeDeleteAfterSuperEJBRemove()
-
setCascadeDeleteAfterSuperEJBRemove
public final void setCascadeDeleteAfterSuperEJBRemove(boolean value)
- Specified by:
setCascadeDeleteAfterSuperEJBRemove
in interfaceCascadeDeleteNotifier
-
isCascadeDeleteBeforeEJBRemove
public final boolean isCascadeDeleteBeforeEJBRemove()
-
setCascadeDeleteBeforeEJBRemove
public final void setCascadeDeleteBeforeEJBRemove(boolean value)
-
-