|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by any EntityBean persistence managers plugins.
Implementations of this interface are called by other plugins in the container. If the persistence manager wants to, it may attach any instance specific metadata to the EntityEnterpriseContext that is passed in method calls.
EntityContainer
(src) Field Summary |
Method Summary | |
void |
activateEntity(EntityEnterpriseContext (src) instance)
This method is called when an entity shall be activated. |
java.lang.Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
void |
createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance)
This method is called whenever an entity is to be created. |
java.util.Collection |
findEntities(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
This method is called when collections of entities are to be found. |
java.lang.Object |
findEntity(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
This method is called when single entities are to be found. |
void |
invokeEjbStore(EntityEnterpriseContext (src) instance)
Invokes ejbStore on the instance. |
boolean |
isModified(EntityEnterpriseContext (src) ctx)
This method is used to determined whether the instance was modified. |
boolean |
isStoreRequired(EntityEnterpriseContext (src) instance)
This method is used to determine if an entity should be stored. |
void |
loadEntity(EntityEnterpriseContext (src) instance)
This method is called whenever an entity shall be load from the underlying storage. |
void |
passivateEntity(EntityEnterpriseContext (src) instance)
This method is called when an entity shall be passivate. |
void |
postCreateEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance)
This method is called whenever an entity is to be created. |
void |
removeEntity(EntityEnterpriseContext (src) instance)
This method is called when an entity shall be removed from the underlying storage. |
void |
storeEntity(EntityEnterpriseContext (src) instance)
This method is called whenever an entity shall be stored to the underlying storage. |
Methods inherited from interface org.jboss.ejb.ContainerPlugin (src) |
setContainer |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Method Detail |
public java.lang.Object createBeanClassInstance() throws java.lang.Exception
java.lang.Exception
public void createEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext (src) instance) throws java.lang.Exception
m
- the create method in the home interface that was
calledargs
- any create parametersinstance
- the instance being used for this create call
java.lang.Exception
public void postCreateEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext (src) instance) throws java.lang.Exception
m
- the create method in the home interface that was
calledargs
- any create parametersinstance
- the instance being used for this create call
java.lang.Exception
public java.lang.Object findEntity(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext (src) instance, GenericEntityObjectFactory (src) factory) throws java.lang.Exception
finderMethod
- the find method in the home interface that was
calledargs
- any finder parametersinstance
- the instance to use for the finder call
java.lang.Exception
public java.util.Collection findEntities(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext (src) instance, GenericEntityObjectFactory (src) factory) throws java.lang.Exception
finderMethod
- the find method in the home interface that was
calledargs
- any finder parametersinstance
- the instance to use for the finder call
java.lang.Exception
public void activateEntity(EntityEnterpriseContext (src) instance) throws java.rmi.RemoteException
instance
- the instance to use for the activation
java.rmi.RemoteException
- thrown if some system exception occurspublic void loadEntity(EntityEnterpriseContext (src) instance) throws java.rmi.RemoteException
instance
- the instance to synchronize
java.rmi.RemoteException
- thrown if some system exception occurspublic boolean isStoreRequired(EntityEnterpriseContext (src) instance) throws java.lang.Exception
instance
- the instance to check
java.lang.Exception
- thrown if some system exception occurspublic boolean isModified(EntityEnterpriseContext (src) ctx) throws java.lang.Exception
ctx
-
java.lang.Exception
public void storeEntity(EntityEnterpriseContext (src) instance) throws java.rmi.RemoteException
instance
- the instance to synchronize
java.rmi.RemoteException
- thrown if some system exception occurspublic void invokeEjbStore(EntityEnterpriseContext (src) instance) throws java.rmi.RemoteException
instance
-
java.rmi.RemoteException
public void passivateEntity(EntityEnterpriseContext (src) instance) throws java.rmi.RemoteException
instance
- the instance to passivate
java.rmi.RemoteException
- thrown if some system exception occurspublic void removeEntity(EntityEnterpriseContext (src) instance) throws java.rmi.RemoteException, RemoveException (src)
instance
- the instance to remove
java.rmi.RemoteException
- thrown if some system exception occurs
RemoveException (src)
- thrown if the instance could not be removed
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |