edu.rice.rubis.beans
Class ItemPK

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

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

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

ItemPK

public ItemPK()
Creates a new ItemPK instance.

ItemPK

public ItemPK(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

getId

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


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.