java.lang.Object
com.RuntimeCollective.questionnaire.bean.SimpleAnswer
com.RuntimeCollective.questionnaire.bean.ManyStringAnswer
- All Implemented Interfaces:
- Answer, com.RuntimeCollective.webapps.bean.EntityBean, java.io.Serializable
- public class ManyStringAnswer
- extends SimpleAnswer
Answer implementation which consists of a Collection of Strings.
- Version:
- $Id: ManyStringAnswer.java,v 1.3 2003/09/30 15:12:53 joe Exp $
|
Constructor Summary |
ManyStringAnswer()
Construct a new empty ManyStringAnswer, giving it a new unique ID. |
ManyStringAnswer(int id)
Get a current ManyStringAnswer from the RuntimeDataSource, given an id. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATABASE_TABLE
public static final java.lang.String DATABASE_TABLE
- The name of the database table for this bean type.
- See Also:
- Constant Field Values
Answers
java.util.Collection Answers
- The actual answer Collection of Strings
ManyStringAnswer
public ManyStringAnswer()
- Construct a new empty ManyStringAnswer, giving it a new unique ID.
ManyStringAnswer
public ManyStringAnswer(int id)
- Get a current ManyStringAnswer from the RuntimeDataSource, given an id.
save
public void save()
- Save this bean to the database.
- Specified by:
save in interface Answer- Overrides:
save in class SimpleAnswer
delete
public void delete()
- Delete this bean from the database.
- Specified by:
delete in interface Answer- Overrides:
delete in class SimpleAnswer
setAnswerGiven
public void setAnswerGiven(java.lang.Object answerGiven)
throws com.RuntimeCollective.questionnaire.InvalidAnswerException
- Set the AnswerGiven of this Answer
- Specified by:
setAnswerGiven in interface Answer- Specified by:
setAnswerGiven in class SimpleAnswer
getAnswerGiven
public java.lang.Object getAnswerGiven()
- Get the AnswerGiven of this Answer
- Specified by:
getAnswerGiven in interface Answer- Specified by:
getAnswerGiven in class SimpleAnswer