org.apache.openejb.core.entity
Class EntityInstanceManager

java.lang.Object
  extended by org.apache.openejb.core.entity.EntityInstanceManager

public class EntityInstanceManager
extends java.lang.Object


Nested Class Summary
protected  class EntityInstanceManager.SynchronizationWrapper
           
 
Constructor Summary
EntityInstanceManager(EntityContainer container, SecurityService securityService, int poolSize)
           
 
Method Summary
 void deploy(DeploymentInfo deploymentInfo)
           
 void discardInstance(ThreadContext callContext, javax.ejb.EntityBean bean)
           
 void freeInstance(ThreadContext callContext, javax.ejb.EntityBean bean)
           
protected  javax.ejb.EntityBean getPooledInstance(ThreadContext callContext)
           
protected  void loadingBean(javax.ejb.EntityBean bean, ThreadContext callContext)
           
 javax.ejb.EntityBean obtainInstance(ThreadContext callContext)
           
 void poolInstance(ThreadContext callContext, javax.ejb.EntityBean bean, java.lang.Object primaryKey)
           
protected  void reusingBean(javax.ejb.EntityBean bean, ThreadContext callContext)
           
 void undeploy(DeploymentInfo deploymentInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityInstanceManager

public EntityInstanceManager(EntityContainer container,
                             SecurityService securityService,
                             int poolSize)
Method Detail

deploy

public void deploy(DeploymentInfo deploymentInfo)

undeploy

public void undeploy(DeploymentInfo deploymentInfo)

obtainInstance

public javax.ejb.EntityBean obtainInstance(ThreadContext callContext)
                                    throws OpenEJBException
Throws:
OpenEJBException

loadingBean

protected void loadingBean(javax.ejb.EntityBean bean,
                           ThreadContext callContext)
                    throws OpenEJBException
Throws:
OpenEJBException

reusingBean

protected void reusingBean(javax.ejb.EntityBean bean,
                           ThreadContext callContext)
                    throws OpenEJBException
Throws:
OpenEJBException

getPooledInstance

protected javax.ejb.EntityBean getPooledInstance(ThreadContext callContext)
                                          throws OpenEJBException
Throws:
OpenEJBException

poolInstance

public void poolInstance(ThreadContext callContext,
                         javax.ejb.EntityBean bean,
                         java.lang.Object primaryKey)
                  throws OpenEJBException
Throws:
OpenEJBException

freeInstance

public void freeInstance(ThreadContext callContext,
                         javax.ejb.EntityBean bean)
                  throws SystemException
Throws:
SystemException

discardInstance

public void discardInstance(ThreadContext callContext,
                            javax.ejb.EntityBean bean)
                     throws SystemException
Throws:
SystemException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.