|
||||||||||
| 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.ResponseDatastore
Manages object-relational mapping for Response objects.
| Constructor Summary | |
ResponseDatastore()
Constructor. |
|
| Method Summary | |
protected Response |
createResponse()
Create a new response. |
protected ValueObject |
extract(java.sql.ResultSet results)
Extract an object from the given result set. |
Response |
findById(java.lang.String id)
Finds a particular response. |
java.util.List |
findBySurveyIdAndAddress(java.lang.String surveyId,
java.lang.String address)
Finds a particular response. |
protected java.util.List |
getArgs(ValueObject vo)
From the given object, get a list of arguments to use for constructing a query or update. |
| 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 ResponseDatastore()
| Method Detail |
public Response findById(java.lang.String id)
throws DatastoreException
id - Id of the response to find.
DatastoreException
public java.util.List findBySurveyIdAndAddress(java.lang.String surveyId,
java.lang.String address)
throws DatastoreException
surveyId - Survey id of the survey for which to find responses.address - Address of the respondent for which to find responses.
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 Response createResponse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||