org.silverpeas.rating
Class ContributionRatingPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.silverpeas.util.ForeignPK
          extended by 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

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
ContributionRatingPK(String id, String componentId, String type)
           
 
Method Summary
 boolean equals(Object other)
          Comparison between two notation primary key.
 String getContributionId()
           
 String getContributionType()
           
 int hashCode()
          Returns a hash code for the key
 void setContributionType(String contributionType)
           
 String toString()
          Converts the contents of the key into a readable String.
 
Methods inherited from class com.silverpeas.util.ForeignPK
getRootTableName, getTableName
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContributionRatingPK

public ContributionRatingPK(String id,
                            String componentId,
                            String type)
Method Detail

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.