|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.answer.control.AnswerBmEJB
public class AnswerBmEJB
Answer Business Manager See AnswerBm for methods documentation
Constructor Summary | |
---|---|
AnswerBmEJB()
|
Method Summary | |
---|---|
void |
addAnswersToAQuestion(Collection<Answer> answers,
ForeignPK questionPK)
Add some answers to a question |
void |
addAnswerToAQuestion(Answer answer,
ForeignPK questionPK)
Add an answer to a question |
void |
deleteAnswersToAQuestion(ForeignPK questionPK)
Delete all answers to a given question |
void |
deleteAnswerToAQuestion(ForeignPK questionPK,
String answerId)
Delete an answer to a question |
Collection<Answer> |
getAnswersByQuestionPK(ForeignPK questionPK)
Get answers which composed the question |
void |
recordThisAnswerAsVote(ForeignPK questionPK,
AnswerPK answerPK)
Record that the answer (answerPK) has been chosen to the question (questionPK) |
void |
updateAnswerToAQuestion(ForeignPK questionPK,
Answer answer)
Update an answer to a question |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnswerBmEJB()
Method Detail |
---|
public Collection<Answer> getAnswersByQuestionPK(ForeignPK questionPK)
AnswerBm
getAnswersByQuestionPK
in interface AnswerBm
questionPK
- the QuestionPK (question id)
public void recordThisAnswerAsVote(ForeignPK questionPK, AnswerPK answerPK)
AnswerBm
recordThisAnswerAsVote
in interface AnswerBm
questionPK
- the QuestionPK (question id)answerPK
- the AnswerPK (answer id)public void addAnswersToAQuestion(Collection<Answer> answers, ForeignPK questionPK)
AnswerBm
addAnswersToAQuestion
in interface AnswerBm
answers
- a Collection of AnswerquestionPK
- the QuestionPK (question id)public void addAnswerToAQuestion(Answer answer, ForeignPK questionPK)
AnswerBm
addAnswerToAQuestion
in interface AnswerBm
answer
- the AnswerquestionPK
- the QuestionPK (question id)public void deleteAnswersToAQuestion(ForeignPK questionPK)
AnswerBm
deleteAnswersToAQuestion
in interface AnswerBm
questionPK
- the QuestionPK (question id)public void deleteAnswerToAQuestion(ForeignPK questionPK, String answerId)
AnswerBm
deleteAnswerToAQuestion
in interface AnswerBm
questionPK
- the QuestionPK (question id)answerId
- the answer idpublic void updateAnswerToAQuestion(ForeignPK questionPK, Answer answer)
AnswerBm
updateAnswerToAQuestion
in interface AnswerBm
questionPK
- the QuestionPK (question id)answer
- the Answer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |