edu.jhu.tmaj.beans.dynamic.data
Class ArrayImageDynamicField

java.lang.Object
  extended by edu.jhu.tmaj.database.data.DatabaseField
      extended by edu.jhu.tmaj.beans.dynamic.data.DynamicTField
          extended by edu.jhu.tmaj.beans.dynamic.data.ArrayImageDynamicField
All Implemented Interfaces:
MetaObject, java.io.Serializable

public final class ArrayImageDynamicField
extends DynamicTField

Represents a record in the ArrayImageFieldsNames Table. ArrayImageFieldNames can be associated with a Scoring Strategy, instead of just a "Type" like the other FieldNames Tables.

See Also:
Serialized Form

Nested Class Summary
static class ArrayImageDynamicField.AIDynamicFieldType
          Either a REGULAR_DYNAMIC_FIELD or a SCORING_STRATEGY_FIELD
 
Field Summary
static java.lang.Integer SCORING_STRATEGY_TISSUE_TYPE_ID
          The DynamicTypeID assigned to DynamicFields who are a ScoringStrategy field, not a regular Dynamic Field
 
Fields inherited from class edu.jhu.tmaj.beans.dynamic.data.DynamicTField
dynamicTypeID, fieldID
 
Constructor Summary
ArrayImageDynamicField(int fieldID, int tissueTypeID, int scoringStrategy_ID, java.lang.String fieldName)
          Initializes this class.
 
Method Summary
 ArrayImageDynamicField.AIDynamicFieldType getClassificationID()
          Returns whether this dynamic fieldname is a regular dynamic field or a scoring stategy field.
 int getScoringStrategyID()
          Returns the ScoringStrategyID to this DynamicField belongs.
 
Methods inherited from class edu.jhu.tmaj.beans.dynamic.data.DynamicTField
equals, getDynamicTypeID, getID, getRenamedCopy, hashCode
 
Methods inherited from class edu.jhu.tmaj.database.data.DatabaseField
getDataType, getFieldName, isRequired, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCORING_STRATEGY_TISSUE_TYPE_ID

public static final java.lang.Integer SCORING_STRATEGY_TISSUE_TYPE_ID
The DynamicTypeID assigned to DynamicFields who are a ScoringStrategy field, not a regular Dynamic Field

Constructor Detail

ArrayImageDynamicField

public ArrayImageDynamicField(int fieldID,
                              int tissueTypeID,
                              int scoringStrategy_ID,
                              java.lang.String fieldName)
Initializes this class. A value is provided for either the TissueTypeID field or teh ScoringStrategyID field.

Parameters:
fieldID - the primary key FieldID in table ArrayImageFields
tissueTypeID - the TissueTypeID field in table ArrayImages
scoringStrategy_ID - the ScoringStrategyID field in table ArrayImageFields. *
fieldName - the FieldName field in table ArrayImageFields
Method Detail

getScoringStrategyID

public int getScoringStrategyID()
Returns the ScoringStrategyID to this DynamicField belongs. Normally, a DynamicField belongs to a type, but if this class is classified as SCORING_STRATEGY_FIELD, it will belong to a ScoringStrategyID.

Returns:
the ScoringStrategyID, the primary key of table ScoringStrategies.

getClassificationID

public ArrayImageDynamicField.AIDynamicFieldType getClassificationID()
Returns whether this dynamic fieldname is a regular dynamic field or a scoring stategy field. Records in the ArrayImageFieldNames can be either. Note: Other dynamic field tables simply use the superclass, DynamicField.

Returns:
either REGULAR_DYNAMIC_FIELD or SCORING_STRATEGY_FIELD