edu.rice.rubis.beans
Class OldItemPK

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

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

Old Item Primary Key class

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

Field Summary
 java.lang.Integer id
           
 
Constructor Summary
OldItemPK()
          Creates a new ItemPK instance.
OldItemPK(java.lang.Integer uniqueId)
          Creates a new ItemPK instance.
 
Method Summary
 boolean equals(java.lang.Object other)
          Specific equals method.
 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

OldItemPK

public OldItemPK()
Creates a new ItemPK instance.

OldItemPK

public OldItemPK(java.lang.Integer uniqueId)
Creates a new ItemPK 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


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.