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

java.lang.Object
  extended by edu.jhu.tmaj.beans.dynamic.data.DynamicEnumeration
All Implemented Interfaces:
MetaObject, PickListEnumeration, java.io.Serializable
Direct Known Subclasses:
LookedUpDynamicEnumeration

public class DynamicEnumeration
extends java.lang.Object
implements java.io.Serializable, PickListEnumeration, MetaObject

Represents a record found in the Dynamic Enumerations Tables (such as TissueDiagnosisEnums)

See Also:
Serialized Form

Constructor Summary
DynamicEnumeration(int id, int fieldID, java.lang.String value)
          Initializes this class.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getFieldID()
          Returns the FieldID of the field to which this enumeration belongs
 int getID()
          Returns the primary key of this record
 MetaObject getRenamedCopy(java.lang.String newName)
          Returns the same MetaObject, except with a different name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicEnumeration

public DynamicEnumeration(int id,
                          int fieldID,
                          java.lang.String value)
Initializes this class.

Parameters:
id - the EnumID field in table xxxEnumerations
fieldID - the FieldID field in table xxxEnumerations
value - the EnumName field in table xxxEnumerations
Method Detail

getID

public final int getID()
Returns the primary key of this record

Specified by:
getID in interface MetaObject

toString

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

getFieldID

public final int getFieldID()
Returns the FieldID of the field to which this enumeration belongs


equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getRenamedCopy

public final MetaObject getRenamedCopy(java.lang.String newName)
Description copied from interface: MetaObject
Returns the same MetaObject, except with a different name. The ID and foreign keys will be the exact same.

Specified by:
getRenamedCopy in interface MetaObject