org.silverpeas.rating
Class RaterRatingPK
java.lang.Object
com.stratelia.webactiv.util.WAPrimaryKey
com.silverpeas.util.ForeignPK
org.silverpeas.rating.ContributionRatingPK
org.silverpeas.rating.RaterRatingPK
- All Implemented Interfaces:
- Serializable, Cloneable
public class RaterRatingPK
- extends ContributionRatingPK
This class represents a technical primary key of a rater rating.
- See Also:
- Serialized Form
RaterRatingPK
public RaterRatingPK(String id,
String componentId,
String type,
UserDetail rater)
getRater
public UserDetail getRater()
hashCode
public int hashCode()
- Description copied from class:
ForeignPK
- Returns a hash code for the key
- Overrides:
hashCode
in class ContributionRatingPK
- Returns:
- A hash code for this object
equals
public boolean equals(Object other)
- Comparison between two notation primary key. Since various attributes of the both elements can
be null, using toString() method to compare the elements avoids to check null cases for each
attribute.
- Overrides:
equals
in class ContributionRatingPK
- Parameters:
other
-
- Returns:
- true if other is equals to this object
toString
public String toString()
- Description copied from class:
WAPrimaryKey
- Converts the contents of the key into a readable String.
- Overrides:
toString
in class ContributionRatingPK
- Returns:
- The string representation of this object
Copyright © 2016 Silverpeas. All Rights Reserved.