1 21 22 package org.apache.derby.impl.sql.catalog; 23 24 import org.apache.derby.catalog.UUID; 25 26 32 33 final class TableKey 34 { 35 private final String tableName; 36 private final UUID schemaId; 37 38 39 45 TableKey(UUID schemaUUID, String tableName) 46 { 47 this.tableName = tableName; 48 this.schemaId = schemaUUID; 49 } 50 51 56 57 String getTableName() 58 { 59 return tableName; 60 } 61 62 67 68 UUID getSchemaId() 69 { 70 return schemaId; 71 } 72 73 81 public boolean equals(Object otherTableKey) 82 { 83 if (otherTableKey instanceof TableKey) { 84 85 TableKey otk = (TableKey) otherTableKey; 86 if (tableName.equals(otk.tableName) && schemaId.equals(otk.schemaId)) 87 return true; 88 } 89 return false; 90 } 91 92 public int hashCode() 93 { 94 return tableName.hashCode(); 95 } 96 97 } 98 | Popular Tags |