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

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

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

Represents tables in TMAJ that act as a lookup table, even though they may have many more records. All of the Lookup Tables in the database. The term lookup table comes from Microsoft Access terminology. A lookup table has 2 columns, a primary key column, and a name key column that describes the record. For example:
TableName: EmployeeTypes
EmployeeTypeID EmployeeTypeDescription
1 Contrator
2 Full Time
3 Part Time
Then a *main* table references the lookup table. Table employees is a main table. TableName: Employees
EmployeeID FullName EmployeeTypeDescriptionID
114 J. Smith 2
115 K. Jones 2
116 B. Brown 3
There are only 3 attributes a lookup table has: it's name, the name of it's id column, and the id of its description column. For the table EmployeeTypes, it's name is EmployeeTypes, it's id column is EmployeeTypeID, and its description column is EmployeeTypeDescription.


Enum Constant Summary
ARRAY_BLOCKS
           
ARRAY_CORES
           
BLOCKS
           
HOSPITALS
           
PATIENTS
           
PROJECTS
           
SCORING_STRATEGY
           
SPECIMEN_TYPES
           
TISSUE_TYPES
           
USERS
           
 
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.
 java.lang.String getTableName()
          Returns the name of the database table.
static LookupTable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LookupTable[] 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

ARRAY_BLOCKS

public static final LookupTable ARRAY_BLOCKS

ARRAY_CORES

public static final LookupTable ARRAY_CORES

BLOCKS

public static final LookupTable BLOCKS

HOSPITALS

public static final LookupTable HOSPITALS

PATIENTS

public static final LookupTable PATIENTS

PROJECTS

public static final LookupTable PROJECTS

SCORING_STRATEGY

public static final LookupTable SCORING_STRATEGY

SPECIMEN_TYPES

public static final LookupTable SPECIMEN_TYPES

TISSUE_TYPES

public static final LookupTable TISSUE_TYPES

USERS

public static final LookupTable USERS
Method Detail

values

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

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

valueOf

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

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