Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.database
Class Vote

java.lang.Object
  extended by com.jivesoftware.base.database.Vote
All Implemented Interfaces:
Cacheable, java.io.Serializable

public class Vote
extends java.lang.Object
implements Cacheable

Class to encapsulate the data encompassing a vote for a poll.

See Also:
Serialized Form

Constructor Summary
protected Vote(long pollID, long userID, java.lang.String uniqueID, int optionIndex)
           
protected Vote(long pollID, long userID, java.lang.String uniqueID, int optionIndex, java.util.Date voteDate)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCachedSize()
          Returns the approximate size of the Object in bytes.
 int getOptionIndex()
           
 long getPollID()
           
 java.lang.String getUniqueID()
           
 long getUserID()
           
 java.util.Date getVoteDate()
           
 int hashCode()
           
protected  void setOptionIndex(int optionIndex)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vote

protected Vote(long pollID,
               long userID,
               java.lang.String uniqueID,
               int optionIndex,
               java.util.Date voteDate)

Vote

protected Vote(long pollID,
               long userID,
               java.lang.String uniqueID,
               int optionIndex)
Method Detail

getPollID

public long getPollID()

getUserID

public long getUserID()

getUniqueID

public java.lang.String getUniqueID()

getOptionIndex

public int getOptionIndex()

setOptionIndex

protected void setOptionIndex(int optionIndex)

getVoteDate

public java.util.Date getVoteDate()

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.

equals

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

hashCode

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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.