org.apache.derby.impl.drda
Class Pkgnamcsn.StatementKey

java.lang.Object
  extended by org.apache.derby.impl.drda.Pkgnamcsn.StatementKey
Enclosing class:
Pkgnamcsn

private final class Pkgnamcsn.StatementKey
extends java.lang.Object

Class for objects used as keys in the hash table stmtTable found in the Database class. The equals() and hashCode() methods consider other StatementKey objects equal to this object if they are associated with a Pkgnamcsn object with the same values for RDBNAM, RDBCOLID, PKGID and PKGSN.

See Also:
Database

Field Summary
private  int hash
          Cached hash code.
 
Constructor Summary
private Pkgnamcsn.StatementKey()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of another StatementKey object matches this object.
 int hashCode()
          Calculate hash code.
private  boolean isKeyFor(Pkgnamcsn p)
          Check whether this object can be used as a key for a Pkgnamcsn object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash

private int hash
Cached hash code.

Constructor Detail

Pkgnamcsn.StatementKey

private Pkgnamcsn.StatementKey()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of another StatementKey object matches this object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - another object
Returns:
true if the objects are equal

hashCode

public int hashCode()
Calculate hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code

isKeyFor

private boolean isKeyFor(Pkgnamcsn p)
Check whether this object can be used as a key for a Pkgnamcsn object.

Parameters:
p - a Pkgnamcsn value
Returns:
true if this object can be key for the Pkgnamcsn object

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.