|
||||||||||
| 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.SurveyDatastore
com.heckmansoft.surjey.model.manager.SurveyManager
Manages Survey objects.
| Constructor Summary | |
SurveyManager()
Constructor. |
|
| Method Summary | |
Survey |
createSurvey()
Create a new survey. |
ValueObjectList |
getSections(java.lang.String id)
Get all sections for survey with given id |
boolean |
insert(Survey survey)
Creates a managed Survey instance from survey. |
boolean |
remove(java.lang.String id)
Removes survey with given id. |
boolean |
remove(Survey survey)
Removes given survey. |
boolean |
update(Survey survey)
Updates a particular survey. |
| Methods inherited from class com.heckmansoft.surjey.model.datastore.SurveyDatastore |
extract, findById, 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 SurveyManager()
| Method Detail |
public boolean insert(Survey survey)
throws DatastoreException
survey - A survey instance
DatastoreException
public boolean update(Survey survey)
throws DatastoreException
survey - Survey instance containing updated data.
DatastoreException
public boolean remove(Survey survey)
throws DatastoreException
survey - Survey to be removed.
DatastoreException
public boolean remove(java.lang.String id)
throws DatastoreException
remove in class Datastoreid - Id of survey to be removed.
DatastoreException
public ValueObjectList getSections(java.lang.String id)
throws DatastoreException
id - Id of survey to find sections for.
DatastoreExceptionpublic Survey createSurvey()
createSurvey in class SurveyDatastore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||