com.solidstategroup.cms
Class Poll

java.lang.Object
  extended by com.solidstategroup.cms.Poll

public class Poll
extends java.lang.Object


Constructor Summary
Poll()
           
 
Method Summary
 boolean addAnswer(java.lang.String newAnswer)
           
 boolean delete()
           
 boolean deleteAnswer(int thisAnswerId)
           
 void execute()
           
 java.util.Vector getAnswers()
           
 int getPercentage(int pollAnswerId)
           
 PollAnswer getPollAnswer(int answerId)
           
 int getPollId()
           
 java.lang.String getQuestion()
           
 int getTotalVotes()
           
 void resetPoll()
           
 void setAnswers(java.util.Vector answers)
           
 void setPollId(int pollId)
           
 void setQuestion(java.lang.String question)
           
 void store()
           
 void voteInPoll(int pollAnswerId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Poll

public Poll()
Method Detail

voteInPoll

public void voteInPoll(int pollAnswerId)

getTotalVotes

public int getTotalVotes()

getPercentage

public int getPercentage(int pollAnswerId)

getPollAnswer

public PollAnswer getPollAnswer(int answerId)

resetPoll

public void resetPoll()

execute

public void execute()

store

public void store()

addAnswer

public boolean addAnswer(java.lang.String newAnswer)

delete

public boolean delete()

deleteAnswer

public boolean deleteAnswer(int thisAnswerId)

getPollId

public int getPollId()

setPollId

public void setPollId(int pollId)

getQuestion

public java.lang.String getQuestion()

setQuestion

public void setQuestion(java.lang.String question)

getAnswers

public java.util.Vector getAnswers()

setAnswers

public void setAnswers(java.util.Vector answers)