Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.questionnaire.bean
Class OneStringAnswer  view OneStringAnswer download OneStringAnswer.java

java.lang.Object
  extended bycom.RuntimeCollective.questionnaire.bean.SimpleAnswer
      extended bycom.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 $

Field Summary
(package private)  java.lang.String Answer
          The actual answer String
static java.lang.String DATABASE_TABLE
          The name of the database table for this bean type.
 
Fields inherited from class com.RuntimeCollective.questionnaire.bean.SimpleAnswer
AnsweredQuestionId, id, UserAnswersId
 
Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
INTERFACE_BEAN, NULL_ID
 
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.
 
Method Summary
 void delete()
          Delete this bean from the database.
 java.lang.Object getAnswerGiven()
          Get the AnswerGiven of this Answer
 void save()
          Save this bean to the database.
 void setAnswerGiven(java.lang.Object answerGiven)
          Set the AnswerGiven of this Answer
 
Methods inherited from class com.RuntimeCollective.questionnaire.bean.SimpleAnswer
getAnsweredQuestion, getId, getUserAnswers, setAnsweredQuestion, setId, setUserAnswers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

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.

Method Detail

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