|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.TableName
public class TableName
A TableName represents a qualified name, externally represented as a schema name and an object name separated by a dot. This class is mis-named: it is used to represent the names of other object types in addition to tables.
| Field Summary |
|---|
| Fields inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX |
| Constructor Summary | |
|---|---|
TableName()
|
|
| Method Summary | |
|---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node. |
boolean |
equals(Object other)
Compares two TableNames. |
boolean |
equals(String otherSchemaName,
String otherTableName)
2 TableNames are equal if their both their schemaNames and tableNames are equal, or if this node's full table name is null (which happens when a SELECT * is expanded). |
boolean |
equals(TableName otherTableName)
2 TableNames are equal if their both their schemaNames and tableNames are equal, or if this node's full table name is null (which happens when a SELECT * is expanded). |
String |
getFullTableName()
Get the full table name (with the schema name, if explicitly specified). |
String |
getSchemaName()
Get the schema name. |
String |
getTableName()
Get the table name (without the schema name). |
int |
hashCode()
Returns a hashcode for this tableName. |
boolean |
hasSchema()
Return true if this instance was initialized with not null schemaName. |
void |
init(Object schemaName,
Object tableName)
Initializer for when you have both the table and schema names. |
void |
init(Object schemaName,
Object tableName,
Object tokBeginOffset,
Object tokEndOffset)
Initializer for when you have both the table and schema names. |
void |
setSchemaName(String schemaName)
Set the schema name. |
String |
toString()
Convert this object to a String. |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableName()
| Method Detail |
|---|
public void init(Object schemaName,
Object tableName)
init in class QueryTreeNodeschemaName - The name of the schema being referencedtableName - The name of the table being referenced
public void init(Object schemaName,
Object tableName,
Object tokBeginOffset,
Object tokEndOffset)
init in class QueryTreeNodeschemaName - The name of the schema being referencedtableName - The name of the table being referencedtokBeginOffset - begin position of token for the table name
identifier from parser. pass in -1 if unknowntokEndOffset - end position of token for the table name
identifier from parser. pass in -1 if unknown
public void copyFrom(QueryTreeNode node)
throws StandardException
copyFrom in class QueryTreeNodeStandardExceptionpublic String getTableName()
public boolean hasSchema()
public String getSchemaName()
public void setSchemaName(String schemaName)
schemaName - Schema name as a Stringpublic String getFullTableName()
public String toString()
toString in class QueryTreeNodepublic boolean equals(TableName otherTableName)
otherTableName - The other TableName.
public boolean equals(String otherSchemaName,
String otherTableName)
otherSchemaName - The other TableName.otherTableName - The other TableName.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectother - other tableName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||