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.ObjectClass for objects used as keys in the hash tablestmtTablefound in theDatabaseclass. Theequals()andhashCode()methods consider otherStatementKeyobjects equal to this object if they are associated with aPkgnamcsnobject with the same values for RDBNAM, RDBCOLID, PKGID and PKGSN.- See Also:
Database
-
-
Field Summary
Fields Modifier and Type Field Description private inthashCached hash code.
-
Constructor Summary
Constructors Modifier Constructor Description privateStatementKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of anotherStatementKeyobject matches this object.inthashCode()Calculate hash code.private booleanisKeyFor(Pkgnamcsn p)Check whether this object can be used as a key for aPkgnamcsnobject.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Check whether RDBNAM, RDBCOLID, PKGID and PKGSN of anotherStatementKeyobject matches this object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- another object- Returns:
- true if the objects are equal
-
hashCode
public int hashCode()
Calculate hash code.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code
-
isKeyFor
private boolean isKeyFor(Pkgnamcsn p)
Check whether this object can be used as a key for aPkgnamcsnobject.- Parameters:
p- aPkgnamcsnvalue- Returns:
- true if this object can be key for the
Pkgnamcsnobject
-
-