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 /
hashCode contract. |
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, setVariableContext
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAlias, getLabel, getName, setVariableContext
public 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 null
column
- my columnpublic ColumnIdentifier(TableIdentifier table, java.lang.String columnName, java.lang.String columnAlias)
table
- my table, which may be null
column
- my columncolumnAlias
- the alias for my column, which may be null
public ColumnIdentifier(TableIdentifier table, java.lang.String columnName, java.lang.String columnAlias, DataType type)
table
- my table, which may be null
column
- my columncolumnAlias
- the alias for my column, which may be null
type
- the DataType
of my column, which may be null
public 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.Object
public java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface Selectable
AxionException
public ColumnIdentifier getCanonicalIdentifier()
public final DataType getDataType()
DataType
, if any.getDataType
in interface Selectable
public 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
/
hashCode
contract.hashCode
in class java.lang.Object
public void setName(java.lang.String column)
.
".setName
in class BaseSelectable
public void setTableIdentifier(TableIdentifier table)
public java.lang.String toString()
String
representation of me, suitable for debugging
output.toString
in class java.lang.Object