org.apache.empire.data
Interface ColumnExpr

All Known Subinterfaces:
Column
All Known Implementing Classes:
DBAbstractFuncExpr, DBAliasExpr, DBCalcExpr, DBCaseExpr, DBColumn, DBColumnExpr, DBConcatExpr, DBConvertExpr, DBCountExpr, DBDecodeExpr, DBFuncExpr, DBQuery.DBQueryColumn, DBTableColumn, DBValueExpr, DBView.DBViewColumn

public interface ColumnExpr

The column interface provides methods for accessing metadata that is relevant for managing and displaying data available through the RecordData interface.


Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns futher metadata attributes.
 java.lang.String getBeanPropertyName()
          Returns the name of a Java bean property to which this column is mapped.
 java.lang.String getControlType()
          Returns the column's control type used for displaying and entering data.
 DataType getDataType()
          Returns the column's data type.
 java.lang.String getName()
          Returns the physical column name.
 Options getOptions()
          Returns an option set with possible column values and their corresponding display text.
 Column getSourceColumn()
          Returns the underlying source column (if any).
 java.lang.String getTitle()
          Returns the column's display title.
 

Method Detail

getDataType

DataType getDataType()
Returns the column's data type.

Returns:
the column's data type
See Also:
DataType

getName

java.lang.String getName()
Returns the physical column name.

Returns:
the physical column name

getTitle

java.lang.String getTitle()
Returns the column's display title.

Returns:
the column's display title

getControlType

java.lang.String getControlType()
Returns the column's control type used for displaying and entering data.

Returns:
the column's control type used for displaying and entering data

getAttribute

java.lang.Object getAttribute(java.lang.String name)
Returns futher metadata attributes.

Parameters:
name - the name of the attribute
Returns:
futher metadata attributes

getOptions

Options getOptions()
Returns an option set with possible column values and their corresponding display text.

Returns:
option set with possible column values and their corresponding display text

getBeanPropertyName

java.lang.String getBeanPropertyName()
Returns the name of a Java bean property to which this column is mapped.

Returns:
the name of a Java bean property to which this column is mapped

getSourceColumn

Column getSourceColumn()
Returns the underlying source column (if any). If an expression is based not based on a particutlar column this function returns null.

Returns:
the column on which this expression is based or null if not applicable.