java.lang.Object
com.RuntimeCollective.questionnaire.bean.SimpleAnswer
com.RuntimeCollective.questionnaire.bean.OneStringAnswer
- All Implemented Interfaces:
- Answer, com.RuntimeCollective.webapps.bean.EntityBean, java.io.Serializable
- public class OneStringAnswer
- extends SimpleAnswer
Answer implementation which consists of a String.
- Version:
- $Id: OneStringAnswer.java,v 1.5 2003/09/30 15:12:53 joe Exp $
|
Constructor Summary |
OneStringAnswer()
Construct a new blank OneStringAnswer, giving it a new unique ID. |
OneStringAnswer(int id)
Get a current OneStringAnswer 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
Answer
java.lang.String Answer
- The actual answer String
OneStringAnswer
public OneStringAnswer()
- Construct a new blank OneStringAnswer, giving it a new unique ID.
OneStringAnswer
public OneStringAnswer(int id)
- Get a current OneStringAnswer 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