public class DataStoreClient extends Object
| Constructor and Description |
|---|
DataStoreClient()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
ensureSchema()
Insure that the current database schema is properly loaded.
|
List<Survey> |
findSurveys()
Return a list of all surveys.
|
protected com.amazonaws.services.dynamodbv2.document.DynamoDB |
getDB()
Simple helper to lazy-create the (low-level) Dynamo DB instance for
our current client.
|
protected com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper |
getMapper()
Simple helper to lazy-create the (high-level) Dynamo DB mapper instance
for our current client.
|
void |
saveSurvey(Survey survey,
boolean allowOverwrite)
Persist the given survey
|
protected com.amazonaws.services.dynamodbv2.document.DynamoDB getDB()
protected com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper getMapper()
public void ensureSchema()
public void saveSurvey(Survey survey, boolean allowOverwrite)
survey - the object to saveallowOverwrite - if true, a previous record will overwrittenpublic List<Survey> findSurveys()
Copyright © 2015 Institute for Intelligent Systems. All rights reserved.