Class EntityContextImpl
- java.lang.Object
-
- com.sun.ejb.containers.EJBContextImpl
-
- org.glassfish.persistence.ejb.entitybean.container.EntityContextImpl
-
- All Implemented Interfaces:
com.sun.ejb.ComponentContext,jakarta.ejb.EJBContext,jakarta.ejb.EntityContext,Serializable,org.glassfish.api.invocation.ResourceHandler,CascadeDeleteNotifier
- Direct Known Subclasses:
ReadOnlyContextImpl
public class EntityContextImpl extends com.sun.ejb.containers.EJBContextImpl implements jakarta.ejb.EntityContext, CascadeDeleteNotifier
Implementation of EJBContext for EntityBeans- See Also:
- Serialized Form
-
-
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()voidcheckTimerServiceMethodAccess()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 classcom.sun.ejb.containers.EJBContextImpl- Throws:
IllegalStateException
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity() throws IllegalStateException- Overrides:
checkAccessToCallerSecurityin classcom.sun.ejb.containers.EJBContextImpl- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess() throws IllegalStateException- Specified by:
checkTimerServiceMethodAccessin interfacecom.sun.ejb.ComponentContext- Overrides:
checkTimerServiceMethodAccessin classcom.sun.ejb.containers.EJBContextImpl- 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)
-
-