|
|||||||||
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)
ContainerPlugin
setContainer
in interface ContainerPlugin
org.jboss.ejb.ContainerPlugin
con
- 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 Service
public void stop()
stop
in interface Service
public void destroy()
destroy
in interface Service
public void createEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext ctx) throws java.lang.Exception
EntityPersistenceManager
createEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
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 ctx) throws java.lang.Exception
EntityPersistenceManager
findEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
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 ctx) throws java.lang.Exception
findEntities
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
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 ctx) throws java.rmi.RemoteException
EntityPersistenceManager
activateEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
instance
- the instance to use for the activationjava.rmi.RemoteException
- thrown if some system exception occurspublic void loadEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceManager
loadEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
instance
- the instance to synchronizejava.rmi.RemoteException
- thrown if some system exception occurspublic void storeEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceManager
storeEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
instance
- the instance to synchronizejava.rmi.RemoteException
- thrown if some system exception occurspublic void passivateEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceManager
passivateEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
instance
- the instance to passivatejava.rmi.RemoteException
- thrown if some system exception occurspublic void removeEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException, javax.ejb.RemoveException
EntityPersistenceManager
removeEntity
in interface EntityPersistenceManager
org.jboss.ejb.EntityPersistenceManager
instance
- the instance to removejava.rmi.RemoteException
- thrown if some system exception occursjavax.ejb.RemoveException
- thrown if the instance could not be removedprotected void invokeLoad(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |