|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QuestionDao
| Method Summary | |
|---|---|
void |
addQuestion(java.lang.Integer categoryID,
Question toAdd)
|
void |
addQuestions(java.lang.Integer categoryID,
java.util.ArrayList<Question> toAdd)
|
void |
copyQuestion(int questionID,
java.lang.Integer toCategoryID)
|
void |
createQuestion(Question toCreate)
|
void |
deleteQuestion(Question toDelete)
|
void |
deleteQuestionFromCategory(Question toDelete,
Category from)
|
void |
deleteQuestions(java.util.ArrayList<Question> toDelete)
|
Question |
getQuestionByID(java.lang.Integer questionID)
|
int |
getQuestionCount(java.lang.Integer categoryID)
Returns number of questions in given category. |
java.util.ArrayList<Question> |
getQuestionsByCategoryID(java.lang.Integer categoryID)
|
java.util.ArrayList<Question> |
getQuestionsByIDs(java.util.ArrayList<java.lang.Integer> questionIDs)
|
java.util.ArrayList<Question> |
getQuestionsByTestID(java.lang.Integer testID)
|
java.util.ArrayList<java.lang.Integer> |
getQuestionsForTestGenerator(java.util.ArrayList<java.lang.Integer> questionCategoryIDs,
java.util.ArrayList<java.lang.Integer> keywordIDs,
java.util.ArrayList<java.lang.Integer> questionTypeIDs,
boolean containsPictures,
java.lang.Integer difficulty)
This method returns set of questions that meets the constraints defined by input parameters |
void |
moveQuestion(Question q,
java.lang.Integer fromCategoryID,
java.lang.Integer toCategoryID)
Moves question between two categories |
void |
updateQuestion(java.lang.Integer questionID,
Question toUpdate)
|
| Method Detail |
|---|
Question getQuestionByID(java.lang.Integer questionID)
throws java.sql.SQLException
java.sql.SQLException
java.util.ArrayList<Question> getQuestionsByIDs(java.util.ArrayList<java.lang.Integer> questionIDs)
throws java.sql.SQLException
java.sql.SQLException
java.util.ArrayList<Question> getQuestionsByCategoryID(java.lang.Integer categoryID)
throws java.sql.SQLException
java.sql.SQLException
java.util.ArrayList<Question> getQuestionsByTestID(java.lang.Integer testID)
throws java.sql.SQLException
java.sql.SQLException
void addQuestion(java.lang.Integer categoryID,
Question toAdd)
throws java.sql.SQLException
java.sql.SQLException
void createQuestion(Question toCreate)
throws java.sql.SQLException
java.sql.SQLException
void addQuestions(java.lang.Integer categoryID,
java.util.ArrayList<Question> toAdd)
throws java.sql.SQLException
java.sql.SQLException
void updateQuestion(java.lang.Integer questionID,
Question toUpdate)
throws java.sql.SQLException
java.sql.SQLException
void deleteQuestion(Question toDelete)
throws QuestionInTestException,
java.sql.SQLException
QuestionInTestException
java.sql.SQLException
void deleteQuestions(java.util.ArrayList<Question> toDelete)
throws QuestionInTestException,
java.sql.SQLException
QuestionInTestException
java.sql.SQLException
void deleteQuestionFromCategory(Question toDelete,
Category from)
throws java.sql.SQLException
java.sql.SQLException
void moveQuestion(Question q,
java.lang.Integer fromCategoryID,
java.lang.Integer toCategoryID)
throws java.sql.SQLException
fromCategoryID - toCategoryID -
java.sql.SQLException
void copyQuestion(int questionID,
java.lang.Integer toCategoryID)
throws java.sql.SQLException
java.sql.SQLException
java.util.ArrayList<java.lang.Integer> getQuestionsForTestGenerator(java.util.ArrayList<java.lang.Integer> questionCategoryIDs,
java.util.ArrayList<java.lang.Integer> keywordIDs,
java.util.ArrayList<java.lang.Integer> questionTypeIDs,
boolean containsPictures,
java.lang.Integer difficulty)
throws java.sql.SQLException
questionCategoryIDs - List of question category IDs for the testkeywordIDs - List of question keyword IDs for the testquestionTypeIDs - List of question type IDs for the testcontainsPictures - If false the test must not contain questions with picturesdifficulty -
java.sql.SQLException
int getQuestionCount(java.lang.Integer categoryID)
throws java.sql.SQLException
categoryID -
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||