edu.rice.rubis.beans
Class BuyNowPK

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

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

BuyNow Primary Key class

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

Field Summary
 java.lang.Integer id
           
 
Constructor Summary
BuyNowPK()
          Creates a new BuyNowPK instance.
BuyNowPK(java.lang.Integer uniqueId)
          Creates a new BuyNowPK 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

BuyNowPK

public BuyNowPK()
Creates a new BuyNowPK instance.

BuyNowPK

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