|
||||||||||
| 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
Manages object-relational mapping for Question objects.
| Constructor Summary | |
QuestionDatastore()
Constructor. |
|
| Method Summary | |
protected Question |
createQuestion()
Create a new question. |
protected ValueObject |
extract(java.sql.ResultSet results)
Extract an object from the given result set. |
Question |
findById(java.lang.String id)
Finds a particular question. |
ValueObjectList |
findBySectionId(java.lang.String id)
Finds all questions for a particular section. |
protected java.util.List |
getArgs(ValueObject vo)
From the given object, get a list of arguments to use for constructing a query or update. |
boolean |
removeBySectionId(java.lang.String id)
Removes all questions for a given section. |
| 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 QuestionDatastore()
| Method Detail |
public Question findById(java.lang.String id)
throws DatastoreException
id - the id of the question to find.
DatastoreException
public ValueObjectList findBySectionId(java.lang.String id)
throws DatastoreException
id - Id of the section containing the questions to find.
DatastoreException
public boolean removeBySectionId(java.lang.String id)
throws DatastoreException
id - Id of section for which sections are to be removed.
DatastoreExceptionprotected java.util.List getArgs(ValueObject vo)
getArgs in class Datastorevo - Object containing data to use.
protected ValueObject extract(java.sql.ResultSet results)
throws DatastoreException
extract in class Datastoreresults - The result set.
DatastoreExceptionprotected Question createQuestion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||