public class TableName extends QueryTreeNode
Modifier and Type | Field and Description |
---|---|
private boolean |
hasSchema |
(package private) java.lang.String |
schemaName |
(package private) java.lang.String |
tableName |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
Constructor and Description |
---|
TableName() |
Modifier and Type | Method and Description |
---|---|
void |
bind(DataDictionary dataDictionary)
Bind this TableName.
|
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, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist
java.lang.String tableName
java.lang.String schemaName
private boolean hasSchema
public void init(java.lang.Object schemaName, java.lang.Object tableName)
init
in interface Node
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 interface Node
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 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 void bind(DataDictionary dataDictionary) throws StandardException
dataDictionary
- Data dictionary to bind against.StandardException
- Thrown on errorpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- other tableNameApache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.