|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is implemented by any EntityBean persistence Store. These stores just deal with the persistence aspect of storing java objects They need not be aware of the EJB semantics. They act as delegatees for the CMPEntityPersistenceManager class.
EntityPersistenceManager| Method Summary | |
void |
activateEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be activated. |
java.lang.Object |
createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext instance)
This method is called whenever an entity is to be created. |
FinderResults |
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 |
loadEntities(FinderResults keys)
This method is called whenever a set of entities should be preloaded from the underlying storage. |
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 java.lang.Object 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 calljava.lang.Exception -
public 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 calljava.rmi.RemoteException - thrown if some system exception occursjavax.ejb.FinderException - thrown if some heuristic problem occurs
public FinderResults 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 calljava.rmi.RemoteException - thrown if some system exception occursjavax.ejb.FinderException - thrown if some heuristic problem occurs
public void activateEntity(EntityEnterpriseContext instance)
throws java.rmi.RemoteException
instance - the instance to use for the activationjava.rmi.RemoteException - thrown if some system exception occurs
public void loadEntity(EntityEnterpriseContext instance)
throws java.rmi.RemoteException
instance - the instance to synchronizejava.rmi.RemoteException - thrown if some system exception occurs
public void loadEntities(FinderResults keys)
throws java.rmi.RemoteException
instances - the EntityEnterpriseContexts for the entities that must be loadedkeys - a PagableKeyCollection previously returned from findEntities.
public void storeEntity(EntityEnterpriseContext instance)
throws java.rmi.RemoteException
instance - the instance to synchronizejava.rmi.RemoteException - thrown if some system exception occurs
public void passivateEntity(EntityEnterpriseContext instance)
throws java.rmi.RemoteException
instance - the instance to passivatejava.rmi.RemoteException - thrown if some system exception occurs
public 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 | ||||||||