| Modifier and Type | Method and Description |
|---|---|
static OperationContext |
OperationContext.of(String tableName) |
static OperationContext |
OperationContext.of(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 ResultT |
CommonOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete execution of this operation against either the primary or a secondary index.
|
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 |
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(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) |
Copyright © 2019. All rights reserved.