edu.rice.rubis.beans
Class CommentPK
java.lang.Object
|
+--edu.rice.rubis.beans.CommentPK
- All Implemented Interfaces:
- java.io.Serializable
- public class CommentPK
- extends java.lang.Object
- implements java.io.Serializable
Comment Primary Key class
- Version:
- 1.0
- Author:
- Emmanuel Cecchet and Julie Marguerite
- See Also:
- Serialized Form
Field Summary |
java.lang.Integer |
id
|
Constructor Summary |
CommentPK()
Creates a new CommentPK instance. |
CommentPK(java.lang.Integer uniqueId)
Creates a new CommentPK 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 |
id
public java.lang.Integer id
CommentPK
public CommentPK()
- Creates a new
CommentPK
instance.
CommentPK
public CommentPK(java.lang.Integer uniqueId)
- Creates a new
CommentPK
instance.
- Parameters:
uniqueId
- an Integer
value
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.