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

java.lang.Object
  extended by edu.jhu.tmaj.beans.dynamic.data.DynamicValue
All Implemented Interfaces:
java.io.Serializable

public final class DynamicValue
extends java.lang.Object
implements java.io.Serializable

Represents a combination of the EnumerationID and FieldValue columns in a dynamic data table (xxxData). In a dynamic table (such as SpecimenData), a record always has a FieldID -- It can be enumerated, in which case it has an enumID; or is not enumerated, and has a typed-in FieldValue. This class represents the value that a fieldID can have, either typed-in or enumerated. If it's enumerated, the enumID points to a value in the xxxEnumerations table.

See Also:
Serialized Form

Method Summary
static DynamicValue getEnumeratedInstance(int enumID)
           
static DynamicValue getEnumeratedNullInstance()
           
 java.lang.Integer getEnumID()
          Returns the enumID of the dynamic data field
 java.lang.String getFieldNameValue()
          Returns the "typed-in" value of the dynamic data field
static DynamicValue getNonEnumeratedInstance(java.lang.String fieldNameValue)
           
 boolean isEnumerated()
          Returns true if the relevant data is in the EnumID column
 boolean isNull()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEnumeratedInstance

public static DynamicValue getEnumeratedInstance(int enumID)

getNonEnumeratedInstance

public static DynamicValue getNonEnumeratedInstance(java.lang.String fieldNameValue)

getEnumeratedNullInstance

public static DynamicValue getEnumeratedNullInstance()

isEnumerated

public boolean isEnumerated()
Returns true if the relevant data is in the EnumID column


getFieldNameValue

public java.lang.String getFieldNameValue()
Returns the "typed-in" value of the dynamic data field


getEnumID

public java.lang.Integer getEnumID()
Returns the enumID of the dynamic data field


isNull

public boolean isNull()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object