|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityPersistenceManager
This interface is implemented by any EntityBean persistence managers plugins.
Implementations of this interface are called by other plugins in the container. If the persistence manager wants to, it may attach any instance specific metadata to the EntityEnterpriseContext that is passed in method calls.
EntityContainer
Field Summary |
---|
Method Summary | |
---|---|
void |
activateEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be activated. |
Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
void |
createEntity(Method m,
Object[] args,
EntityEnterpriseContext instance)
This method is called whenever an entity is to be created. |
Collection |
findEntities(Method finderMethod,
Object[] args,
EntityEnterpriseContext instance,
GenericEntityObjectFactory factory)
This method is called when collections of entities are to be found. |
Object |
findEntity(Method finderMethod,
Object[] args,
EntityEnterpriseContext instance,
GenericEntityObjectFactory factory)
This method is called when single entities are to be found. |
void |
invokeEjbStore(EntityEnterpriseContext instance)
Invokes ejbStore on the instance. |
boolean |
isModified(EntityEnterpriseContext ctx)
This method is used to determined whether the instance was modified. |
boolean |
isStoreRequired(EntityEnterpriseContext instance)
This method is used to determine if an entity should be stored. |
void |
loadEntity(EntityEnterpriseContext instance)
This method is called whenever an entity shall be load from the underlying storage. |
void |
passivateEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be passivate. |
void |
postCreateEntity(Method m,
Object[] args,
EntityEnterpriseContext instance)
This method is called whenever an entity is to be created. |
void |
removeEntity(EntityEnterpriseContext instance)
This method is called when an entity shall be removed from the underlying storage. |
void |
storeEntity(EntityEnterpriseContext instance)
This method is called whenever an entity shall be stored to the underlying storage. |
Methods inherited from interface org.jboss.ejb.ContainerPlugin |
---|
setContainer |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Method Detail |
---|
Object createBeanClassInstance() throws Exception
Exception
void createEntity(Method m, Object[] args, EntityEnterpriseContext instance) throws Exception
m
- the create method in the home interface that was
calledargs
- any create parametersinstance
- the instance being used for this create call
Exception
void postCreateEntity(Method m, Object[] args, EntityEnterpriseContext instance) throws Exception
m
- the create method in the home interface that was
calledargs
- any create parametersinstance
- the instance being used for this create call
Exception
Object findEntity(Method finderMethod, Object[] args, EntityEnterpriseContext instance, GenericEntityObjectFactory factory) throws Exception
finderMethod
- the find method in the home interface that was
calledargs
- any finder parametersinstance
- the instance to use for the finder call
Exception
Collection findEntities(Method finderMethod, Object[] args, EntityEnterpriseContext instance, GenericEntityObjectFactory factory) throws Exception
finderMethod
- the find method in the home interface that was
calledargs
- any finder parametersinstance
- the instance to use for the finder call
Exception
void activateEntity(EntityEnterpriseContext instance) throws RemoteException
instance
- the instance to use for the activation
RemoteException
- thrown if some system exception occursvoid loadEntity(EntityEnterpriseContext instance) throws RemoteException
instance
- the instance to synchronize
RemoteException
- thrown if some system exception occursboolean isStoreRequired(EntityEnterpriseContext instance) throws Exception
instance
- the instance to check
Exception
- thrown if some system exception occursboolean isModified(EntityEnterpriseContext ctx) throws Exception
ctx
-
Exception
void storeEntity(EntityEnterpriseContext instance) throws RemoteException
instance
- the instance to synchronize
RemoteException
- thrown if some system exception occursvoid invokeEjbStore(EntityEnterpriseContext instance) throws RemoteException
instance
-
RemoteException
void passivateEntity(EntityEnterpriseContext instance) throws RemoteException
instance
- the instance to passivate
RemoteException
- thrown if some system exception occursvoid removeEntity(EntityEnterpriseContext instance) throws RemoteException, javax.ejb.RemoveException
instance
- the instance to remove
RemoteException
- thrown if some system exception occurs
javax.ejb.RemoveException
- thrown if the instance could not be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |