|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.ejb.plugins.BMPPersistenceManager
Persistence manager for BMP entites. All calls are simply deligated to the entity implementation class.
| Field Summary |
| Constructor Summary | |
BMPPersistenceManager()
|
|
| Method Summary | |
void |
activateEntity(EntityEnterpriseContext ctx)
This method is called when an entity shall be activated. |
void |
create()
|
Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
void |
createEntity(Method m,
Object[] args,
EntityEnterpriseContext ctx)
This method is called whenever an entity is to be created. |
void |
destroy()
|
Collection |
findEntities(Method finderMethod,
Object[] args,
EntityEnterpriseContext ctx,
GenericEntityObjectFactory factory)
This method is called when collections of entities are to be found. |
Object |
findEntity(Method finderMethod,
Object[] args,
EntityEnterpriseContext ctx,
GenericEntityObjectFactory factory)
This method is called when single entities are to be found. |
void |
invokeEjbStore(EntityEnterpriseContext ctx)
Invokes ejbStore on the instance. |
boolean |
isModified(EntityEnterpriseContext ctx)
This method is used to determined whether the instance was modified. |
boolean |
isStoreRequired(EntityEnterpriseContext ctx)
This method is used to determine if an entity should be stored. |
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 |
postCreateEntity(Method m,
Object[] args,
EntityEnterpriseContext ctx)
This method is called whenever an entity is to be created. |
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 ContainerPluginc - The container using this plugin. This may be null if the
plugin is being disassociated from a container.
public void create()
throws Exception
create in interface org.jboss.system.ServiceExceptionpublic Object createBeanClassInstance() throws Exception
createBeanClassInstance in interface EntityPersistenceManagerExceptionpublic void start()
start in interface org.jboss.system.Servicepublic void stop()
stop in interface org.jboss.system.Servicepublic void destroy()
destroy in interface org.jboss.system.Servicepublic void createEntity(Method m, Object[] args, EntityEnterpriseContext ctx) throws Exception
EntityPersistenceManager
createEntity in interface EntityPersistenceManagerm - the create method in the home interface that was
calledargs - any create parametersctx - the instance being used for this create call
Exceptionpublic void postCreateEntity(Method m, Object[] args, EntityEnterpriseContext ctx) throws Exception
EntityPersistenceManager
postCreateEntity in interface EntityPersistenceManagerm - the create method in the home interface that was
calledargs - any create parametersctx - the instance being used for this create call
Exceptionpublic Object findEntity(Method finderMethod, Object[] args, EntityEnterpriseContext ctx, GenericEntityObjectFactory factory) throws Exception
EntityPersistenceManager
findEntity in interface EntityPersistenceManagerfinderMethod - the find method in the home interface that was
calledargs - any finder parametersctx - the instance to use for the finder call
Exceptionpublic Collection findEntities(Method finderMethod, Object[] args, EntityEnterpriseContext ctx, GenericEntityObjectFactory factory) throws Exception
EntityPersistenceManager
findEntities in interface EntityPersistenceManagerfinderMethod - the find method in the home interface that was
calledargs - any finder parametersctx - the instance to use for the finder call
Exceptionpublic void activateEntity(EntityEnterpriseContext ctx) throws RemoteException
EntityPersistenceManager
activateEntity in interface EntityPersistenceManagerctx - the instance to use for the activation
RemoteException - thrown if some system exception occurspublic void loadEntity(EntityEnterpriseContext ctx) throws RemoteException
EntityPersistenceManager
loadEntity in interface EntityPersistenceManagerctx - the instance to synchronize
RemoteException - thrown if some system exception occurspublic boolean isStoreRequired(EntityEnterpriseContext ctx) throws Exception
EntityPersistenceManager
isStoreRequired in interface EntityPersistenceManagerctx - the instance to check
Exception - thrown if some system exception occurspublic boolean isModified(EntityEnterpriseContext ctx) throws Exception
EntityPersistenceManager
isModified in interface EntityPersistenceManagerctx -
Exceptionpublic void invokeEjbStore(EntityEnterpriseContext ctx) throws RemoteException
EntityPersistenceManager
invokeEjbStore in interface EntityPersistenceManagerctx -
RemoteExceptionpublic void storeEntity(EntityEnterpriseContext ctx) throws RemoteException
EntityPersistenceManager
storeEntity in interface EntityPersistenceManagerctx - the instance to synchronize
RemoteException - thrown if some system exception occurspublic void passivateEntity(EntityEnterpriseContext ctx) throws RemoteException
EntityPersistenceManager
passivateEntity in interface EntityPersistenceManagerctx - the instance to passivate
RemoteException - thrown if some system exception occurspublic void removeEntity(EntityEnterpriseContext ctx) throws RemoteException, javax.ejb.RemoveException
EntityPersistenceManager
removeEntity in interface EntityPersistenceManagerctx - the instance to remove
javax.ejb.RemoveException - thrown if the instance could not be removed
RemoteException - thrown if some system exception occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||