JBoss API: Interface EntityPersistenceManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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
Method Summary | |
void |
activateEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be activated. |
void |
createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext 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 instance)
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 instance)
This method is called when single entities are to be found. |
void |
loadEntity(EntityEnterpriseContext instance)
This method is called whenever an entity shall be load from the underlying storage. |
void |
passivateEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be passivate. |
void |
removeEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be removed from the underlying storage. |
void |
storeEntity(EntityEnterpriseContext instance)
This method is called whenever an entity shall be stored to the underlying storage. |
Methods inherited from interface org.jboss.ejb.ContainerPlugin |
setContainer |
Methods inherited from interface org.jboss.util.Service |
destroy, init, start, stop |
Method Detail |
public void createEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext 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 callpublic java.lang.Object findEntity(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext instance) 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 callpublic java.util.Collection findEntities(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext instance) 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 callpublic void activateEntity(EntityEnterpriseContext instance) throws java.rmi.RemoteException
instance
- the instance to use for the activationjava.rmi.RemoteException
- thrown if some system exception occurspublic void loadEntity(EntityEnterpriseContext instance) throws java.rmi.RemoteException
instance
- the instance to synchronizejava.rmi.RemoteException
- thrown if some system exception occurspublic void storeEntity(EntityEnterpriseContext instance) throws java.rmi.RemoteException
instance
- the instance to synchronizejava.rmi.RemoteException
- thrown if some system exception occurspublic void passivateEntity(EntityEnterpriseContext instance) throws java.rmi.RemoteException
instance
- the instance to passivatejava.rmi.RemoteException
- thrown if some system exception occurspublic void removeEntity(EntityEnterpriseContext instance) throws java.rmi.RemoteException, javax.ejb.RemoveException
instance
- the instance to removejava.rmi.RemoteException
- thrown if some system exception occursjavax.ejb.RemoveException
- thrown if the instance could not be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |