|
JBoss API: Class BMPPersistenceManager
org.jboss.ejb.plugins
|
Constructor Summary | |
BMPPersistenceManager()
|
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)
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 ctx)
This method is called when single entities are to be found. |
void |
init()
|
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 |
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 BMPPersistenceManager()
Method Detail |
public void setContainer(Container c)
ContainerPlugin
setContainer
in interface ContainerPlugin
org.jboss.ejb.ContainerPlugin
con
- the container using this pluginpublic void init() throws java.lang.Exception
public void start()
public void stop()
public void destroy()
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
EntityPersistenceManager
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 removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |