edu.rice.rubis.beans
Class UserPK

java.lang.Object
  |
  +--edu.rice.rubis.beans.UserPK
All Implemented Interfaces:
java.io.Serializable

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

User Primary Key class

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite
See Also:
Serialized Form

Field Summary
 java.lang.Integer id
           
 
Constructor Summary
UserPK()
          Creates a new UserPK instance.
UserPK(java.lang.Integer uniqueId)
          Creates a new UserPK instance.
 
Method Summary
 boolean equals(java.lang.Object other)
          Specific equals method.
 java.lang.Integer getId()
          Get the value of the primary key
 int hashCode()
          Specific hashCode just returning the id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.Integer id
Constructor Detail

UserPK

public UserPK()
Creates a new UserPK instance.

UserPK

public UserPK(java.lang.Integer uniqueId)
Creates a new UserPK instance.
Parameters:
uniqueId - an Integer value
Method Detail

hashCode

public int hashCode()
Specific hashCode just returning the id.
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code

equals

public boolean equals(java.lang.Object other)
Specific equals method.
Overrides:
equals in class java.lang.Object
Parameters:
other - the Object to compare with
Returns:
true if both objects have the same primary key

getId

public java.lang.Integer getId()
Get the value of the primary key


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.