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

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

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

The 3 dynamic sections for the 2 types tables in TMAJ: SpecimenTypes and TissueTypes. Note that TissueDiagnosis and ScoredImages both share the same types table.


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 getIDColumnName()
          Returns the primary key name.
 LookupTable getLookupTable()
           
 java.lang.String getTableName()
          Returns the name of the database table.
static TypesTable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TypesTable[] 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 TypesTable SPECIMENS

TISSUE_DIAGNOSIS

public static final TypesTable TISSUE_DIAGNOSIS

SCORED_IMAGES

public static final TypesTable SCORED_IMAGES
Method Detail

values

public static TypesTable[] 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 (TypesTable c : TypesTable.values())
    System.out.println(c);

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

valueOf

public static TypesTable 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

getLookupTable

public LookupTable getLookupTable()

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