public final class DefaultDynamoDbAsyncTable<T> extends Object implements DynamoDbAsyncTable<T>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
createTable(CreateTableEnhancedRequest request) |
CompletableFuture<T> |
deleteItem(DeleteItemEnhancedRequest request) |
DynamoDbAsyncClient |
dynamoDbClient() |
boolean |
equals(Object o) |
CompletableFuture<T> |
getItem(GetItemEnhancedRequest request) |
int |
hashCode() |
DefaultDynamoDbAsyncIndex<T> |
index(String indexName)
Returns a mapped index that can be used to execute commands against a secondary index belonging to the table
being mapped by this object.
|
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
MapperExtension |
mapperExtension()
Gets the
MapperExtension associated with this mapped resource. |
CompletableFuture<Void> |
putItem(PutItemEnhancedRequest<T> request) |
SdkPublisher<Page<T>> |
query(QueryEnhancedRequest request) |
SdkPublisher<Page<T>> |
scan(ScanEnhancedRequest request) |
String |
tableName()
Gets the physical table name that operations performed by this object will be executed against.
|
TableSchema<T> |
tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
CompletableFuture<T> |
updateItem(UpdateItemEnhancedRequest<T> request) |
public MapperExtension mapperExtension()
MappedTableResourceMapperExtension associated with this mapped resource.mapperExtension in interface MappedTableResource<T>MapperExtension associated with this mapped resource.public TableSchema<T> tableSchema()
MappedTableResourceTableSchema object that this mapped table was built with.tableSchema in interface MappedTableResource<T>TableSchema object for this mapped table.public DynamoDbAsyncClient dynamoDbClient()
public String tableName()
MappedTableResourcetableName in interface MappedTableResource<T>public DefaultDynamoDbAsyncIndex<T> index(String indexName)
DynamoDbAsyncTableindex in interface DynamoDbAsyncTable<T>indexName - The name of the secondary index to build the command interface for.DynamoDbAsyncIndex object that can be used to execute database commands against.public CompletableFuture<Void> createTable(CreateTableEnhancedRequest request)
createTable in interface DynamoDbAsyncTable<T>public CompletableFuture<T> deleteItem(DeleteItemEnhancedRequest request)
deleteItem in interface DynamoDbAsyncTable<T>public CompletableFuture<T> getItem(GetItemEnhancedRequest request)
getItem in interface DynamoDbAsyncTable<T>public SdkPublisher<Page<T>> query(QueryEnhancedRequest request)
query in interface DynamoDbAsyncTable<T>public CompletableFuture<Void> putItem(PutItemEnhancedRequest<T> request)
putItem in interface DynamoDbAsyncTable<T>public SdkPublisher<Page<T>> scan(ScanEnhancedRequest request)
scan in interface DynamoDbAsyncTable<T>public CompletableFuture<T> updateItem(UpdateItemEnhancedRequest<T> request)
updateItem in interface DynamoDbAsyncTable<T>public Key keyFrom(T item)
MappedTableResourceKey object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.keyFrom in interface MappedTableResource<T>item - The item to extract the key fields from.Copyright © 2020. All rights reserved.