@ThreadSafe public final class DynamoDbAsyncMappedDatabase extends Object implements AsyncMappedDatabase
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamoDbAsyncMappedDatabase.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DynamoDbAsyncMappedDatabase.Builder |
builder() |
DynamoDbAsyncClient |
dynamoDbAsyncClient() |
boolean |
equals(Object o) |
<T> CompletableFuture<T> |
execute(DatabaseOperation<?,?,T> operation)
Executes a command against the database.
|
int |
hashCode() |
MapperExtension |
mapperExtension() |
<T> DynamoDbAsyncMappedTable<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.
|
DynamoDbAsyncMappedDatabase.Builder |
toBuilder() |
public static DynamoDbAsyncMappedDatabase.Builder builder()
public <T> CompletableFuture<T> execute(DatabaseOperation<?,?,T> operation)
AsyncMappedDatabaseexecute in interface AsyncMappedDatabaseT - 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.CompletableFuture of the result of the operation being executed. The documentation on the
operation itself should have more information.public <T> DynamoDbAsyncMappedTable<T> table(String tableName, TableSchema<T> tableSchema)
AsyncMappedDatabasetable in interface AsyncMappedDatabaseT - 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.AsyncMappedTable object that can be used to execute table operations against.public DynamoDbAsyncClient dynamoDbAsyncClient()
public MapperExtension mapperExtension()
public DynamoDbAsyncMappedDatabase.Builder toBuilder()
Copyright © 2020. All rights reserved.