|
JBoss API: Class JAWSPersistenceManager
org.jboss.ejb.plugins.jaws
|
Inner Class Summary | |
static class |
JAWSPersistenceManager.PersistenceContext
|
Constructor Summary | |
JAWSPersistenceManager()
|
Method Summary | |
void |
activateEntity(EntityEnterpriseContext ctx)
This method is called when an entity shall be activated. |
java.lang.Object |
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()
|
FinderResults |
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 |
loadEntities(FinderResults keys)
This method is called whenever a set of entities should be preloaded from the underlying storage. |
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 JAWSPersistenceManager()
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() throws java.lang.Exception
public void stop()
public void destroy()
public java.lang.Object createEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext ctx) throws java.rmi.RemoteException, javax.ejb.CreateException
EntityPersistenceStore
createEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
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 ctx) throws java.rmi.RemoteException, javax.ejb.FinderException
EntityPersistenceStore
findEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
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 occurspublic FinderResults findEntities(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext ctx) throws java.rmi.RemoteException, javax.ejb.FinderException
EntityPersistenceStore
findEntities
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
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 occurspublic void activateEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceStore
activateEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
instance
- the instance to use for the activationjava.rmi.RemoteException
- thrown if some system exception occurspublic void loadEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceStore
loadEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
instance
- the instance to synchronizejava.rmi.RemoteException
- thrown if some system exception occurspublic void loadEntities(FinderResults keys) throws java.rmi.RemoteException
EntityPersistenceStore
loadEntities
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
instances
- the EntityEnterpriseContexts for the entities that must be loadedkeys
- a PagableKeyCollection previously returned from findEntities.public void storeEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceStore
storeEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
instance
- the instance to synchronizejava.rmi.RemoteException
- thrown if some system exception occurspublic void passivateEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException
EntityPersistenceStore
passivateEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
instance
- the instance to passivatejava.rmi.RemoteException
- thrown if some system exception occurspublic void removeEntity(EntityEnterpriseContext ctx) throws java.rmi.RemoteException, javax.ejb.RemoveException
EntityPersistenceStore
removeEntity
in interface EntityPersistenceStore
org.jboss.ejb.EntityPersistenceStore
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 |