edu.jhu.tmaj.beans.data.datatypes
Enum FieldsTable

java.lang.Object
  extended by java.lang.Enum<FieldsTable>
      extended by edu.jhu.tmaj.beans.data.datatypes.FieldsTable
All Implemented Interfaces:
NameTable, java.io.Serializable, java.lang.Comparable<FieldsTable>

public enum FieldsTable
extends java.lang.Enum<FieldsTable>
implements NameTable

Any of the 3 Dynamic field tables in the TMAJ database. They are SpecimenFields, TissueDiagnosisFields, and ScoreImageFields. A field will appear as a "field" in a JTable. For example, GleasonScore may be a field.


Enum Constant Summary
SCORED_IMAGES
           
SPECIMENS
           
TISSUE_DIAGNOSIS
           
 
Method Summary
 java.lang.String getDescriptionColumnName()
          Returns the name of the column that describes the record.
 java.lang.String getFieldTypeName()
          Gets the name of the field that refers to the primary key of the Types Table.
 java.lang.String getIDColumnName()
          Returns the primary key name.
 java.lang.String getTableName()
          Returns the name of the database table.
static FieldsTable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FieldsTable[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SPECIMENS

public static final FieldsTable SPECIMENS

TISSUE_DIAGNOSIS

public static final FieldsTable TISSUE_DIAGNOSIS

SCORED_IMAGES

public static final FieldsTable SCORED_IMAGES
Method Detail

values

public static FieldsTable[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FieldsTable c : FieldsTable.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FieldsTable valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getFieldTypeName

public java.lang.String getFieldTypeName()
Gets the name of the field that refers to the primary key of the Types Table.


getTableName

public java.lang.String getTableName()
Description copied from interface: NameTable
Returns the name of the database table.

Specified by:
getTableName in interface NameTable

getIDColumnName

public java.lang.String getIDColumnName()
Description copied from interface: NameTable
Returns the primary key name.

Specified by:
getIDColumnName in interface NameTable

getDescriptionColumnName

public java.lang.String getDescriptionColumnName()
Description copied from interface: NameTable
Returns the name of the column that describes the record. Example: SupplierName.

Specified by:
getDescriptionColumnName in interface NameTable