| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| pack-priv String | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| pack-priv | TableName(String
The name of the schema being referenced schemaName, String The name of the table or other object being
referenced tableName, ContextManager The context manager cm)Constructor for when we have both the table and schema names. |
| pack-priv | TableName(String
The name of the schema being referenced schemaName, String The name of the table or other object being
referenced tableName, int begin position of token for the table name
identifier from parser. pass in -1 if unknown tokBeginOffset, int end position of token for the table name
identifier from parser. pass in -1 if unknown tokEndOffset, ContextManager The context manager cm)Constructor for when we have both the table and schema names. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public TableName | |
| pack-priv boolean | |
| pack-priv boolean | Returns: boolean Whether or not the 2 TableNames are equal.The other TableName. otherSchemaName, String The other 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 | |
| public String | |
| pack-priv String | Returns: Full table name as a StringGet the full table name (with the schema name, if explicitly specified). |
| public String | |
| public String | |
| public int | Returns: hash code for this table nameOverrides java. Returns a hash code for this tableName. |
| public boolean | Returns: true if this instance was initialized with not null schemaNameReturn true if this instance was initialized with not null schemaName. |
| pack-priv void | |
| public String | Returns: This object as a StringOverrides org. Convert this object to a String. |
| hasSchema | back to summary |
|---|---|
| private boolean hasSchema | |
| schemaName | back to summary |
|---|---|
| pack-priv String schemaName | |
| tableName | back to summary |
|---|---|
| pack-priv String tableName | |
| TableName | back to summary |
|---|---|
| pack-priv TableName(String schemaName, String tableName, ContextManager cm) Constructor for when we have both the table and schema names.
| |
| TableName | back to summary |
|---|---|
| pack-priv TableName(String schemaName, String tableName, int tokBeginOffset, int tokEndOffset, ContextManager cm) Constructor for when we have both the table and schema names.
| |
| bind | back to summary |
|---|---|
| pack-priv void bind() throws StandardException Bind this TableName. This means filling in the schema name if it wasn't specified.
| |
| cloneMe | back to summary |
|---|---|
| public TableName cloneMe() Clone this TableName | |
| equals | back to summary |
|---|---|
| pack-priv 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). Also, only check table names if the schema name(s) are null.
| |
| equals | back to summary |
|---|---|
| pack-priv 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). Also, only check table names if the schema name(s) are null. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compares two TableNames. Needed for hashing logic to work.
| |
| getFullSQLName | back to summary |
|---|---|
| public String getFullSQLName() Get the full SQL name of this object, properly quoted and escaped. | |
| getFullTableName | back to summary |
|---|---|
| pack-priv String getFullTableName() Get the full table name (with the schema name, if explicitly specified).
| |
| getSchemaName | back to summary |
|---|---|
| public String getSchemaName() Get the schema name.
| |
| getTableName | back to summary |
|---|---|
| public String getTableName() Get the table name (without the schema name).
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code for this tableName. This allows us to use TableNames as keys in hash lists.
| |
| hasSchema | back to summary |
|---|---|
| public boolean hasSchema() Return true if this instance was initialized with not null schemaName.
| |
| setSchemaName | back to summary |
|---|---|
| pack-priv void setSchemaName(String schemaName) Set the schema name.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |