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

Quick Search    Search Deep

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

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

Field Summary
(package private)  java.util.Collection Answers
          The actual answer Collection of Strings
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
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.
 
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

Answers

java.util.Collection Answers
The actual answer Collection of Strings

Constructor Detail

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.

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