|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.plugins.cmp.jdbc2.JDBCStoreManager2
Field Summary |
Constructor Summary | |
JDBCStoreManager2()
|
Method Summary | |
void |
activateEntity(EntityEnterpriseContext (src) ctx)
This method is called when an entity shall be activated. |
void |
create()
create the service, do expensive operations etc |
java.lang.Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
java.lang.Object |
createEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) ctx)
This method is called whenever an entity is to be created. |
void |
destroy()
destroy the service, tear down |
java.util.Collection |
findEntities(java.lang.reflect.Method finderMethod,
java.lang.Object[] args,
EntityEnterpriseContext (src) instance,
GenericEntityObjectFactory (src) factory)
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 (src) instance,
GenericEntityObjectFactory (src) factory)
This method is called when single entities are to be found. |
java.lang.Object |
getApplicationData(java.lang.Object key)
|
Catalog (src) |
getCatalog()
|
EntityContainer (src) |
getContainer()
|
JDBCAbstractEntityBridge (src) |
getEntityBridge()
|
JDBCTypeFactory (src) |
getJDBCTypeFactory()
|
JDBCEntityMetaData (src) |
getMetaData()
|
QueryFactory (src) |
getQueryFactory()
|
Schema (src) |
getSchema()
|
void |
initEntity(EntityEnterpriseContext (src) ctx)
Initializes the instance context. |
protected void |
initStoreManager()
|
boolean |
isCascadeDeleted(java.lang.Object key)
|
boolean |
isModified(EntityEnterpriseContext (src) instance)
This method is used to determined whether the instance was modified. |
boolean |
isStoreRequired(EntityEnterpriseContext (src) instance)
This method is used to determine if an entity should be stored. |
void |
loadEntity(EntityEnterpriseContext (src) ctx)
This method is called whenever an entity shall be load from the underlying storage. |
void |
passivateEntity(EntityEnterpriseContext (src) ctx)
This method is called when an entity shall be passivate. |
java.lang.Object |
postCreateEntity(java.lang.reflect.Method m,
java.lang.Object[] args,
EntityEnterpriseContext (src) ctx)
This method is called after the createEntity. |
void |
putApplicationData(java.lang.Object key,
java.lang.Object value)
|
boolean |
registerCascadeDelete(java.lang.Object key,
java.lang.Object value)
|
void |
removeEntity(EntityEnterpriseContext (src) ctx)
This method is called when an entity shall be removed from the underlying storage. |
void |
setContainer(Container (src) con)
This callback is set by the container so that the plugin may access it |
void |
start()
start the service, create is already called |
protected void |
startStoreManager()
|
void |
stop()
stop the service |
void |
storeEntity(EntityEnterpriseContext (src) instance)
This method is called whenever an entity shall be stored to the underlying storage. |
void |
unregisterCascadeDelete(java.lang.Object key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCStoreManager2()
Method Detail |
public Schema (src) getSchema()
public Catalog (src) getCatalog()
getCatalog
in interface JDBCEntityPersistenceStore (src)
public QueryFactory (src) getQueryFactory()
public boolean registerCascadeDelete(java.lang.Object key, java.lang.Object value)
public boolean isCascadeDeleted(java.lang.Object key)
public void unregisterCascadeDelete(java.lang.Object key)
public void setContainer(Container (src) con)
ContainerPlugin (src)
setContainer
in interface ContainerPlugin (src)
con
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.public void create() throws java.lang.Exception
Service (src)
create
in interface Service (src)
java.lang.Exception
public void start() throws java.lang.Exception
Service (src)
start
in interface Service (src)
java.lang.Exception
public void stop()
Service (src)
stop
in interface Service (src)
public void destroy()
Service (src)
destroy
in interface Service (src)
public JDBCAbstractEntityBridge (src) getEntityBridge()
getEntityBridge
in interface JDBCEntityPersistenceStore (src)
public JDBCEntityMetaData (src) getMetaData()
getMetaData
in interface JDBCEntityPersistenceStore (src)
public JDBCTypeFactory (src) getJDBCTypeFactory()
getJDBCTypeFactory
in interface JDBCEntityPersistenceStore (src)
public EntityContainer (src) getContainer()
getContainer
in interface JDBCEntityPersistenceStore (src)
public java.lang.Object getApplicationData(java.lang.Object key)
getApplicationData
in interface JDBCEntityPersistenceStore (src)
public void putApplicationData(java.lang.Object key, java.lang.Object value)
putApplicationData
in interface JDBCEntityPersistenceStore (src)
public java.lang.Object createBeanClassInstance() throws java.lang.Exception
EntityPersistenceStore (src)
createBeanClassInstance
in interface EntityPersistenceStore (src)
java.lang.Exception
public void initEntity(EntityEnterpriseContext (src) ctx)
EntityPersistenceStore (src)
This method is called before createEntity, and should resetStats the value of all cmpFields to 0 or null.
initEntity
in interface EntityPersistenceStore (src)
ctx
- public java.lang.Object createEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext (src) ctx) throws CreateException (src)
EntityPersistenceStore (src)
createEntity
in interface EntityPersistenceStore (src)
m
- the create method in the home interface that was
calledargs
- any create parametersctx
- the instance being used for this create call
CreateException (src)
public java.lang.Object postCreateEntity(java.lang.reflect.Method m, java.lang.Object[] args, EntityEnterpriseContext (src) ctx) throws CreateException (src)
EntityPersistenceStore (src)
postCreateEntity
in interface EntityPersistenceStore (src)
m
- the ejbPostCreate method in the bean class that was
calledargs
- any create parametersctx
- the instance being used for this create call
CreateException (src)
public java.lang.Object findEntity(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext (src) instance, GenericEntityObjectFactory (src) factory) throws FinderException (src)
EntityPersistenceStore (src)
findEntity
in interface EntityPersistenceStore (src)
finderMethod
- the find method in the home interface that was
calledargs
- any finder parametersinstance
- the instance to use for the finder call
FinderException (src)
public java.util.Collection findEntities(java.lang.reflect.Method finderMethod, java.lang.Object[] args, EntityEnterpriseContext (src) instance, GenericEntityObjectFactory (src) factory) throws FinderException (src)
EntityPersistenceStore (src)
findEntities
in interface EntityPersistenceStore (src)
finderMethod
- the find method in the home interface that was
calledargs
- any finder parametersinstance
- the instance to use for the finder call
FinderException (src)
public void activateEntity(EntityEnterpriseContext (src) ctx)
EntityPersistenceStore (src)
With the PersistenceManager factorization most EJB calls should not exists However this calls permits us to introduce optimizations in the persistence store. Particularly the context has a "PersistenceContext" that a PersistenceStore can use (JAWS does for smart updates) and this is as good a callback as any other to set it up.
activateEntity
in interface EntityPersistenceStore (src)
ctx
- the instance to use for the activationpublic void loadEntity(EntityEnterpriseContext (src) ctx)
EntityPersistenceStore (src)
loadEntity
in interface EntityPersistenceStore (src)
ctx
- the instance to synchronizepublic boolean isStoreRequired(EntityEnterpriseContext (src) instance)
EntityPersistenceStore (src)
isStoreRequired
in interface EntityPersistenceStore (src)
instance
- the instance to check
public boolean isModified(EntityEnterpriseContext (src) instance) throws java.lang.Exception
EntityPersistenceStore (src)
isModified
in interface EntityPersistenceStore (src)
instance
-
java.lang.Exception
public void storeEntity(EntityEnterpriseContext (src) instance)
EntityPersistenceStore (src)
storeEntity
in interface EntityPersistenceStore (src)
instance
- the instance to synchronizepublic void passivateEntity(EntityEnterpriseContext (src) ctx)
EntityPersistenceStore (src)
See the activate discussion for the reason for exposing EJB callback calls to the store.
passivateEntity
in interface EntityPersistenceStore (src)
ctx
- the instance to passivatepublic void removeEntity(EntityEnterpriseContext (src) ctx) throws RemoveException (src)
EntityPersistenceStore (src)
removeEntity
in interface EntityPersistenceStore (src)
ctx
- the instance to remove
RemoveException (src)
- thrown if the instance could not be removedprotected void initStoreManager() throws java.lang.Exception
java.lang.Exception
protected void startStoreManager() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |