@ThreadSafe public class DynamoDbMappedDatabase extends Object implements MappedDatabase
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamoDbMappedDatabase.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DynamoDbMappedDatabase.Builder |
builder()
Constructs a builder for the default approved implementation of this interface.
|
boolean |
equals(Object o) |
<T> T |
execute(DatabaseOperation<?,?,T> operation)
Executes a command against the database.
|
DynamoDbClient |
getDynamoDbClient() |
MapperExtension |
getMapperExtension() |
int |
hashCode() |
<T> DynamoDbMappedTable<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.
|
DynamoDbMappedDatabase.Builder |
toBuilder() |
public static DynamoDbMappedDatabase.Builder builder()
MappedDatabasebuilder in interface MappedDatabaseDynamoDbMappedDatabase.public <T> T execute(DatabaseOperation<?,?,T> operation)
MappedDatabaseexecute in interface MappedDatabaseT - 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.public <T> DynamoDbMappedTable<T> table(String tableName, TableSchema<T> tableSchema)
MappedDatabasetable in interface MappedDatabaseT - 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.public DynamoDbClient getDynamoDbClient()
public MapperExtension getMapperExtension()
public DynamoDbMappedDatabase.Builder toBuilder()
Copyright © 2019. All rights reserved.