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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBContextImpl

    com.sun.ejb.containers.EJBContextImpl.BeanState
  • Field Summary

    Fields inherited from class com.sun.ejb.containers.EJBContextImpl

    cdiInjectionContext, container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, optionalEjbLocalBusinessObjectImpl, state, transaction
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
     
    jakarta.ejb.EJBObject
    Implementation of EntityContext method, overrides EJBContextImpl method.
    Implementation of EntityContext method.
    jakarta.ejb.TimerService
     
    final boolean
     
    final boolean
     
    final void
     
    final void
     

    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, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.ejb.EJBContext

    getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getRollbackOnly, getUserTransaction, isCallerInRole, lookup, setRollbackOnly

    Methods inherited from interface jakarta.ejb.EntityContext

    getEJBLocalObject
  • Method Details

    • getPrimaryKey

      public Object getPrimaryKey() throws IllegalStateException
      Implementation of EntityContext method.
      Specified by:
      getPrimaryKey in interface jakarta.ejb.EntityContext
      Throws:
      IllegalStateException
    • getEJBObject

      public jakarta.ejb.EJBObject getEJBObject() throws IllegalStateException
      Implementation of EntityContext method, overrides EJBContextImpl method.
      Specified by:
      getEJBObject in interface jakarta.ejb.EntityContext
      Overrides:
      getEJBObject in class com.sun.ejb.containers.EJBContextImpl
      Throws:
      IllegalStateException
    • getTimerService

      public jakarta.ejb.TimerService getTimerService() throws IllegalStateException
      Specified by:
      getTimerService in interface jakarta.ejb.EJBContext
      Throws:
      IllegalStateException
    • checkAccessToCallerSecurity

      protected void checkAccessToCallerSecurity() throws IllegalStateException
      Overrides:
      checkAccessToCallerSecurity in class com.sun.ejb.containers.EJBContextImpl
      Throws:
      IllegalStateException
    • checkTimerServiceMethodAccess

      public void checkTimerServiceMethodAccess() throws IllegalStateException
      Specified by:
      checkTimerServiceMethodAccess in interface com.sun.ejb.ComponentContext
      Overrides:
      checkTimerServiceMethodAccess in class com.sun.ejb.containers.EJBContextImpl
      Throws:
      IllegalStateException
    • isCascadeDeleteAfterSuperEJBRemove

      public final boolean isCascadeDeleteAfterSuperEJBRemove()
    • setCascadeDeleteAfterSuperEJBRemove

      public final void setCascadeDeleteAfterSuperEJBRemove(boolean value)
      Specified by:
      setCascadeDeleteAfterSuperEJBRemove in interface CascadeDeleteNotifier
    • isCascadeDeleteBeforeEJBRemove

      public final boolean isCascadeDeleteBeforeEJBRemove()
    • setCascadeDeleteBeforeEJBRemove

      public final void setCascadeDeleteBeforeEJBRemove(boolean value)