Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ejb.plugins.cmp » jdbc » [javadoc | source]
org.jboss.ejb.plugins.cmp.jdbc
public final class: JDBCStoreManager [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager

All Implemented Interfaces:
    JDBCEntityPersistenceStore

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
Method from org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager Summary:
activateEntity,   create,   createBeanClassInstance,   createEntity,   destroy,   findEntities,   findEntity,   getApplicationData,   getApplicationDataMap,   getApplicationTxData,   getCatalog,   getCommandFactory,   getContainer,   getEntityBridge,   getEntityTxData,   getJDBCTypeFactory,   getMetaData,   getQueryManager,   getReadAheadCache,   initEntity,   isModified,   isStoreRequired,   loadEntity,   loadEntity,   loadField,   loadRelation,   passivateEntity,   postCreateEntity,   putApplicationData,   putApplicationTxData,   putEntityTxData,   removeEntity,   removeEntityTxData,   scheduleCascadeDelete,   setContainer,   start,   stop,   storeEntity,   unscheduledCascadeDelete
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager Detail:
 public  void activateEntity(EntityEnterpriseContext ctx) 
 public  void create() throws Exception 
    Does almost nothing because other services such as JDBC data sources may not have been started.
 public Object createBeanClassInstance() throws Exception 
    Returns a new instance of a class which implemnts the bean class.
 public Object createEntity(Method createMethod,
    Object[] args,
    EntityEnterpriseContext ctx) throws CreateException 
 public  void destroy() 
 public Collection findEntities(Method finderMethod,
    Object[] args,
    EntityEnterpriseContext ctx,
    GenericEntityObjectFactory factory) throws FinderException 
 public Object findEntity(Method finderMethod,
    Object[] args,
    EntityEnterpriseContext ctx,
    GenericEntityObjectFactory factory) throws FinderException 
 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. If entity not found NoSuchEntityException is thrown.
 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) throws RemoveException, RemoteException 
 public  void removeEntityTxData(Object key) 
 public  void scheduleCascadeDelete(List pks) 
    Schedules instances for cascade-delete
 public  void setContainer(Container container) 
    Sets the container for this entity.
 public  void start() throws Exception 
    Bring the store to a fully initialized state
 public  void stop() 
 public  void storeEntity(EntityEnterpriseContext ctx) 
 public boolean unscheduledCascadeDelete(Object pk) 
    Unschedules instance cascade delete.