public final class Variable extends Object implements Serializable, Cloneable
NOTE: This object is NOT immutable.
Constructor and Description |
---|
Variable(String column_name) |
Variable(TableName table_name,
String column_name)
Constructs the ColumnName.
|
Variable(Variable v) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Performs a deep clone of this object.
|
int |
compareTo(Object ob)
Comparable.
|
boolean |
equals(Object ob)
Equality.
|
String |
getName()
Returns the column name context.
|
TableName |
getTableName()
Returns the TableName context.
|
int |
hashCode()
Hash code.
|
static Variable |
resolve(String name)
Attempts to resolve a string '[table_name].[column]' to a Variable
instance.
|
static Variable |
resolve(TableName tname,
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(String column_name)
Sets the column name of this variable.
|
void |
setTableName(TableName tname)
Sets the TableName of this variable.
|
String |
toString()
To string.
|
String |
toTechString()
To a differently formatted string.
|
public Variable(String column_name)
public Variable(Variable v)
public TableName getTableName()
public String getName()
public static Variable resolve(String name)
public static Variable resolve(TableName tname, String name)
public Variable resolveTableName(TableName tablen)
public Variable set(Variable from)
public void setColumnName(String column_name)
public void setTableName(TableName tname)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toTechString()
public int compareTo(Object ob)
Copyright © 2015. All rights reserved.