|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuestionResultBm
Method Summary | |
---|---|
void |
deleteQuestionResultsToQuestion(ForeignPK questionPK)
Delete all results for a question |
Collection<QuestionResult> |
getQuestionResultToQuestion(ForeignPK questionPK)
Return all result to a given question |
Collection<QuestionResult> |
getQuestionResultToQuestionByParticipation(ForeignPK questionPK,
int participationId)
Return all result to a given question for a given participation |
QuestionResult |
getUserAnswerToQuestion(String userId,
ForeignPK questionPK,
AnswerPK answerPK)
Return result for a question and an answer of a user |
Collection<QuestionResult> |
getUserQuestionResultsToQuestion(String userId,
ForeignPK questionPK)
Return all user result to a given question |
Collection<QuestionResult> |
getUserQuestionResultsToQuestionByParticipation(String userId,
ForeignPK questionPK,
int participationId)
Return all user result to a given question for a given participation |
Collection<String> |
getUsersByAnswer(String answerId)
Return all users by a answer |
void |
setQuestionResultsToUser(Collection<QuestionResult> results)
Store responses given by a user |
void |
setQuestionResultToUser(QuestionResult result)
Store response given by a user |
Method Detail |
---|
Collection<QuestionResult> getQuestionResultToQuestion(ForeignPK questionPK)
questionPK
- the Question id
Collection<QuestionResult> getQuestionResultToQuestionByParticipation(ForeignPK questionPK, int participationId)
questionPK
- the Question idparticipationId
- the number of the participation
Collection<QuestionResult> getUserQuestionResultsToQuestion(String userId, ForeignPK questionPK)
questionPK
- the Question iduserId
- the user id
Collection<String> getUsersByAnswer(String answerId)
answerId
- the Answer id
Collection<QuestionResult> getUserQuestionResultsToQuestionByParticipation(String userId, ForeignPK questionPK, int participationId)
userId
- the user idquestionPK
- the Question idparticipationId
- the number of the participation
void setQuestionResultToUser(QuestionResult result)
result
- the QuestionResultvoid setQuestionResultsToUser(Collection<QuestionResult> results)
results
- a Collection of QuestionResultvoid deleteQuestionResultsToQuestion(ForeignPK questionPK)
questionPK
- the question idQuestionResult getUserAnswerToQuestion(String userId, ForeignPK questionPK, AnswerPK answerPK)
userId
- the user idquestionPK
- the question idanswerPK
- the answer id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |