|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.axiondb.NamedIdentifier
org.axiondb.ColumnIdentifier
An identifier for a column.
Column names and aliases always stored (and returned) in upper case.
| 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 . |
String |
getAlias()
Returns my column alias name, if any. |
ColumnIdentifier |
getCanonicalIdentifier()
|
DataType |
getDataType()
Returns my DataType, if any. |
String |
getLabel()
Returns my column alias or name. |
String |
getName()
Returns the name of my column, 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/
hashCodecontract. |
void |
setAlias(String column)
Sets my column alias name, if any. |
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. |
void |
setVariableContext(VariableContext ctx)
|
String |
toString()
Returns a String representation of me, suitable for debugging
output. |
| Methods inherited from class org.axiondb.NamedIdentifier |
toUpperOrNull |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ColumnIdentifier(String column)
column - the local name of my column
public ColumnIdentifier(TableIdentifier table,
String columnName)
table - my table, which may be null
public ColumnIdentifier(TableIdentifier table,
String columnName,
String columnAlias)
table - my table, which may be nullcolumnAlias - 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 nullcolumnAlias - the alias for my column, which may be nulltype - the DataTypeof 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.
public Object evaluate(RowDecorator row)
throws AxionException
evaluate in interface SelectableAxionExceptionpublic String getAlias()
getAlias in interface Selectablepublic ColumnIdentifier getCanonicalIdentifier()
public DataType getDataType()
DataType, if any.
getDataType in interface Selectablepublic String getLabel()
getLabel in interface Selectablepublic String getName()
getName in interface Selectablepublic String getTableAlias()
getTableIdentifier().getTableAlias()
this method will return null when I don't have a table identifier.
public TableIdentifier getTableIdentifier()
public String getTableName()
getTableIdentifier().getTableName()
this method will return null when I don't have a table identifier.
public int hashCode()
equals/
hashCodecontract.
public void setAlias(String column)
public void setDataType(DataType type)
DataType, if any.
public void setName(String column)
.".
public void setTableIdentifier(TableIdentifier table)
public void setVariableContext(VariableContext ctx)
setVariableContext in interface Selectablepublic String toString()
String representation of me, suitable for debugging
output.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||