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(java.lang.Object other)
Compares two TableNames.
|
boolean |
equals(java.lang.String otherSchemaName,
java.lang.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).
|
java.lang.String |
getFullTableName()
Get the full table name (with the schema name, if explicitly
specified).
|
java.lang.String |
getSchemaName()
Get the schema name.
|
java.lang.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(java.lang.Object schemaName,
java.lang.Object tableName)
Initializer for when you have both the table and schema names.
|
void |
init(java.lang.Object schemaName,
java.lang.Object tableName,
java.lang.Object tokBeginOffset,
java.lang.Object tokEndOffset)
Initializer for when you have both the table and schema names.
|
void |
setSchemaName(java.lang.String schemaName)
Set the schema name.
|
java.lang.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(java.lang.Object schemaName, java.lang.Object tableName)
init
in class QueryTreeNode
schemaName
- The name of the schema being referencedtableName
- The name of the table being referencedpublic void init(java.lang.Object schemaName, java.lang.Object tableName, java.lang.Object tokBeginOffset, java.lang.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 java.lang.String getTableName()
public boolean hasSchema()
public java.lang.String getSchemaName()
public void setSchemaName(java.lang.String schemaName)
schemaName
- Schema name as a Stringpublic java.lang.String getFullTableName()
public java.lang.String toString()
toString
in class QueryTreeNode
public boolean equals(TableName otherTableName)
otherTableName
- The other TableName.public boolean equals(java.lang.String otherSchemaName, java.lang.String otherTableName)
otherSchemaName
- The other TableName.otherTableName
- The other TableName.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- other tableNameCopyright © 2013. All Rights Reserved.