|
||||||||||
| 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 AnswerBmquestionPK - the QuestionPK (question id)
public void recordThisAnswerAsVote(ForeignPK questionPK,
AnswerPK answerPK)
AnswerBm
recordThisAnswerAsVote in interface AnswerBmquestionPK - the QuestionPK (question id)answerPK - the AnswerPK (answer id)
public void addAnswersToAQuestion(Collection<Answer> answers,
ForeignPK questionPK)
AnswerBm
addAnswersToAQuestion in interface AnswerBmanswers - a Collection of AnswerquestionPK - the QuestionPK (question id)
public void addAnswerToAQuestion(Answer answer,
ForeignPK questionPK)
AnswerBm
addAnswerToAQuestion in interface AnswerBmanswer - the AnswerquestionPK - the QuestionPK (question id)public void deleteAnswersToAQuestion(ForeignPK questionPK)
AnswerBm
deleteAnswersToAQuestion in interface AnswerBmquestionPK - the QuestionPK (question id)
public void deleteAnswerToAQuestion(ForeignPK questionPK,
String answerId)
AnswerBm
deleteAnswerToAQuestion in interface AnswerBmquestionPK - the QuestionPK (question id)answerId - the answer id
public void updateAnswerToAQuestion(ForeignPK questionPK,
Answer answer)
AnswerBm
updateAnswerToAQuestion in interface AnswerBmquestionPK - the QuestionPK (question id)answer - the Answer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||