com.xmlserv.app.lottery
Class Lottery.Answer

java.lang.Object
  |
  +--com.xmlserv.app.lottery.Lottery.Answer
Enclosing class:
Lottery

public static class Lottery.Answer
extends java.lang.Object


Constructor Summary
Lottery.Answer(java.sql.Connection con, int id)
           
Lottery.Answer(int lottery)
           
 
Method Summary
 java.lang.String getAnswer()
           
 java.lang.String getComment()
           
 int getId()
           
 int getLottery()
           
 int getPhonebookid()
           
 int getUserid()
           
 void load(java.sql.Connection con)
           
 void save(java.sql.Connection con)
           
 void setAnswer(java.lang.String answer)
           
 void setComment(java.lang.String comment)
           
 void setLottery(int lottery)
           
 void setPhonebookid(int phonebookid)
           
 void setUserid(int userid)
           
 org.jdom.Element toElement()
           
 org.jdom.Element toElement(java.sql.Connection con)
          Include user info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lottery.Answer

public Lottery.Answer(int lottery)

Lottery.Answer

public Lottery.Answer(java.sql.Connection con,
                      int id)
               throws XMLServException
Method Detail

load

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

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 user info.

getId

public int getId()

getLottery

public int getLottery()

setLottery

public void setLottery(int lottery)

getUserid

public int getUserid()

setUserid

public void setUserid(int userid)

getAnswer

public java.lang.String getAnswer()

setAnswer

public void setAnswer(java.lang.String answer)

getPhonebookid

public int getPhonebookid()

setPhonebookid

public void setPhonebookid(int phonebookid)

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)