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

All Implemented Interfaces:
    JDBCAbstractEntityBridge

JDBCEntityBridge follows the Bridge pattern [Gamma et. al, 1995]. The main job of this class is to construct the bridge from entity meta data. Life-cycle: Undefined. Should be tied to CMPStoreManager. Multiplicity: One per cmp entity bean type.
Nested Class Summary:
public class  JDBCEntityBridge.EntityState   
public static interface  JDBCEntityBridge.FieldIterator   
Field Summary
public static final  byte LOADED     
public static final  byte LOAD_REQUIRED     
public static final  byte DIRTY     
public static final  byte CHECK_DIRTY     
public static final  byte LOCKED     
public static final  byte ADD_TO_SET_ON_UPDATE     
public static final  byte ADD_TO_WHERE_ON_UPDATE     
public static final  JDBCEntityBridge.FieldIterator EMPTY_FIELD_ITERATOR     
Constructor:
 public JDBCEntityBridge(JDBCEntityMetaData metadata,
    JDBCStoreManager manager) throws DeploymentException 
Method from org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge Summary:
addTableField,   cascadeDelete,   createPrimaryKeyInstance,   destroyPersistenceContext,   extractPrimaryKeyFromInstance,   getAbstractSchemaName,   getCMPFieldByName,   getCMRFieldByName,   getCMRFields,   getCreatedPrincipalField,   getCreatedTimeField,   getDataSource,   getDirtyIterator,   getEagerLoadMask,   getEntityName,   getFetchSize,   getFieldByName,   getFields,   getLazyLoadGroupMasks,   getListCacheMax,   getLoadGroupMask,   getLoadIterator,   getLocalInterface,   getLockedIterator,   getManager,   getMetaData,   getNextJDBCContextIndex,   getPrimaryKeyClass,   getPrimaryKeyFields,   getQualifiedTableName,   getRemoteInterface,   getSelectors,   getTableFields,   getTableName,   getUpdatedPrincipalField,   getUpdatedTimeField,   getVersionField,   hasLockedFields,   init,   initInstance,   initPersistenceContext,   injectPrimaryKeyIntoInstance,   isBeingRemoved,   isEjbCreateDone,   isModified,   isRemoved,   isScheduledForBatchCascadeDelete,   isScheduledForCascadeDelete,   isStoreRequired,   loadPrimaryKeyResults,   removeFromRelations,   resetPersistenceContext,   resolveRelationships,   scheduleForBatchCascadeDelete,   scheduleForCascadeDelete,   setCreated,   setEjbCreateDone,   setIsBeingRemoved,   setPrimaryKeyParameters,   setRemoved,   start
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge Detail:
 int addTableField(JDBCCMPFieldBridge field) 
 public  void cascadeDelete(EntityEnterpriseContext ctx,
    Map oldRelations) throws RemoveException, RemoteException 
 public Object createPrimaryKeyInstance() 
 public static  void destroyPersistenceContext(EntityEnterpriseContext ctx) 
 public Object extractPrimaryKeyFromInstance(EntityEnterpriseContext ctx) 
 public String getAbstractSchemaName() 
 public JDBCCMPFieldBridge getCMPFieldByName(String name) 
 public JDBCCMRFieldBridge getCMRFieldByName(String name) 
 public JDBCAbstractCMRFieldBridge[] getCMRFields() 
 public JDBCCMPFieldBridge getCreatedPrincipalField() 
 public JDBCCMPFieldBridge getCreatedTimeField() 
 public DataSource getDataSource() 
    Returns the datasource for this entity.
 public JDBCEntityBridge.FieldIterator getDirtyIterator(EntityEnterpriseContext ctx) 
 public boolean[] getEagerLoadMask() 
 public String getEntityName() 
 public int getFetchSize() 
 public FieldBridge getFieldByName(String name) 
 public List getFields() 
    This method is called only at deployment time, not called at runtime.
 public Iterator getLazyLoadGroupMasks() 
 public int getListCacheMax() 
 public boolean[] getLoadGroupMask(String name) 
 public JDBCEntityBridge.FieldIterator getLoadIterator(JDBCCMPFieldBridge requiredField,
    JDBCReadAheadMetaData readahead,
    EntityEnterpriseContext ctx) 
 public Class getLocalInterface() 
 public JDBCEntityBridge.FieldIterator getLockedIterator(EntityEnterpriseContext ctx) 
 public JDBCEntityPersistenceStore getManager() 
 public JDBCEntityMetaData getMetaData() 
 int getNextJDBCContextIndex() 
 public Class getPrimaryKeyClass() 
 public JDBCFieldBridge[] getPrimaryKeyFields() 
 public String getQualifiedTableName() 
 public Class getRemoteInterface() 
 public Collection getSelectors() 
 public JDBCFieldBridge[] getTableFields() 
 public String getTableName() 
 public JDBCCMPFieldBridge getUpdatedPrincipalField() 
 public JDBCCMPFieldBridge getUpdatedTimeField() 
 public JDBCCMPFieldBridge getVersionField() 
 public boolean hasLockedFields(EntityEnterpriseContext ctx) 
 public  void init() throws DeploymentException 
 public  void initInstance(EntityEnterpriseContext ctx) 
 public  void initPersistenceContext(EntityEnterpriseContext ctx) 
 public  void injectPrimaryKeyIntoInstance(EntityEnterpriseContext ctx,
    Object pk) 
 public boolean isBeingRemoved(EntityEnterpriseContext ctx) 
 public static boolean isEjbCreateDone(EntityEnterpriseContext ctx) 
 public boolean isModified(EntityEnterpriseContext ctx) 
    This method is used to determined whether the instance was modified. NOTE, even if the method returns true the isStoreRequired for this same instance might return false, e.g. a CMR field that doesn't have a foreign key was modified.
 public boolean isRemoved(EntityEnterpriseContext ctx) 
 public boolean isScheduledForBatchCascadeDelete(EntityEnterpriseContext ctx) 
 public boolean isScheduledForCascadeDelete(EntityEnterpriseContext ctx) 
 public boolean isStoreRequired(EntityEnterpriseContext ctx) 
 public int loadPrimaryKeyResults(ResultSet rs,
    int parameterIndex,
    Object[] pkRef) 
 public boolean removeFromRelations(EntityEnterpriseContext ctx,
    Object[] oldRelations) 
 public  void resetPersistenceContext(EntityEnterpriseContext ctx) 
    This is only called in commit option B
 public  void resolveRelationships() throws DeploymentException 
 public  void scheduleForBatchCascadeDelete(EntityEnterpriseContext ctx) 
    Marks the instance as scheduled for batch cascade delete (not for cascade delete)
 public  void scheduleForCascadeDelete(EntityEnterpriseContext ctx) 
    Marks the instance as scheduled for cascade delete (not for batch cascade delete)
 public static  void setCreated(EntityEnterpriseContext ctx) 
 public static  void setEjbCreateDone(EntityEnterpriseContext ctx) 
 public  void setIsBeingRemoved(EntityEnterpriseContext ctx) 
    Marks an instance as being removed
 public int setPrimaryKeyParameters(PreparedStatement ps,
    int parameterIndex,
    Object primaryKey) 
 public  void setRemoved(EntityEnterpriseContext ctx) 
    Marks the context as removed.
 public  void start() throws DeploymentException 
    The third phase of deployment. The method is called when relationships are already resolved.