org.apache.derby.impl.sql.compile
Class TableName
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.QueryTreeNode
-
- org.apache.derby.impl.sql.compile.TableName
-
- All Implemented Interfaces:
- Visitable
public class TableName extends QueryTreeNode
A TableName represents a qualified name, externally represented as a schema name and an object name separated by a dot. This class is misnamed: it is used to represent the names of other object types in addition to tables.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TableNamecloneMe()Clone this TableNamebooleanequals(java.lang.Object other)Compares two TableNames.java.lang.StringgetFullSQLName()Get the full SQL name of this object, properly quoted and escaped.java.lang.StringgetSchemaName()Get the schema name.java.lang.StringgetTableName()Get the table name (without the schema name).inthashCode()Returns a hash code for this tableName.booleanhasSchema()Return true if this instance was initialized with not null schemaName.java.lang.StringtoString()Convert this object to a String.-
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, addTag, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, createTypeDependency, getBeginOffset, getDataDictionary, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getUDTDesc, isAtomic, makeConstantAction, makeTableName, makeTableName, optimizerTracingIsOn, orReliability, referencesSessionSchema, setBeginOffset, setEndOffset, taggedWith, treePrint
-
-
-
-
Method Detail
-
getTableName
public java.lang.String getTableName()
Get the table name (without the schema name).- Returns:
- Table name as a String
-
hasSchema
public boolean hasSchema()
Return true if this instance was initialized with not null schemaName.- Returns:
- true if this instance was initialized with not null schemaName
-
getSchemaName
public java.lang.String getSchemaName()
Get the schema name.- Returns:
- Schema name as a String
-
getFullSQLName
public java.lang.String getFullSQLName()
Get the full SQL name of this object, properly quoted and escaped.
-
toString
public java.lang.String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.- Overrides:
toStringin classQueryTreeNode- Returns:
- This object as a String
-
cloneMe
public TableName cloneMe()
Clone this TableName
-
hashCode
public int hashCode()
Returns a hash code for this tableName. This allows us to use TableNames as keys in hash lists.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code for this table name
-
equals
public boolean equals(java.lang.Object other)
Compares two TableNames. Needed for hashing logic to work.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- other tableName
-
-
DataMelt 3.0 © DataMelt by jWork.ORG