|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.core.entity.EntityContainer
public class EntityContainer
Bean-Managed Persistence EntityBean container
| Field Summary | |
|---|---|
protected java.lang.Object |
containerID
The unique id for this container |
protected java.util.HashMap |
deploymentRegistry
Contains deployment information for each by deployed to this container |
protected EntityInstanceManager |
instanceManager
Managed bean instances; transaction ready and ready pools |
Logger |
logger
|
| Fields inherited from interface org.openejb.Container |
|---|
ENTITY, MESSAGE_DRIVEN, STATEFUL, STATELESS |
| Constructor Summary | |
|---|---|
EntityContainer()
|
|
| Method Summary | |
|---|---|
protected ProxyInfo |
createEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
|
void |
deploy(java.lang.Object deploymentID,
DeploymentInfo info)
Adds a bean to this container. |
DeploymentInfo[] |
deployments()
Gets the DeploymentInfo objects for all the beans deployed in
this container. |
protected void |
didCreateBean(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
protected void |
didRemove(javax.ejb.EntityBean bean,
ThreadContext callContext)
|
void |
discardInstance(javax.ejb.EnterpriseBean bean,
ThreadContext threadContext)
|
void |
ejbLoad_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
If a business method or remove method is called without a transaction context the ejbLoad method must be invoked before the call is serviced. |
void |
ejbStore_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
If a business method is called without a transaction context the ejbStore method must be invoked after the call is serviced. |
protected java.lang.Object |
findMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
This method is used to execute the find methods which are considered global in scope. |
java.lang.Object |
getContainerID()
Gets the id of this container. |
int |
getContainerType()
Gets the type of container (STATELESS, STATEFUL, ENTITY, or MESSAGE_DRIVEN |
DeploymentInfo |
getDeploymentInfo(java.lang.Object deploymentID)
Gets the DeploymentInfo object for the bean with the specified
deployment id. |
EntityInstanceManager |
getInstanceManager()
|
protected java.lang.Object |
homeMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
This method is used to execute the home methods which are considered global in scope. |
void |
init(java.lang.Object id,
java.util.HashMap registry,
java.util.Properties properties)
Construct this container with the specified container id, deployments, container manager and properties. |
protected java.lang.Object |
invoke(java.lang.reflect.Method callMethod,
java.lang.reflect.Method runMethod,
java.lang.Object[] args,
ThreadContext callContext)
|
java.lang.Object |
invoke(java.lang.Object deployID,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey,
java.lang.Object securityIdentity)
Invokes a method on an instance of the specified bean deployment. |
protected void |
removeEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EntityInstanceManager instanceManager
protected java.util.HashMap deploymentRegistry
protected java.lang.Object containerID
public Logger logger
| Constructor Detail |
|---|
public EntityContainer()
| Method Detail |
|---|
public void init(java.lang.Object id,
java.util.HashMap registry,
java.util.Properties properties)
throws OpenEJBException
init in interface Containerid - the unique id to identify this container in the ContainerSystemregistry - a hashMap of bean delpoyments that this container will be responsible forproperties - the properties this container needs to initialize and run
OpenEJBException - if there is a problem constructing the container
OpenEJBExceptionContainerpublic DeploymentInfo[] deployments()
DeploymentInfo objects for all the beans deployed in
this container.
deployments in interface ContainerDeploymentInfopublic DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
DeploymentInfo object for the bean with the specified
deployment id.
getDeploymentInfo in interface ContainerdeploymentID -
DeploymentInfo,
DeploymentInfo.getDeploymentID()public int getContainerType()
getContainerType in interface Containerpublic java.lang.Object getContainerID()
getContainerID in interface Container
public void deploy(java.lang.Object deploymentID,
DeploymentInfo info)
throws OpenEJBException
deploy in interface ContainerdeploymentID - the deployment id of the bean to deploy.info - the DeploymentInfo object associated with the bean.
OpenEJBException - Occurs when the container is not able to deploy the bean for some
reason.
public java.lang.Object invoke(java.lang.Object deployID,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey,
java.lang.Object securityIdentity)
throws OpenEJBException
invoke in interface RpcContainerdeployID - the dployment id of the bean deploymentcallMethod - the method to be called on the bean instanceargs - the arguments to use when invoking the specified methodprimKey - the primary key class of the bean or null if the bean does not need a primary keysecurityIdentity - identity
OpenEJBExceptionStatefulContainer.invokepublic EntityInstanceManager getInstanceManager()
protected java.lang.Object invoke(java.lang.reflect.Method callMethod,
java.lang.reflect.Method runMethod,
java.lang.Object[] args,
ThreadContext callContext)
throws OpenEJBException
OpenEJBException
public void ejbLoad_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws SystemException,
java.lang.Exception
callContext - bean -
SystemException
java.lang.Exception
public void ejbStore_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws java.lang.Exception
callContext - bean -
java.lang.Exception
protected void didCreateBean(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws OpenEJBException
OpenEJBException
protected ProxyInfo createEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
throws OpenEJBException
OpenEJBException
protected java.lang.Object findMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
throws OpenEJBException
callMethod - args - callContext -
OpenEJBException
protected java.lang.Object homeMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
throws OpenEJBException
callMethod - args - callContext -
OpenEJBException
protected void didRemove(javax.ejb.EntityBean bean,
ThreadContext callContext)
throws OpenEJBException
OpenEJBException
protected void removeEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext)
throws OpenEJBException
OpenEJBException
public void discardInstance(javax.ejb.EnterpriseBean bean,
ThreadContext threadContext)
discardInstance in interface TransactionContainerbean - threadContext -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||