| Modifier and Type | Method and Description |
|---|---|
static OperationContext |
OperationContext.create(String tableName) |
static OperationContext |
OperationContext.create(String tableName,
String indexName) |
| Modifier and Type | Method and Description |
|---|---|
default ReadModification |
MapperExtension.afterRead(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata)
This hook is called just after an operation that has read data from the database.
|
default WriteModification |
MapperExtension.beforeWrite(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata)
This hook is called just before an operation is going to write data to the database.
|
default SdkIterable<ResultT> |
PaginatedOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against either the primary or a
secondary index.
|
default ResultT |
CommonOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against either the primary or a
secondary index.
|
default SdkPublisher<ResultT> |
PaginatedOperation.executeAsync(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against either the
primary or a secondary index.
|
default CompletableFuture<ResultT> |
CommonOperation.executeAsync(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against either the
primary or a secondary index.
|
RequestT |
PaginatedOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
RequestT |
CommonOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
TransactGetItem |
TransactableReadOperation.generateTransactGetItem(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
TransactWriteItem |
TransactableWriteOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
WriteRequest |
BatchableWriteOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext context,
MapperExtension mapperExtension) |
ResultT |
PaginatedOperation.transformResponse(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
ResultT |
CommonOperation.transformResponse(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
| Modifier and Type | Method and Description |
|---|---|
static <ResponseT,ItemT> |
Utils.readAndTransformPaginatedItems(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension,
Function<ResponseT,List<Map<String,AttributeValue>>> getItems,
Function<ResponseT,Map<String,AttributeValue>> getLastEvaluatedKey) |
static <T> T |
Utils.readAndTransformSingleItem(Map<String,AttributeValue> itemMap,
TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
| Modifier and Type | Method and Description |
|---|---|
ReadModification |
ChainMapperExtension.afterRead(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata)
Implementation of the
MapperExtension interface that will call all the chained extensions in reverse
order, passing the results of each one to the next and coalescing the results into a single modification. |
WriteModification |
ChainMapperExtension.beforeWrite(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata)
Implementation of the
MapperExtension interface that will call all the chained extensions in forward
order, passing the results of each one to the next and coalescing the results into a single modification. |
WriteModification |
VersionedRecordExtension.beforeWrite(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata) |
| Modifier and Type | Method and Description |
|---|---|
TransactWriteItem |
ConditionCheck.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
Copyright © 2020. All rights reserved.