public class TableName extends QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
TableName() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
public void init(Object schemaName, Object tableName)
init
in class QueryTreeNode
schemaName
- The name of the schema being referencedtableName
- The name of the table being referencedpublic void init(Object schemaName, Object tableName, Object tokBeginOffset, Object tokEndOffset)
init
in class QueryTreeNode
schemaName
- 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 unknownpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class QueryTreeNode
StandardException
public 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 QueryTreeNode
public 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()
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.