Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Class DbRating

java.lang.Object
  extended by com.jivesoftware.forum.database.DbRating
All Implemented Interfaces:
Rating, Cacheable, java.io.Serializable

public class DbRating
extends java.lang.Object
implements Rating, Cacheable

See Also:
Serialized Form

Nested Class Summary
 class DbRating.UpdateAvailableRatingsClusterTask
          Coherence cluster task that updates the available ratings across the cluster.
 
Constructor Summary
DbRating(int score, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equals(Rating rating)
          Test for equality between two rating objects.
 int getCachedSize()
          Returns the approximate size of the Object in bytes.
 java.lang.String getDescription()
          Retrieve the description for the rating.
 int getScore()
          Retrieve the score for the rating.
 int hashCode()
           
 void setDescription(java.lang.String description)
           
 void setScore(int score)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbRating

public DbRating(int score,
                java.lang.String description)
Method Detail

getScore

public int getScore()
Description copied from interface: Rating
Retrieve the score for the rating.

Specified by:
getScore in interface Rating
Returns:
the score associated with the Rating object.

setScore

public void setScore(int score)

getDescription

public java.lang.String getDescription()
Description copied from interface: Rating
Retrieve the description for the rating.

Specified by:
getDescription in interface Rating
Returns:
the description associated with the Rating object.

setDescription

public void setDescription(java.lang.String description)

equals

public boolean equals(Rating rating)
Description copied from interface: Rating
Test for equality between two rating objects.

Specified by:
equals in interface Rating
Parameters:
rating - the Rating object to test for equality.
Returns:
true if equal, false otherwise.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getCachedSize

public int getCachedSize()
Description copied from interface: Cacheable
Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.

Specified by:
getCachedSize in interface Cacheable
Returns:
the size of the Object in bytes.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.