org.silverpeas.rating
Class ContributionRatingPK
java.lang.Object
com.stratelia.webactiv.util.WAPrimaryKey
com.silverpeas.util.ForeignPK
org.silverpeas.rating.ContributionRatingPK
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- RaterRatingPK
public class ContributionRatingPK
- extends ForeignPK
- implements Serializable
This class represents a technical primary key of a contribution rating.
- See Also:
- Serialized Form
ContributionRatingPK
public ContributionRatingPK(String id,
String componentId,
String type)
getContributionId
public String getContributionId()
getContributionType
public String getContributionType()
setContributionType
public void setContributionType(String contributionType)
hashCode
public int hashCode()
- Description copied from class:
ForeignPK
- Returns a hash code for the key
- Overrides:
hashCode
in class ForeignPK
- 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 ForeignPK
- 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 WAPrimaryKey
- Returns:
- The string representation of this object
Copyright © 2016 Silverpeas. All Rights Reserved.