Visitablepublic class TableName extends QueryTreeNode
| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
hasSchema |
|
(package private) java.lang.String |
schemaName |
|
(package private) java.lang.String |
tableName |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor | Description |
|---|---|
TableName(java.lang.String schemaName,
java.lang.String tableName,
int tokBeginOffset,
int tokEndOffset,
ContextManager cm) |
Constructor for when we have both the table and schema names.
|
TableName(java.lang.String schemaName,
java.lang.String tableName,
ContextManager cm) |
Constructor for when we have both the table and schema names.
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) void |
bind() |
Bind this TableName.
|
TableName |
cloneMe() |
Clone this TableName
|
boolean |
equals(java.lang.Object other) |
Compares two TableNames.
|
(package private) 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).
|
(package private) 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 |
getFullSQLName() |
Get the full SQL name of this object, properly quoted and escaped.
|
(package private) 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 hash code for this tableName.
|
boolean |
hasSchema() |
Return true if this instance was initialized with not null schemaName.
|
(package private) void |
setSchemaName(java.lang.String schemaName) |
Set the schema name.
|
java.lang.String |
toString() |
Convert this object to a String.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, acceptChildren, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExistjava.lang.String tableName
java.lang.String schemaName
private boolean hasSchema
TableName(java.lang.String schemaName,
java.lang.String tableName,
ContextManager cm)
schemaName - The name of the schema being referencedtableName - The name of the table or other object being
referencedcm - The context managerTableName(java.lang.String schemaName,
java.lang.String tableName,
int tokBeginOffset,
int tokEndOffset,
ContextManager cm)
schemaName - The name of the schema being referencedtableName - The name of the table or other object 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 unknowncm - The context managerpublic java.lang.String getTableName()
public boolean hasSchema()
public java.lang.String getSchemaName()
void setSchemaName(java.lang.String schemaName)
schemaName - Schema name as a Stringjava.lang.String getFullTableName()
public java.lang.String getFullSQLName()
public java.lang.String toString()
toString in class QueryTreeNodeboolean equals(TableName otherTableName)
otherTableName - The other TableName.boolean equals(java.lang.String otherSchemaName,
java.lang.String otherTableName)
otherSchemaName - The other TableName.otherTableName - The other TableName.public TableName cloneMe()
void bind() throws StandardException
StandardException - Thrown on errorpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - other tableNameApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.