public class EntityInstanceManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
EntityInstanceManager.SynchronizationWrapper |
Constructor and Description |
---|
EntityInstanceManager(EntityContainer container,
SecurityService securityService,
int poolSize) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(BeanContext beanContext) |
void |
discardInstance(ThreadContext callContext,
EntityBean bean) |
void |
freeInstance(ThreadContext callContext,
EntityBean bean) |
protected EntityBean |
getPooledInstance(ThreadContext callContext) |
protected void |
loadingBean(EntityBean bean,
ThreadContext callContext) |
EntityBean |
obtainInstance(ThreadContext callContext) |
void |
poolInstance(ThreadContext callContext,
EntityBean bean,
java.lang.Object primaryKey) |
protected void |
reusingBean(EntityBean bean,
ThreadContext callContext) |
void |
undeploy(BeanContext beanContext) |
public EntityInstanceManager(EntityContainer container, SecurityService securityService, int poolSize)
public void deploy(BeanContext beanContext)
public void undeploy(BeanContext beanContext)
public EntityBean obtainInstance(ThreadContext callContext) throws OpenEJBException
OpenEJBException
protected void loadingBean(EntityBean bean, ThreadContext callContext) throws OpenEJBException
OpenEJBException
protected void reusingBean(EntityBean bean, ThreadContext callContext) throws OpenEJBException
OpenEJBException
protected EntityBean getPooledInstance(ThreadContext callContext) throws OpenEJBException
OpenEJBException
public void poolInstance(ThreadContext callContext, EntityBean bean, java.lang.Object primaryKey) throws OpenEJBException
OpenEJBException
public void freeInstance(ThreadContext callContext, EntityBean bean) throws SystemException
SystemException
public void discardInstance(ThreadContext callContext, EntityBean bean) throws SystemException
SystemException