|
||||||||||
| 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(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)
|
|
| Method Summary | |
|---|---|
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. |
| 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(java.lang.String column)
column - the local name of my column
public ColumnIdentifier(TableIdentifier table,
java.lang.String columnName)
table - my table, which may be nullcolumn - my column
public 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 null
public 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 null| Method Detail |
|---|
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 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 setDataType(DataType type)
DataType, if any.
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||