com.ibm.websphere.samples.ejbquery.employeefinderejb
Class DeptKey

java.lang.Object
  extended by com.ibm.websphere.samples.ejbquery.employeefinderejb.DeptKey
All Implemented Interfaces:
java.io.Serializable

public class DeptKey
extends java.lang.Object
implements java.io.Serializable

The Primary Key Class for the CMP Dept entity bean.

See Also:
Serialized Form

Field Summary
 java.lang.Integer deptno
          The deptno attribute for Dept Primary Key.
 
Constructor Summary
DeptKey()
          Default constructor for Dept Primary Key.
DeptKey(java.lang.Integer deptno)
          Constructor for Dept Primary Key specified by deptno.
 
Method Summary
 boolean equals(java.lang.Object otherKey)
          This equality method determines if the Object passed in matches this Primary Key.
 int hashCode()
          This method returns the hash code of a Primary Key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deptno

public java.lang.Integer deptno
The deptno attribute for Dept Primary Key. Implemetation field for persistent attribute: id

Constructor Detail

DeptKey

public DeptKey()
Default constructor for Dept Primary Key.


DeptKey

public DeptKey(java.lang.Integer deptno)
Constructor for Dept Primary Key specified by deptno.

Parameters:
deptno - java.lang.Integer
Method Detail

equals

public boolean equals(java.lang.Object otherKey)
This equality method determines if the Object passed in matches this Primary Key.

Overrides:
equals in class java.lang.Object
Returns:
boolean Object representing the equality of the passed object.

hashCode

public int hashCode()
This method returns the hash code of a Primary Key.

Overrides:
hashCode in class java.lang.Object
Returns:
int Object representing the hash code of this Primary Key.