public interface MappedDatabase
Modifier and Type | Method and Description |
---|---|
static DynamoDbMappedDatabase.Builder |
builder()
Constructs a builder for the default approved implementation of this interface.
|
<T> T |
execute(DatabaseOperation<?,?,T> operation)
Executes a command against the database.
|
<T> MappedTable<T> |
table(String tableName,
TableSchema<T> tableSchema)
Returns a mapped table that can be used to execute commands that work with mapped items against that table.
|
<T> T execute(DatabaseOperation<?,?,T> operation)
T
- The expected return type from the operation. This is typically inferred by the compiler.operation
- The operation to be performed in the context of the database.<T> MappedTable<T> table(String tableName, TableSchema<T> tableSchema)
T
- THe modelled object type being mapped to this table.tableName
- The name of the physical table persisted by DynamoDb.tableSchema
- A TableSchema
that maps the table to a modelled object.MappedTable
object that can be used to execute table operations against.static DynamoDbMappedDatabase.Builder builder()
DynamoDbMappedDatabase
.Copyright © 2019. All rights reserved.