com.xmlserv.app.poll
Class Poll.Question

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

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


Constructor Summary
Poll.Question(java.sql.Connection con, int id)
          Open existing question.
Poll.Question(int poll)
          Create new Question for given Poll.
 
Method Summary
 int getId()
           
 int getOrdering()
           
 int getPoll()
           
 java.lang.String getQuestiontext()
           
 void save(java.sql.Connection con)
           
 void setOrdering(int ordering)
           
 void setPoll(int poll)
           
 void setQuestiontext(java.lang.String questiontext)
           
 org.jdom.Element toElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Poll.Question

public Poll.Question(int poll)
Create new Question for given Poll.

Poll.Question

public Poll.Question(java.sql.Connection con,
                     int id)
              throws XMLServException
Open existing question.
Method Detail

save

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

toElement

public org.jdom.Element toElement()

getId

public int getId()

getPoll

public int getPoll()

setPoll

public void setPoll(int poll)

getOrdering

public int getOrdering()

setOrdering

public void setOrdering(int ordering)

getQuestiontext

public java.lang.String getQuestiontext()

setQuestiontext

public void setQuestiontext(java.lang.String questiontext)