public abstract class AbstractDynamoDAO<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient |
client |
org.slf4j.Logger |
LOGGER |
protected com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper |
mapper |
| Constructor and Description |
|---|
AbstractDynamoDAO() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<T> |
getEntityClass()
the class of the base object to use for this DAO
|
protected com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput |
getProvisionedThroughput()
the provisioned throughput of newly created tables.
|
protected String |
getTableName()
override to use custom table name instead of @
DynamoDBTable annotation |
void |
init() |
protected void |
modifyCreateTableRequest(com.amazonaws.services.dynamodbv2.model.CreateTableRequest request)
override to adjust crea table requests
|
public final org.slf4j.Logger LOGGER
protected com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient client
protected com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper mapper
@PostConstruct public final void init()
protected void modifyCreateTableRequest(com.amazonaws.services.dynamodbv2.model.CreateTableRequest request)
request - the request to modifyprotected com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput getProvisionedThroughput()
protected abstract Class<T> getEntityClass()
protected String getTableName()
DynamoDBTable annotationCopyright © 2016 Taimos GmbH. All rights reserved.