|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.data.StaticMetaData
public final class StaticMetaData
Contains information about standard (non-dynamic) "Lookup" tables for an InputPanel. Lookup tables have only two columns, a primary key and a "name" key. For example, the BlockFixations table is a Lookup table for Blocks. The table BlockFixations has two columns: BlockFixationID and a BlockFixationName. The table Blocks has a column called BlockFixationID. If this class were being used for the Block InputPanel, the class would contain all the Lookup tables for table Blocks. Compare Standard Lookup tables used in this class to Dynamic Tables used in the DynamicMetaData class.
Constructor Summary | |
---|---|
StaticMetaData()
|
Method Summary | |
---|---|
static StaticEnumeration |
beanToStaticEnumeration(JBean bean,
java.lang.String columnName)
|
StaticEnumeration |
getEnumeration(java.lang.String columnName,
java.lang.Integer id)
Translates an id retrieved from the database into a StaticEnumeration. |
java.util.List<StaticEnumeration> |
getEnumerations(java.lang.String columnName)
Returns a List of StaticEnumerations for the column |
void |
insertBeans(CacheableBean cBean,
java.lang.String columnName)
|
void |
insertEnumerations(java.util.List<StaticEnumeration> staticEnumerationsList,
java.lang.String columnName)
|
void |
insertEnumerations(java.lang.String[] values,
java.lang.String columnName)
|
void |
insertLookupTable(LookupTable lookupTable,
java.lang.String columnName)
|
boolean |
isEnumerated(java.lang.String columnName)
Returns true if the column is enumerated, false if it is "type-in" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticMetaData()
Method Detail |
---|
public java.util.List<StaticEnumeration> getEnumerations(java.lang.String columnName)
public boolean isEnumerated(java.lang.String columnName)
public StaticEnumeration getEnumeration(java.lang.String columnName, java.lang.Integer id)
public void insertEnumerations(java.lang.String[] values, java.lang.String columnName)
public void insertEnumerations(java.util.List<StaticEnumeration> staticEnumerationsList, java.lang.String columnName)
public void insertBeans(CacheableBean cBean, java.lang.String columnName)
public void insertLookupTable(LookupTable lookupTable, java.lang.String columnName)
public static StaticEnumeration beanToStaticEnumeration(JBean bean, java.lang.String columnName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |