Package org.apache.derby.impl.drda
Class Pkgnamcsn.StatementKey
java.lang.Object
org.apache.derby.impl.drda.Pkgnamcsn.StatementKey
- Enclosing class:
Pkgnamcsn
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of anotherStatementKey
object matches this object.int
hashCode()
Calculate hash code.private boolean
Check whether this object can be used as a key for aPkgnamcsn
object.
-
Field Details
-
hash
private int hashCached hash code.
-
-
Constructor Details
-
StatementKey
private StatementKey()
-
-
Method Details
-
equals
Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of anotherStatementKey
object matches this object. -
hashCode
public int hashCode()Calculate hash code. -
isKeyFor
Check whether this object can be used as a key for aPkgnamcsn
object.- Parameters:
p
- aPkgnamcsn
value- Returns:
- true if this object can be key for the
Pkgnamcsn
object
-