|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.BaseSelectable
org.axiondb.ColumnIdentifier
public class ColumnIdentifier
An identifier for a column.
Column names and aliases always stored (and returned) in upper case.
Field Summary |
---|
Fields inherited from class org.axiondb.BaseSelectable |
---|
_hash |
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 equals /
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. |
Methods inherited from class org.axiondb.BaseSelectable |
---|
getAlias, getLabel, getName, setAlias, setVariableContext |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.axiondb.Selectable |
---|
getAlias, getLabel, getName, setVariableContext |
Constructor Detail |
---|
public ColumnIdentifier(String column)
column
- the local name of my columnpublic ColumnIdentifier(TableIdentifier table, String columnName)
table
- my table, which may be null
column
- my columnpublic ColumnIdentifier(TableIdentifier table, String columnName, 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, String columnName, 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
Method Detail |
---|
public boolean equals(Object otherobject)
true
iff otherobject is a ColumnIdentifier
whose name, table identifier, and alias are equal to mine.
equals
in class Object
public 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 String getTableAlias()
getTableIdentifier()
.getTableAlias()
this method will return null
when I don't have a table identifier.
public final TableIdentifier getTableIdentifier()
public final 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 Object
public void setDataType(DataType type)
DataType
, if any.
public void setName(String column)
.
".
setName
in class BaseSelectable
public void setTableIdentifier(TableIdentifier table)
public String toString()
String
representation of me, suitable for debugging
output.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |