org.axiondb
public class ColumnIdentifier extends BaseSelectable implements Selectable
Column names and aliases always stored (and returned) in upper case.
Version: $Revision: 1.25 $ $Date: 2006/01/10 21:02:37 $
Constructor Summary | |
---|---|
ColumnIdentifier(String column) | |
ColumnIdentifier(TableIdentifier table, String columnName) | |
ColumnIdentifier(TableIdentifier table, String columnName, String columnAlias) | |
ColumnIdentifier(TableIdentifier table, String columnName, String columnAlias, DataType type) |
Method Summary | |
---|---|
boolean | equals(Object otherobject)
Returns true iff otherobject is a ColumnIdentifier
whose name, table identifier, and alias are equal to mine. |
Object | evaluate(RowDecorator row)
Returns the value of the column I identify within the given row . |
ColumnIdentifier | getCanonicalIdentifier() |
DataType | getDataType()
Returns my DataType, if any. |
String | getTableAlias()
Returns the alias name of my table or null. |
TableIdentifier | getTableIdentifier()
Returns my table identifier, if any. |
String | getTableName()
Returns the name of my table or null. |
int | hashCode()
Returns a hash code in keeping with the standard Object#equals equals /
Object#hashCode hashCode contract. |
void | setDataType(DataType type)
Sets my DataType, if any. |
void | setName(String column)
Sets the name of this column, and the name of my table if the given name includes "
. |
void | setTableIdentifier(TableIdentifier table)
Sets my table identifier, if any. |
String | toString()
Returns a String representation of me, suitable for debugging
output. |
Parameters: column the local name of my column
Parameters: table my table, which may be null
column my column
Parameters: table my table, which may be null
column my column columnAlias the alias for my column, which may be null
Parameters: table my table, which may be null
column my column columnAlias the alias for my column, which may be null
type the DataTypeof my column, which may be null
true
iff otherobject is a ColumnIdentifier
whose name, table identifier, and alias are equal to mine.getTableIdentifier()
.getTableAlias()
this method will return null
when I don't have a table identifier.getTableIdentifier()
.getTableName()
this method will return null
when I don't have a table identifier.Object#equals equals
/
Object#hashCode hashCode
contract..
".String
representation of me, suitable for debugging
output.