|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.heckmansoft.surjey.model.datastore.Datastore
com.heckmansoft.surjey.model.datastore.QuestionDatastore
com.heckmansoft.surjey.model.manager.QuestionManager
Manages Question objects
| Constructor Summary | |
QuestionManager()
Constructor. |
|
| Method Summary | |
Question |
createQuestion()
Create a new question. |
Question |
createQuestion(java.lang.String sectionId)
Create a new question for a given section. |
ValueObjectList |
findAllTypes()
Get all the question types. |
protected java.lang.String |
getNextPosition(java.lang.String sectionId)
Lookup position of next question |
QuestionType |
getQuestionType(java.lang.String id)
Get a question type |
java.util.Iterator |
getTypesIterator()
Get an iterator over the question types. |
| Methods inherited from class com.heckmansoft.surjey.model.datastore.QuestionDatastore |
extract, findById, findBySectionId, getArgs, removeBySectionId |
| Methods inherited from class com.heckmansoft.surjey.model.datastore.Datastore |
executeDelete, executeInsert, executeUpdate, extract, extractList, extractSingle, findAll, generateDeleteSQL, generateInsertSQL, generateSelectSQL, generateUpdateSQL, getConnection, getTransaction, insert, insert, populateStatement, remove, remove, remove, selectAll, selectById, selectWhere, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QuestionManager()
| Method Detail |
public QuestionType getQuestionType(java.lang.String id)
throws DatastoreException
id - The question id.
DatastoreException
public java.util.Iterator getTypesIterator()
throws DatastoreException
DatastoreException
public ValueObjectList findAllTypes()
throws DatastoreException
DatastoreExceptionpublic Question createQuestion()
createQuestion in class QuestionDatastore
public Question createQuestion(java.lang.String sectionId)
throws DatastoreException
sectionId - Id of section for new question.
DatastoreException
protected java.lang.String getNextPosition(java.lang.String sectionId)
throws DatastoreException
DatastoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||