|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.Variable
public final class Variable
This represents a column name that may be qualified. This object encapsulated a column name that can be fully qualified in the system. Such uses of this object would not typically be used against any context. For example, it would not be desirable to use ColumnName in DataTableDef because the column names contained in DataTableDef are within a known context. This object is intended for use within parser processes where free standing column names with potentially no context are required.
NOTE: This object is NOT immutable.
Constructor Summary | |
---|---|
Variable(java.lang.String column_name)
|
|
Variable(TableName table_name,
java.lang.String column_name)
Constructs the ColumnName. |
|
Variable(Variable v)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Performs a deep clone of this object. |
int |
compareTo(java.lang.Object ob)
Comparable. |
boolean |
equals(java.lang.Object ob)
Equality. |
java.lang.String |
getName()
Returns the column name context. |
TableName |
getTableName()
Returns the TableName context. |
int |
hashCode()
Hash code. |
static Variable |
resolve(java.lang.String name)
Attempts to resolve a string '[table_name].[column]' to a Variable instance. |
static Variable |
resolve(TableName tname,
java.lang.String name)
Attempts to resolve a string '[table_name].[column]' to a Variable instance. |
Variable |
resolveTableName(TableName tablen)
Returns a ColumnName that is resolved against a table name context only if the ColumnName is unknown in this object. |
Variable |
set(Variable from)
Sets this Variable object with information from the given Variable. |
void |
setColumnName(java.lang.String column_name)
Sets the column name of this variable. |
void |
setTableName(TableName tname)
Sets the TableName of this variable. |
java.lang.String |
toString()
To string. |
java.lang.String |
toTechString()
To a differently formatted string. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Variable(TableName table_name, java.lang.String column_name)
public Variable(java.lang.String column_name)
public Variable(Variable v)
Method Detail |
---|
public TableName getTableName()
public java.lang.String getName()
public static Variable resolve(java.lang.String name)
public static Variable resolve(TableName tname, java.lang.String name)
public Variable resolveTableName(TableName tablen)
public Variable set(Variable from)
public void setColumnName(java.lang.String column_name)
public void setTableName(TableName tname)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toTechString()
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public int compareTo(java.lang.Object ob)
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |