com.xmlserv.app.poll
Class Poll.Option

java.lang.Object
  |
  +--com.xmlserv.app.poll.Poll.Option
Enclosing class:
Poll

public static class Poll.Option
extends java.lang.Object


Constructor Summary
Poll.Option(java.sql.Connection con, int id)
           
Poll.Option(int question, java.lang.String optiontext)
           
 
Method Summary
 int getId()
           
 java.lang.String getOptiontext()
           
 int getOrdering()
           
 int getQuestion()
           
 void save(java.sql.Connection con)
           
 void setOptiontext(java.lang.String optiontext)
           
 void setOrdering(int ordering)
           
 void setQuestion(int question)
           
 org.jdom.Element toElement()
           
 org.jdom.Element toElement(java.sql.Connection con)
          Include answer count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Poll.Option

public Poll.Option(int question,
                   java.lang.String optiontext)

Poll.Option

public Poll.Option(java.sql.Connection con,
                   int id)
            throws XMLServException
Method Detail

save

public void save(java.sql.Connection con)
          throws XMLServException

toElement

public org.jdom.Element toElement()

toElement

public org.jdom.Element toElement(java.sql.Connection con)
                           throws XMLServException
Include answer count.

getId

public int getId()

getQuestion

public int getQuestion()

setQuestion

public void setQuestion(int question)

getOrdering

public int getOrdering()

setOrdering

public void setOrdering(int ordering)

getOptiontext

public java.lang.String getOptiontext()

setOptiontext

public void setOptiontext(java.lang.String optiontext)