|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<LookupTable> edu.jhu.tmaj.beans.data.datatypes.LookupTable
public enum LookupTable
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 |
---|
public static final LookupTable ARRAY_BLOCKS
public static final LookupTable ARRAY_CORES
public static final LookupTable BLOCKS
public static final LookupTable HOSPITALS
public static final LookupTable PATIENTS
public static final LookupTable PROJECTS
public static final LookupTable SCORING_STRATEGY
public static final LookupTable SPECIMEN_TYPES
public static final LookupTable TISSUE_TYPES
public static final LookupTable USERS
Method Detail |
---|
public static LookupTable[] values()
for (LookupTable c : LookupTable.values()) System.out.println(c);
public static LookupTable valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getTableName()
NameTable
getTableName
in interface NameTable
public java.lang.String getIDColumnName()
NameTable
getIDColumnName
in interface NameTable
public java.lang.String getDescriptionColumnName()
NameTable
getDescriptionColumnName
in interface NameTable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |