org.apache.derby.impl.sql.catalog
Class TableKey

java.lang.Object
  extended byorg.apache.derby.impl.sql.catalog.TableKey

final class TableKey
extends java.lang.Object

A TableKey represents a immutable unique identifier for a SQL object. It has a schemaid and a name .

Author:
Jamie -- lifed from Comp/TableName

Field Summary
private  UUID schemaId
           
private  java.lang.String tableName
           
 
Constructor Summary
(package private) TableKey(UUID schemaUUID, java.lang.String tableName)
          Constructor for when you have both the table and schema names.
 
Method Summary
 boolean equals(java.lang.Object otherTableKey)
          2 TableKeys are equal if their both their schemaIds and tableNames are equal.
(package private)  UUID getSchemaId()
          Get the schema id.
(package private)  java.lang.String getTableName()
          Get the table name (without the schema name).
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableName

private final java.lang.String tableName

schemaId

private final UUID schemaId
Constructor Detail

TableKey

TableKey(UUID schemaUUID,
         java.lang.String tableName)
Constructor for when you have both the table and schema names.

Parameters:
tableName - The name of the table being referenced
Method Detail

getTableName

java.lang.String getTableName()
Get the table name (without the schema name).

Returns:
Table name as a String

getSchemaId

UUID getSchemaId()
Get the schema id.

Returns:
Schema id as a String

equals

public boolean equals(java.lang.Object otherTableKey)
2 TableKeys are equal if their both their schemaIds and tableNames are equal.

Parameters:
otherTableKey - The other TableKey, as Object.
Returns:
boolean Whether or not the 2 TableKey are equal.

hashCode

public int hashCode()

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.