|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.util.questionResult.control.QuestionResultBmEJB
public class QuestionResultBmEJB
QuestionResult Business Manager See QuestionResultBmBusinessSkeleton for methods documentation
| Constructor Summary | |
|---|---|
QuestionResultBmEJB()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuestionResultBmEJB()
| Method Detail |
|---|
public void setQuestionResultToUser(QuestionResult result)
QuestionResultBm
setQuestionResultToUser in interface QuestionResultBmresult - the QuestionResultpublic Collection<QuestionResult> getQuestionResultToQuestion(ForeignPK questionPK)
QuestionResultBm
getQuestionResultToQuestion in interface QuestionResultBmquestionPK - the Question id
public Collection<QuestionResult> getUserQuestionResultsToQuestion(String userId,
ForeignPK questionPK)
QuestionResultBm
getUserQuestionResultsToQuestion in interface QuestionResultBmuserId - the user idquestionPK - the Question id
public Collection<String> getUsersByAnswer(String answerId)
QuestionResultBm
getUsersByAnswer in interface QuestionResultBmanswerId - the Answer id
public void deleteQuestionResultsToQuestion(ForeignPK questionPK)
QuestionResultBm
deleteQuestionResultsToQuestion in interface QuestionResultBmquestionPK - the question id
public Collection<QuestionResult> getQuestionResultToQuestionByParticipation(ForeignPK questionPK,
int participationId)
QuestionResultBm
getQuestionResultToQuestionByParticipation in interface QuestionResultBmquestionPK - the Question idparticipationId - the number of the participation
public Collection<QuestionResult> getUserQuestionResultsToQuestionByParticipation(String userId,
ForeignPK questionPK,
int participationId)
QuestionResultBm
getUserQuestionResultsToQuestionByParticipation in interface QuestionResultBmuserId - the user idquestionPK - the Question idparticipationId - the number of the participation
public void setQuestionResultsToUser(Collection<QuestionResult> results)
QuestionResultBm
setQuestionResultsToUser in interface QuestionResultBmresults - a Collection of QuestionResult
public QuestionResult getUserAnswerToQuestion(String userId,
ForeignPK questionPK,
AnswerPK answerPK)
QuestionResultBm
getUserAnswerToQuestion in interface QuestionResultBmuserId - 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 | |||||||||