|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.question.control.QuestionBmEJB
public class QuestionBmEJB
Question Business Manager See QuestionBmBusinessSkeleton for methods documentation
Constructor Summary | |
---|---|
QuestionBmEJB()
|
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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionBmEJB()
Method Detail |
---|
public Question getQuestion(QuestionPK questionPK)
QuestionBm
getQuestion
in interface QuestionBm
questionPK
- the question id
public Collection<Question> getQuestionsByFatherPK(QuestionPK questionPK, String fatherId)
QuestionBm
getQuestionsByFatherPK
in interface QuestionBm
questionPK
- the question idfatherId
- the father id
public QuestionPK createQuestion(Question question)
QuestionBm
createQuestion
in interface QuestionBm
question
- the question to create
public void createQuestions(Collection<Question> questions, String fatherId)
QuestionBm
createQuestions
in interface QuestionBm
questions
- a Collection of Question to createfatherId
- the father id
public void deleteQuestionsByFatherPK(QuestionPK questionPK, String fatherId)
QuestionBm
deleteQuestionsByFatherPK
in interface QuestionBm
questionPK
- the question contextfatherId
- the father id
public void deleteQuestion(QuestionPK questionPK)
QuestionBm
deleteQuestion
in interface QuestionBm
questionPK
- the question id to delete
public void updateQuestion(Question questionDetail)
QuestionBm
updateQuestion
in interface QuestionBm
questionDetail
- the question to update
public void updateQuestionHeader(Question questionDetail)
QuestionBm
updateQuestionHeader
in interface QuestionBm
questionDetail
- the question attributes
public void updateAnswersToAQuestion(Question questionDetail)
QuestionBm
updateAnswersToAQuestion
in interface QuestionBm
questionDetail
- the question containing the answers
public void updateAnswerToAQuestion(Answer answerDetail)
QuestionBm
updateAnswerToAQuestion
in interface QuestionBm
answerDetail
- the answer to update
public void deleteAnswersToAQuestion(QuestionPK questionPK)
QuestionBm
deleteAnswersToAQuestion
in interface QuestionBm
questionPK
- the question
public void deleteAnswerToAQuestion(AnswerPK answerPK, QuestionPK questionPK)
QuestionBm
deleteAnswerToAQuestion
in interface QuestionBm
answerPK
- the answer id to deletequestionPK
- the question id
public void createAnswersToAQuestion(Question questionDetail)
QuestionBm
createAnswersToAQuestion
in interface QuestionBm
questionDetail
- the question which contains the answers
public AnswerPK createAnswerToAQuestion(Answer answerDetail, QuestionPK questionPK)
QuestionBm
createAnswerToAQuestion
in interface QuestionBm
answerDetail
- the new answerquestionPK
- the question id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |