Package org.apache.derby.impl.drda
Class Pkgnamcsn.StatementKey
- java.lang.Object
-
- 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 tablestmtTable
found in theDatabase
class. Theequals()
andhashCode()
methods consider otherStatementKey
objects equal to this object if they are associated with aPkgnamcsn
object with the same values for RDBNAM, RDBCOLID, PKGID and PKGSN.- See Also:
Database
-
-
Field Summary
Fields Modifier and Type Field Description private int
hash
Cached hash code.
-
Constructor Summary
Constructors Modifier Constructor Description private
StatementKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of anotherStatementKey
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 aPkgnamcsn
object.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of anotherStatementKey
object matches this object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- another object- Returns:
- true if the objects are equal
-
hashCode
public int hashCode()
Calculate hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hash code
-
isKeyFor
private boolean isKeyFor(Pkgnamcsn p)
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
-
-