public class ColumnIdentifier extends BaseSelectable implements Selectable
Column names and aliases always stored (and returned) in upper case.
_hash| Constructor and Description |
|---|
ColumnIdentifier(java.lang.String column) |
ColumnIdentifier(TableIdentifier table,
java.lang.String columnName) |
ColumnIdentifier(TableIdentifier table,
java.lang.String columnName,
java.lang.String columnAlias) |
ColumnIdentifier(TableIdentifier table,
java.lang.String columnName,
java.lang.String columnAlias,
DataType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object otherobject)
Returns
true iff otherobject is a ColumnIdentifier
whose name, table identifier, and alias are equal to mine. |
java.lang.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. |
java.lang.String |
getTableAlias()
Returns the alias name of my table or null.
|
TableIdentifier |
getTableIdentifier()
Returns my table identifier, if any.
|
java.lang.String |
getTableName()
Returns the name of my table or null.
|
int |
hashCode()
Returns a hash code in keeping with the standard
equals/
hashCodecontract. |
void |
setDataType(DataType type)
Sets my
DataType, if any. |
void |
setName(java.lang.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.
|
java.lang.String |
toString()
Returns a
String representation of me, suitable for debugging
output. |
getAlias, getLabel, getName, setAlias, setVariableContextclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAlias, getLabel, getName, setVariableContextpublic ColumnIdentifier(java.lang.String column)
column - the local name of my columnpublic ColumnIdentifier(TableIdentifier table, java.lang.String columnName)
table - my table, which may be nullcolumn - my columnpublic ColumnIdentifier(TableIdentifier table, java.lang.String columnName, java.lang.String columnAlias)
table - my table, which may be nullcolumn - my columncolumnAlias - the alias for my column, which may be nullpublic ColumnIdentifier(TableIdentifier table, java.lang.String columnName, java.lang.String columnAlias, DataType type)
table - my table, which may be nullcolumn - my columncolumnAlias - the alias for my column, which may be nulltype - the DataTypeof my column, which may be nullpublic boolean equals(java.lang.Object otherobject)
true iff otherobject is a ColumnIdentifier
whose name, table identifier, and alias are equal to mine.equals in class java.lang.Objectpublic java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate in interface SelectableAxionExceptionpublic ColumnIdentifier getCanonicalIdentifier()
public final DataType getDataType()
DataType, if any.getDataType in interface Selectablepublic final java.lang.String getTableAlias()
getTableIdentifier().getTableAlias()
this method will return null when I don't have a table identifier.public final TableIdentifier getTableIdentifier()
public final java.lang.String getTableName()
getTableIdentifier().getTableName()
this method will return null when I don't have a table identifier.public int hashCode()
equals/
hashCodecontract.hashCode in class java.lang.Objectpublic void setName(java.lang.String column)
.".setName in class BaseSelectablepublic void setTableIdentifier(TableIdentifier table)
public java.lang.String toString()
String representation of me, suitable for debugging
output.toString in class java.lang.Object