org.rimudb
Class ColumnMetaDataMap

java.lang.Object
  extended by org.rimudb.ColumnMetaDataMap

public class ColumnMetaDataMap
extends java.lang.Object


Constructor Summary
ColumnMetaDataMap()
           
 
Method Summary
 void addMetaData(java.lang.Class<? extends DataObject> dataObjectClass, ColumnMetaData md)
          Add meta data into the map.
 ColumnMetaData getMetaData(java.lang.Class<? extends DataObject> dataObjectClass, java.lang.String propertyName)
          Return the meta data for a given property.
 ColumnMetaData[] getPrimaryKeyMetaData(java.lang.Class<? extends DataObject> dataObjectClass)
          Return an array of ColumnMetaData objects that represent the primary keys in the data object.
 int getPropertyDecimals(java.lang.Class<? extends DataObject> dataObjectClass, java.lang.String propertyName)
          Return the decimals for a given property.
 int getPropertyKeyNbr(java.lang.Class<? extends DataObject> dataObjectClass, java.lang.String propertyName)
          Return the key nbr for a given property from the meta data.
 int getPropertyLength(java.lang.Class<? extends DataObject> dataObjectClass, java.lang.String propertyName)
          Return the maximum length for a given property.
 java.util.List<ColumnMetaData> getTableMetaData(java.lang.Class<? extends DataObject> dataObjectClass)
          Return a set of meta data objects for the table represented by a given dataobject class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnMetaDataMap

public ColumnMetaDataMap()
Method Detail

addMetaData

public void addMetaData(java.lang.Class<? extends DataObject> dataObjectClass,
                        ColumnMetaData md)
Add meta data into the map.


getMetaData

public ColumnMetaData getMetaData(java.lang.Class<? extends DataObject> dataObjectClass,
                                  java.lang.String propertyName)
Return the meta data for a given property.

Returns:
ColumnMetaData

getTableMetaData

public java.util.List<ColumnMetaData> getTableMetaData(java.lang.Class<? extends DataObject> dataObjectClass)
Return a set of meta data objects for the table represented by a given dataobject class.


getPrimaryKeyMetaData

public ColumnMetaData[] getPrimaryKeyMetaData(java.lang.Class<? extends DataObject> dataObjectClass)
Return an array of ColumnMetaData objects that represent the primary keys in the data object.


getPropertyKeyNbr

public int getPropertyKeyNbr(java.lang.Class<? extends DataObject> dataObjectClass,
                             java.lang.String propertyName)
Return the key nbr for a given property from the meta data.

Returns:
String

getPropertyLength

public int getPropertyLength(java.lang.Class<? extends DataObject> dataObjectClass,
                             java.lang.String propertyName)
Return the maximum length for a given property. Views can use this information to limit the number of characters sent to the record.

Returns:
String

getPropertyDecimals

public int getPropertyDecimals(java.lang.Class<? extends DataObject> dataObjectClass,
                               java.lang.String propertyName)
Return the decimals for a given property.

Returns:
int


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.