|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuestionBm
Interface declaration
Method Summary | |
---|---|
void |
createAnswersToAQuestion(Question questionDetail)
Create some answers to a question |
AnswerPK |
createAnswerToAQuestion(Answer answerDetail,
QuestionPK questionPK)
Add an answer to a question |
QuestionPK |
createQuestion(Question question)
Create a new question |
void |
createQuestions(Collection<Question> questions,
String fatherId)
Create some questions to a given father |
void |
deleteAnswersToAQuestion(QuestionPK questionPK)
Delete all answers to a question |
void |
deleteAnswerToAQuestion(AnswerPK answerPK,
QuestionPK questionPK)
Delete an answer to a question |
void |
deleteQuestion(QuestionPK questionPK)
Delete a question |
void |
deleteQuestionsByFatherPK(QuestionPK questionPK,
String fatherId)
Delete the questions of a father |
Question |
getQuestion(QuestionPK questionPK)
Get a question |
Collection<Question> |
getQuestionsByFatherPK(QuestionPK questionPK,
String fatherId)
Get all questions for a given father |
void |
updateAnswersToAQuestion(Question questionDetail)
Update the answers to a question |
void |
updateAnswerToAQuestion(Answer answerDetail)
Update an answer to a question |
void |
updateQuestion(Question questionDetail)
Update a question |
void |
updateQuestionHeader(Question questionDetail)
Update a question header (self attributes) |
Method Detail |
---|
Question getQuestion(QuestionPK questionPK)
questionPK
- the question id
Collection<Question> getQuestionsByFatherPK(QuestionPK questionPK, String fatherId)
questionPK
- the question idfatherId
- the father id
QuestionPK createQuestion(Question question)
question
- the question to create
void createQuestions(Collection<Question> questions, String fatherId)
questions
- a Collection of Question to createfatherId
- the father id
void deleteQuestionsByFatherPK(QuestionPK questionPK, String fatherId)
questionPK
- the question contextfatherId
- the father id
void deleteQuestion(QuestionPK questionPK)
questionPK
- the question id to delete
void updateQuestion(Question questionDetail)
questionDetail
- the question to update
void updateQuestionHeader(Question questionDetail)
questionDetail
- the question attributes
void updateAnswersToAQuestion(Question questionDetail)
questionDetail
- the question containing the answers
void updateAnswerToAQuestion(Answer answerDetail)
answerDetail
- the answer to update
void deleteAnswersToAQuestion(QuestionPK questionPK)
questionPK
- the question
void deleteAnswerToAQuestion(AnswerPK answerPK, QuestionPK questionPK)
answerPK
- the answer id to deletequestionPK
- the question id
void createAnswersToAQuestion(Question questionDetail)
questionDetail
- the question which contains the answers
AnswerPK createAnswerToAQuestion(Answer answerDetail, QuestionPK questionPK)
answerDetail
- the new answerquestionPK
- the question id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |