public final class SessionContextImpl extends AbstractSessionContextImpl implements StatefulEJBContext
EJBContextImpl.BeanStateejbName, instanceKeycontainer, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction| Modifier and Type | Method and Description |
|---|---|
void |
addExtendedEntityManagerMapping(javax.persistence.EntityManagerFactory emf,
com.sun.ejb.containers.StatefulSessionContainer.EEMRefInfo refInfo) |
boolean |
canBePassivated() |
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.
|
void |
decrementRefCount() |
boolean |
existsInStore() |
PhysicalEntityManagerWrapper |
getExtendedEntityManager(javax.persistence.EntityManagerFactory emf) |
Map<javax.persistence.EntityManagerFactory,PhysicalEntityManagerWrapper> |
getExtendedEntityManagerMap() |
Collection<PhysicalEntityManagerWrapper> |
getExtendedEntityManagers() |
long |
getLastAccessTime() |
int |
getRefCount() |
javax.ejb.SessionContext |
getSessionContext() |
ReentrantReadWriteLock.WriteLock |
getStatefulWriteLock() |
javax.ejb.TimerService |
getTimerService() |
long |
getVersion() |
boolean |
hasExtendedPC() |
long |
incrementAndGetVersion() |
void |
incrementRefCount() |
void |
initializeStatefulWriteLock() |
boolean |
isEmfRegisteredWithTx(javax.persistence.EntityManagerFactory emf) |
void |
setEmfRegisteredWithTx(javax.persistence.EntityManagerFactory emf,
boolean flag) |
void |
setExistsInStore(boolean val) |
void |
setStatefulWriteLock(SessionContextImpl other) |
void |
setVersion(long newVersion) |
getBusinessObject, getCurrentComponentInvocation, getInstanceKey, getInvokedBusinessInterface, getMessageContext, getUserTransaction, setInstanceKey, toString, wasCancelCalledcheckActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getKey, getLastTimeUsed, getResourceList, getRollbackOnly, getState, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResourcepublic Map<javax.persistence.EntityManagerFactory,PhysicalEntityManagerWrapper> getExtendedEntityManagerMap()
public void addExtendedEntityManagerMapping(javax.persistence.EntityManagerFactory emf,
com.sun.ejb.containers.StatefulSessionContainer.EEMRefInfo refInfo)
public PhysicalEntityManagerWrapper getExtendedEntityManager(javax.persistence.EntityManagerFactory emf)
public Collection<PhysicalEntityManagerWrapper> getExtendedEntityManagers()
public void setEmfRegisteredWithTx(javax.persistence.EntityManagerFactory emf,
boolean flag)
public boolean isEmfRegisteredWithTx(javax.persistence.EntityManagerFactory emf)
public void initializeStatefulWriteLock()
public ReentrantReadWriteLock.WriteLock getStatefulWriteLock()
public void setStatefulWriteLock(SessionContextImpl other)
public javax.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in interface javax.ejb.EJBContextgetTimerService in class AbstractSessionContextImplIllegalStateExceptionprotected void checkAccessToCallerSecurity()
throws IllegalStateException
EJBContextImplcheckAccessToCallerSecurity in class AbstractSessionContextImplIllegalStateExceptionpublic void checkTimerServiceMethodAccess()
throws IllegalStateException
EJBContextImplcheckTimerServiceMethodAccess in interface ComponentContextcheckTimerServiceMethodAccess in class AbstractSessionContextImplIllegalStateExceptionpublic long getVersion()
getVersion in interface StatefulEJBContextpublic long incrementAndGetVersion()
incrementAndGetVersion in interface StatefulEJBContextpublic void setVersion(long newVersion)
setVersion in interface StatefulEJBContextpublic long getLastAccessTime()
getLastAccessTime in interface StatefulEJBContextpublic boolean canBePassivated()
canBePassivated in interface StatefulEJBContextpublic boolean hasExtendedPC()
public javax.ejb.SessionContext getSessionContext()
getSessionContext in interface StatefulEJBContextpublic boolean existsInStore()
existsInStore in interface StatefulEJBContextpublic void setExistsInStore(boolean val)
setExistsInStore in interface StatefulEJBContextpublic final void incrementRefCount()
public final void decrementRefCount()
public final int getRefCount()
Copyright © 2017. All rights reserved.