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

java.lang.Object
  extended by edu.jhu.tmaj.beans.dynamic.data.DynamicMetaData
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArrayImageDynamicMetaData

public class DynamicMetaData
extends java.lang.Object
implements java.io.Serializable

Represents the MetaData for a Dynamic table. For example, for Specimens this class would represent the SpecimenFieldNames table and the SpecimenEnums table.

See Also:
Serialized Form

Constructor Summary
DynamicMetaData()
           
 
Method Summary
 void addDynamicEnumeration(DynamicEnumeration dynamicEnumeration)
          Adds a record from the XXXEnumerations table.
 void addDynamicField(DynamicTField dynamicField)
          Adds a record from the XXXFieldNames table.
 DynamicEnumeration getDynamicEnumeration(java.lang.Integer enumID)
          Returns the DynamicEnumeration in the XXXEnumerations table with a primary key fieldID
 java.util.List<DynamicEnumeration> getDynamicEnumerationsByField(int fieldID)
          Returns the DynamicEnumerations for the DynamicField with the specified fieldID.
 DynamicTField getDynamicField(int fieldID)
          Returns the DynamicField in the XXXFieldNames table with a primary key fieldID
 java.util.List<DynamicTField> getDynamicFieldsByType(java.lang.Integer typeID)
          Returns a List of all the DynamicFields whose type is typeID.
 java.util.List<java.lang.Integer> getFieldIDs()
          Returns a List of Integers representing all FieldIDs.
 boolean isEnumerated(int fieldID)
          Returns true if a DynamicField with primary key fieldID has any enumerations; Returns false if it is a field where the user types in the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicMetaData

public DynamicMetaData()
Method Detail

getFieldIDs

public java.util.List<java.lang.Integer> getFieldIDs()
Returns a List of Integers representing all FieldIDs.


addDynamicField

public void addDynamicField(DynamicTField dynamicField)
Adds a record from the XXXFieldNames table. Used when initializing this class.


addDynamicEnumeration

public void addDynamicEnumeration(DynamicEnumeration dynamicEnumeration)
Adds a record from the XXXEnumerations table. Used when initializing this class.


getDynamicField

public DynamicTField getDynamicField(int fieldID)
Returns the DynamicField in the XXXFieldNames table with a primary key fieldID


getDynamicEnumeration

public DynamicEnumeration getDynamicEnumeration(java.lang.Integer enumID)
Returns the DynamicEnumeration in the XXXEnumerations table with a primary key fieldID


getDynamicFieldsByType

public java.util.List<DynamicTField> getDynamicFieldsByType(java.lang.Integer typeID)
Returns a List of all the DynamicFields whose type is typeID.


getDynamicEnumerationsByField

public java.util.List<DynamicEnumeration> getDynamicEnumerationsByField(int fieldID)
Returns the DynamicEnumerations for the DynamicField with the specified fieldID.


isEnumerated

public boolean isEnumerated(int fieldID)
Returns true if a DynamicField with primary key fieldID has any enumerations; Returns false if it is a field where the user types in the value.