All Packages Class Hierarchy This Package Previous Next Index
Class org.paneris.util.FieldMetaData
java.lang.Object
|
+----org.paneris.util.FieldMetaData
- public class FieldMetaData
- extends Object
A FieldMetaData encapsulates meta data for a single field in the datadictionary.
-
FieldMetaData(String, Integer)
- construct meta data for a field in the datadictionary
-
getDisplayName()
- returns the field's display name
-
getDisplayOrder()
- returns the field's display order
-
getEnforceUnique()
- returns true if this field should contain a unique value.
-
getFieldName()
- returns the field's name
-
getFieldNumber()
- returns the field's number
-
getListDisplay()
- returns true if this field should appear on the list page
-
getMandatory()
- returns true if the field is mandatory
-
getMandatoryNull()
- returns null if the field is not mandatory.
-
getRelationshipField()
- returns the fieldname if this field is a look-up field
-
getRelationshipTable()
- returns the tablename if this field is a look-up field
-
getSelectDisplay()
- returns true if this field should as a selection option on the list page
-
getSize()
- returns the size of the input box
-
getSQLMetaData()
- gets the type of this field as an java.sql.Type.
-
getTableName()
- returns the field's tablename
-
getTableNumber()
- returns the field's tablenumber
-
getType()
- returns the field's type
FieldMetaData
public FieldMetaData(String db,
Integer fn) throws Exception
- construct meta data for a field in the datadictionary
getFieldNumber
public Integer getFieldNumber()
- returns the field's number
getFieldName
public String getFieldName()
- returns the field's name
getDisplayName
public String getDisplayName()
- returns the field's display name
getType
public String getType()
- returns the field's type
getTableNumber
public Integer getTableNumber()
- returns the field's tablenumber
getTableName
public String getTableName()
- returns the field's tablename
getDisplayOrder
public int getDisplayOrder()
- returns the field's display order
getMandatory
public boolean getMandatory()
- returns true if the field is mandatory
getMandatoryNull
public Object getMandatoryNull()
- returns null if the field is not mandatory. this will not be required in webmacro 0.90
where we can properly evaluate boolean expressions in the template
getRelationshipTable
public String getRelationshipTable()
- returns the tablename if this field is a look-up field
getRelationshipField
public String getRelationshipField()
- returns the fieldname if this field is a look-up field
getListDisplay
public boolean getListDisplay()
- returns true if this field should appear on the list page
getSize
public int getSize()
- returns the size of the input box
getEnforceUnique
public boolean getEnforceUnique()
- returns true if this field should contain a unique value.
getSelectDisplay
public boolean getSelectDisplay()
- returns true if this field should as a selection option on the list page
getSQLMetaData
public SQLMetaData getSQLMetaData()
- gets the type of this field as an java.sql.Type. this is useful when setting null
values in a prepared statement, where the type of the object is important
All Packages Class Hierarchy This Package Previous Next Index