|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.TableName
public class TableName
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.
| Field Summary | |
|---|---|
private boolean |
hasSchema
|
(package private) java.lang.String |
schemaName
|
(package private) java.lang.String |
tableName
|
| Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
| Constructor Summary | |
|---|---|
TableName()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
java.lang.String tableName
java.lang.String schemaName
private boolean hasSchema
| Constructor Detail |
|---|
public TableName()
| Method Detail |
|---|
public void init(java.lang.Object schemaName,
java.lang.Object tableName)
init in interface Nodeinit in class QueryTreeNodeschemaName - The name of the schema being referencedtableName - The name of the table being referenced
public void init(java.lang.Object schemaName,
java.lang.Object tableName,
java.lang.Object tokBeginOffset,
java.lang.Object tokEndOffset)
init in interface Nodeinit in class QueryTreeNodeschemaName - 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 QueryTreeNodepublic 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.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - other tableName
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||