edu.jhu.tmaj.beans.data
Class StaticMetaData

java.lang.Object
  extended by edu.jhu.tmaj.beans.data.StaticMetaData
All Implemented Interfaces:
java.io.Serializable

public final class StaticMetaData
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

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

StaticMetaData

public StaticMetaData()
Method Detail

getEnumerations

public java.util.List<StaticEnumeration> getEnumerations(java.lang.String columnName)
Returns a List of StaticEnumerations for the column


isEnumerated

public boolean isEnumerated(java.lang.String columnName)
Returns true if the column is enumerated, false if it is "type-in"


getEnumeration

public StaticEnumeration getEnumeration(java.lang.String columnName,
                                        java.lang.Integer id)
Translates an id retrieved from the database into a StaticEnumeration.


insertEnumerations

public void insertEnumerations(java.lang.String[] values,
                               java.lang.String columnName)

insertEnumerations

public void insertEnumerations(java.util.List<StaticEnumeration> staticEnumerationsList,
                               java.lang.String columnName)

insertBeans

public void insertBeans(CacheableBean cBean,
                        java.lang.String columnName)

insertLookupTable

public void insertLookupTable(LookupTable lookupTable,
                              java.lang.String columnName)

beanToStaticEnumeration

public static StaticEnumeration beanToStaticEnumeration(JBean bean,
                                                        java.lang.String columnName)