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