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

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

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

The Primary Key Class for the CMP Emp entity bean.

See Also:
Serialized Form

Field Summary
 java.lang.Integer empid
          The empid attribute for Emp Primary Key.
 
Constructor Summary
EmpKey()
          Default constructor for Emp Primary Key.
EmpKey(java.lang.Integer empid)
          Constructor for Emp 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

empid

public java.lang.Integer empid
The empid attribute for Emp Primary Key. Implemetation field for persistent attribute: id

Constructor Detail

EmpKey

public EmpKey()
Default constructor for Emp Primary Key.


EmpKey

public EmpKey(java.lang.Integer empid)
Constructor for Emp Primary Key specified by deptno.

Parameters:
empid - 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.