|
||||||||||
| 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.SectionDatastore
com.heckmansoft.surjey.model.manager.SectionManager
Manages Section objects.
| Constructor Summary | |
SectionManager()
|
|
| Method Summary | |
Section |
createSection()
Create a new section. |
Section |
createSection(java.lang.String surveyId)
Create a new section. |
ValueObjectList |
getQuestions(java.lang.String id)
For a given section id, get the subordinate questions. |
boolean |
insert(Section section)
Creates a particular section. |
boolean |
remove(Section section)
Removes given section. |
boolean |
remove(java.lang.String id)
Removes section with given id. |
boolean |
removeBySurveyId(java.lang.String id)
Removes all sections for a given survey. |
boolean |
update(Section section)
Updates a particular section. |
| Methods inherited from class com.heckmansoft.surjey.model.datastore.SectionDatastore |
extract, findById, findBySurveyId, getArgs |
| 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, 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 SectionManager()
| Method Detail |
public boolean insert(Section section)
throws DatastoreException
section - Section instance containing updated data.
DatastoreException
public boolean update(Section section)
throws DatastoreException
section - Section instance containing updated data.
DatastoreException
public boolean removeBySurveyId(java.lang.String id)
throws DatastoreException
removeBySurveyId in class SectionDatastoreid - Id of survey for which sections are to be removed
DatastoreException
public boolean remove(Section section)
throws DatastoreException
section - Section to be removed.
DatastoreException
public boolean remove(java.lang.String id)
throws DatastoreException
remove in class Datastoreid - Id of Section instance to be removed.
DatastoreException
public ValueObjectList getQuestions(java.lang.String id)
throws DatastoreException
id - Section id to get the questions for.
DatastoreExceptionpublic Section createSection()
createSection in class SectionDatastore
public Section createSection(java.lang.String surveyId)
throws DatastoreException
DatastoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||