| java.lang.Object org.apache.derby.impl.sql.compile.QueryTreeNode org.apache.derby.impl.sql.compile.TableName
TableName | public class TableName extends QueryTreeNode (Code) | | A TableName represents a qualified name, externally represented as a schema name
and an object name separated by a dot. This class is mis-named: it is used to
represent the names of other object types in addition to tables.
author: Jerry Brenner |
Method Summary | |
public void | bind(DataDictionary dataDictionary) Bind this TableName. | public 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). | public 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). | public boolean | equals(Object other) Compares two TableNames. | public String | getFullTableName() Get the full table name (with the schema name, if explicitly
specified). | public String | getSchemaName() Get the schema name. | public String | getTableName() Get the table name (without the schema name). | public boolean | hasSchema() Return true if this instance was initialized with not null schemaName. | public int | hashCode() Returns a hashcode for this tableName. | public void | init(Object schemaName, Object tableName) Initializer for when you have both the table and schema names. | public void | init(Object schemaName, Object tableName, Object tokBeginOffset, Object tokEndOffset) Initializer for when you have both the table and schema names.
Parameters: schemaName - The name of the schema being referenced Parameters: tableName - The name of the table being referenced Parameters: tokBeginOffset - begin position of token for the table name identifier from parser. | public void | setSchemaName(String schemaName) Set the schema name. | public String | toString() Convert this object to a String. |
bind | public void bind(DataDictionary dataDictionary) throws StandardException(Code) | | Bind this TableName. This means filling in the schema name if it
wasn't specified.
Parameters: dataDictionary - Data dictionary to bind against. exception: StandardException - Thrown on error |
equals | public boolean equals(TableName otherTableName)(Code) | | 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). Also, only check table names if the schema
name(s) are null.
Parameters: otherTableName - The other TableName. boolean Whether or not the 2 TableNames are equal. |
equals | public boolean equals(String otherSchemaName, String otherTableName)(Code) | | 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). Also, only check table names if the schema
name(s) are null.
Parameters: otherSchemaName - The other TableName. Parameters: otherTableName - The other TableName. boolean Whether or not the 2 TableNames are equal. |
equals | public boolean equals(Object other)(Code) | | Compares two TableNames. Needed for hashing logic to work.
Parameters: other - other tableName |
getFullTableName | public String getFullTableName()(Code) | | Get the full table name (with the schema name, if explicitly
specified).
Full table name as a String |
getSchemaName | public String getSchemaName()(Code) | | Get the schema name.
Schema name as a String |
getTableName | public String getTableName()(Code) | | Get the table name (without the schema name).
Table name as a String |
hasSchema | public boolean hasSchema()(Code) | | Return true if this instance was initialized with not null schemaName.
true if this instance was initialized with not null schemaName |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this tableName. This allows us to use TableNames
as keys in hash lists.
hashcode for this tablename |
init | public void init(Object schemaName, Object tableName)(Code) | | Initializer for when you have both the table and schema names.
Parameters: schemaName - The name of the schema being referenced Parameters: tableName - The name of the table being referenced |
init | public void init(Object schemaName, Object tableName, Object tokBeginOffset, Object tokEndOffset)(Code) | | Initializer for when you have both the table and schema names.
Parameters: schemaName - The name of the schema being referenced Parameters: tableName - The name of the table being referenced Parameters: tokBeginOffset - begin position of token for the table name identifier from parser. pass in -1 if unknown Parameters: tokEndOffset - end position of token for the table name identifier from parser. pass in -1 if unknown |
setSchemaName | public void setSchemaName(String schemaName)(Code) | | Set the schema name.
Parameters: schemaName - Schema name as a String |
toString | public String toString()(Code) | | Convert this object to a String. See comments in QueryTreeNode.java
for how this should be done for tree printing.
This object as a String |
Methods inherited from org.apache.derby.impl.sql.compile.QueryTreeNode | public Visitable accept(Visitor v) throws StandardException(Code)(Java Doc) public QueryTreeNode bind() throws StandardException(Code)(Java Doc) public DataValueDescriptor convertDefaultNode(DataTypeDescriptor typeDescriptor) throws StandardException(Code)(Java Doc) protected static void debugFlush()(Code)(Java Doc) public static void debugPrint(String outputString)(Code)(Java Doc) public void disablePrivilegeCollection()(Code)(Java Doc) public String executeSchemaName()(Code)(Java Doc) public String executeStatementName()(Code)(Java Doc) public static String formatNodeString(String nodeString, int depth)(Code)(Java Doc) public boolean foundString(String[] list, String search)(Code)(Java Doc) public GeneratedClass generate(ByteArray ignored) throws StandardException(Code)(Java Doc) protected void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException(Code)(Java Doc) void generateAuthorizeCheck(ActivationClassBuilder acb, MethodBuilder mb, int sqlOperation)(Code)(Java Doc) public int getBeginOffset()(Code)(Java Doc) final protected ClassFactory getClassFactory()(Code)(Java Doc) final protected CompilerContext getCompilerContext()(Code)(Java Doc) final public ContextManager getContextManager()(Code)(Java Doc) public Object getCursorInfo() throws StandardException(Code)(Java Doc) final public DataDictionary getDataDictionary()(Code)(Java Doc) final public DependencyManager getDependencyManager()(Code)(Java Doc) public int getEndOffset()(Code)(Java Doc) final public ExecutionFactory getExecutionFactory()(Code)(Java Doc) final public GenericConstantActionFactory getGenericConstantActionFactory()(Code)(Java Doc) protected int getIntProperty(String value, String key) throws StandardException(Code)(Java Doc) final protected LanguageConnectionContext getLanguageConnectionContext()(Code)(Java Doc) final public NodeFactory getNodeFactory()(Code)(Java Doc) protected int getNodeType()(Code)(Java Doc) public ConstantNode getNullNode(TypeId typeId, ContextManager cm) throws StandardException(Code)(Java Doc) public DataTypeDescriptor[] getParameterTypes() throws StandardException(Code)(Java Doc) public long getRowEstimate()(Code)(Java Doc) public String getSPSName()(Code)(Java Doc) final SchemaDescriptor getSchemaDescriptor(String schemaName) throws StandardException(Code)(Java Doc) final SchemaDescriptor getSchemaDescriptor(String schemaName, boolean raiseError) throws StandardException(Code)(Java Doc) protected int getStatementType()(Code)(Java Doc) final protected TableDescriptor getTableDescriptor(String tableName, SchemaDescriptor schema) throws StandardException(Code)(Java Doc) final protected TypeCompiler getTypeCompiler(TypeId typeId)(Code)(Java Doc) public void init(Object arg1) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13) throws StandardException(Code)(Java Doc) public void init(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10, Object arg11, Object arg12, Object arg13, Object arg14) throws StandardException(Code)(Java Doc) public boolean isAtomic() throws StandardException(Code)(Java Doc) protected boolean isInstanceOf(int nodeType)(Code)(Java Doc) public boolean isPrivilegeCollectionRequired()(Code)(Java Doc) final boolean isSessionSchema(SchemaDescriptor sd)(Code)(Java Doc) final boolean isSessionSchema(String schemaName)(Code)(Java Doc) public ConstantAction makeConstantAction() throws StandardException(Code)(Java Doc) public ResultDescription makeResultDescription() throws StandardException(Code)(Java Doc) public TableName makeTableName(String schemaName, String flatName) throws StandardException(Code)(Java Doc) public boolean needsSavepoint()(Code)(Java Doc) protected String nodeHeader()(Code)(Java Doc) public QueryTreeNode optimize() throws StandardException(Code)(Java Doc) public static QueryTreeNode parseQueryText(CompilerContext compilerContext, String queryText, Object[] paramDefaults, LanguageConnectionContext lcc) throws StandardException(Code)(Java Doc) public void printLabel(int depth, String label)(Code)(Java Doc) public void printSubNodes(int depth)(Code)(Java Doc) public boolean referencesSessionSchema() throws StandardException(Code)(Java Doc) public TableName resolveTableToSynonym(TableName tabName) throws StandardException(Code)(Java Doc) public void setBeginOffset(int beginOffset)(Code)(Java Doc) public void setContextManager(ContextManager cm)(Code)(Java Doc) public void setEndOffset(int endOffset)(Code)(Java Doc) public void setNodeType(int nodeType)(Code)(Java Doc) public void setRefActionInfo(long fkIndexConglomId, int[] fkColArray, String parentResultSetId, boolean dependentScan)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void treePrint()(Code)(Java Doc) public void treePrint(int depth)(Code)(Java Doc) String verifyClassExist(String javaClassName, boolean convertCase) throws StandardException(Code)(Java Doc)
|
|
|