| java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager
JDBCStoreManager | final public class JDBCStoreManager implements JDBCEntityPersistenceStore(Code) | | JDBCStoreManager manages storage of persistence data into a table.
Other then loading the initial jbosscmp-jdbc.xml file this class
does very little. The interesting tasks are performed by the command
classes.
Life-cycle:
Tied to the life-cycle of the entity container.
Multiplicity:
One per cmp entity bean. This could be less if another implementaion of
EntityPersistenceStore is created and thoes beans use the implementation
author: Dain Sundstrom author: Alex Loubyansky See Also: org.jboss.ejb.EntityPersistenceStore version: $Revision: 57209 $ |
Method Summary | |
public void | activateEntity(EntityEnterpriseContext ctx) | public void | create() Does almost nothing because other services such
as JDBC data sources may not have been started. | public Object | createBeanClassInstance() Returns a new instance of a class which implemnts the bean class. | public Object | createEntity(Method createMethod, Object[] args, EntityEnterpriseContext ctx) | public void | destroy() | public Collection | findEntities(Method finderMethod, Object[] args, EntityEnterpriseContext ctx, GenericEntityObjectFactory factory) | public Object | findEntity(Method finderMethod, Object[] args, EntityEnterpriseContext ctx, GenericEntityObjectFactory factory) | public Object | getApplicationData(Object key) | public Map | getApplicationDataMap() | public Object | getApplicationTxData(Object key) | public Catalog | getCatalog() | public JDBCCommandFactory | getCommandFactory() | public EntityContainer | getContainer() Gets the container for this entity. | public JDBCAbstractEntityBridge | getEntityBridge() | public Object | getEntityTxData(Object key) | public JDBCTypeFactory | getJDBCTypeFactory() | public JDBCEntityMetaData | getMetaData() | public JDBCQueryManager | getQueryManager() | public ReadAheadCache | getReadAheadCache() | public void | initEntity(EntityEnterpriseContext ctx) | public boolean | isModified(EntityEnterpriseContext ctx) | public boolean | isStoreRequired(EntityEnterpriseContext ctx) | public void | loadEntity(EntityEnterpriseContext ctx) Loads entity. | public boolean | loadEntity(EntityEnterpriseContext ctx, boolean failIfNotFound) | public void | loadField(JDBCCMPFieldBridge field, EntityEnterpriseContext ctx) | public Collection | loadRelation(JDBCCMRFieldBridge cmrField, Object pk) | public void | passivateEntity(EntityEnterpriseContext ctx) | public Object | postCreateEntity(Method createMethod, Object[] args, EntityEnterpriseContext ctx) | public void | putApplicationData(Object key, Object value) | public void | putApplicationTxData(Object key, Object value) | public void | putEntityTxData(Object key, Object value) | public void | removeEntity(EntityEnterpriseContext ctx) | public void | removeEntityTxData(Object key) | public void | scheduleCascadeDelete(List pks) | public void | setContainer(Container container) Sets the container for this entity. | public void | start() | public void | stop() | public void | storeEntity(EntityEnterpriseContext ctx) | public boolean | unscheduledCascadeDelete(Object pk) Unschedules instance cascade delete.
Parameters: pk - instance primary key. |
create | public void create() throws Exception(Code) | | Does almost nothing because other services such
as JDBC data sources may not have been started.
|
createBeanClassInstance | public Object createBeanClassInstance() throws Exception(Code) | | Returns a new instance of a class which implemnts the bean class.
the new instance |
destroy | public void destroy()(Code) | | |
getApplicationDataMap | public Map getApplicationDataMap()(Code) | | |
getContainer | public EntityContainer getContainer()(Code) | | Gets the container for this entity.
the container for this entity; null if container has not been set |
loadEntity | public void loadEntity(EntityEnterpriseContext ctx)(Code) | | Loads entity.
If entity not found NoSuchEntityException is thrown.
Parameters: ctx - - entity context. |
removeEntityTxData | public void removeEntityTxData(Object key)(Code) | | |
scheduleCascadeDelete | public void scheduleCascadeDelete(List pks)(Code) | | Schedules instances for cascade-delete
|
setContainer | public void setContainer(Container container)(Code) | | Sets the container for this entity.
Parameters: container - the container for this entity throws: ClassCastException - if the container is not an instance ofEntityContainer |
start | public void start() throws Exception(Code) | | Bring the store to a fully initialized state
|
unscheduledCascadeDelete | public boolean unscheduledCascadeDelete(Object pk)(Code) | | Unschedules instance cascade delete.
Parameters: pk - instance primary key. true if the instance was scheduled for cascade deleted. |
|
|