|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jboss.ejb.plugins.CMPPersistenceManager
The CMP Persistence Manager implements the semantics of the CMP EJB 1.1 call back specification. This Manager works with a "EntityPersistenceStore" that takes care of the physical storing of instances (JAWS, JDBC O/R, FILE, Object).
| Constructor Summary | |
CMPPersistenceManager()
|
|
| Method Summary | |
void |
activateEntity(EntityEnterpriseContext ctx)
This method is called when an entity shall be activated. |
void |
createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext ctx)
This method is called whenever an entity is to be created. |
void |
destroy()
|
java.util.Collection |
findEntities(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext ctx)
find multiple entities |
java.lang.Object |
findEntity(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext ctx)
This method is called when single entities are to be found. |
void |
init()
|
protected void |
invokeLoad(EntityEnterpriseContext ctx)
|
void |
loadEntity(EntityEnterpriseContext ctx)
This method is called whenever an entity shall be load from the underlying storage. |
void |
passivateEntity(EntityEnterpriseContext ctx)
This method is called when an entity shall be passivate. |
void |
removeEntity(EntityEnterpriseContext ctx)
This method is called when an entity shall be removed from the underlying storage. |
void |
setContainer(Container c)
This callback is set by the container so that the plugin may access it |
void |
setPersistenceStore(EntityPersistenceStore store)
|
void |
start()
|
void |
stop()
|
void |
storeEntity(EntityEnterpriseContext ctx)
This method is called whenever an entity shall be stored to the underlying storage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMPPersistenceManager()
| Method Detail |
public void setContainer(Container c)
ContainerPluginsetContainer in interface ContainerPluginorg.jboss.ejb.ContainerPlugincon - the container using this pluginpublic void setPersistenceStore(EntityPersistenceStore store)
public void init()
throws java.lang.Exception
init in interface Service
public void start()
throws java.lang.Exception
start in interface Servicepublic void stop()
stop in interface Servicepublic void destroy()
destroy in interface Service
public void createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext ctx)
throws java.lang.Exception
EntityPersistenceManagercreateEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerm - the create method in the home interface that was calledargs - any create parametersinstance - the instance being used for this create call
public java.lang.Object findEntity(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext ctx)
throws java.lang.Exception
EntityPersistenceManagerfindEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerfinderMethod - the find method in the home interface that was calledargs - any finder parametersinstance - the instance to use for the finder call
public java.util.Collection findEntities(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext ctx)
throws java.lang.Exception
findEntities in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerfinderMethod - the find method in the home interface that was calledargs - any finder parametersinstance - the instance to use for the finder call
public void activateEntity(EntityEnterpriseContext ctx)
throws java.rmi.RemoteException
EntityPersistenceManageractivateEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerinstance - the instance to use for the activationjava.rmi.RemoteException - thrown if some system exception occurs
public void loadEntity(EntityEnterpriseContext ctx)
throws java.rmi.RemoteException
EntityPersistenceManagerloadEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerinstance - the instance to synchronizejava.rmi.RemoteException - thrown if some system exception occurs
public void storeEntity(EntityEnterpriseContext ctx)
throws java.rmi.RemoteException
EntityPersistenceManagerstoreEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerinstance - the instance to synchronizejava.rmi.RemoteException - thrown if some system exception occurs
public void passivateEntity(EntityEnterpriseContext ctx)
throws java.rmi.RemoteException
EntityPersistenceManagerpassivateEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerinstance - the instance to passivatejava.rmi.RemoteException - thrown if some system exception occurs
public void removeEntity(EntityEnterpriseContext ctx)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
EntityPersistenceManagerremoveEntity in interface EntityPersistenceManagerorg.jboss.ejb.EntityPersistenceManagerinstance - the instance to removejava.rmi.RemoteException - thrown if some system exception occursjavax.ejb.RemoveException - thrown if the instance could not be removed
protected void invokeLoad(EntityEnterpriseContext ctx)
throws java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||