Class ContributionRatingPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.ResourceReference
-
- org.silverpeas.core.contribution.rating.model.ContributionRatingPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ComponentResourceIdentifier
,ResourceIdentifier
- Direct Known Subclasses:
RaterRatingPK
public class ContributionRatingPK extends ResourceReference implements Serializable
This class represents a technical primary key of a contribution rating.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.ResourceReference
UNKNOWN_ID
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description ContributionRatingPK(String id, String componentId, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Comparison between two notation primary key.String
getContributionId()
String
getContributionType()
int
hashCode()
Gets the hash code of this reference.void
setContributionType(String contributionType)
String
toString()
Converts the contents of the key into a readable String.-
Methods inherited from class org.silverpeas.core.ResourceReference
asString, getComponentInstanceId, getLocalId, to
-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getRootTableName, getSpace, getSpaceId, getTableName, getTableName, setComponentName, setId, setSpace, toResourceReference
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.ComponentResourceIdentifier
toReference
-
-
-
-
Method Detail
-
getContributionId
public String getContributionId()
-
getContributionType
public String getContributionType()
-
setContributionType
public void setContributionType(String contributionType)
-
hashCode
public int hashCode()
Description copied from class:ResourceReference
Gets the hash code of this reference.- Overrides:
hashCode
in classResourceReference
- Returns:
- an integer
-
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 classResourceReference
- Parameters:
other
-- Returns:
- true if other is equals to this reference. False otherwise.
-
toString
public String toString()
Description copied from class:WAPrimaryKey
Converts the contents of the key into a readable String.- Overrides:
toString
in classWAPrimaryKey
- Returns:
- The string representation of this object
-
-