Modifier and Type | Method and Description |
---|---|
default ReadModification |
DynamoDbEnhancedClientExtension.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 |
DynamoDbEnhancedClientExtension.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.
|
Modifier and Type | Method and Description |
---|---|
ReadModification |
ChainExtension.afterRead(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata)
Implementation of the
DynamoDbEnhancedClientExtension 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 |
ChainExtension.beforeWrite(Map<String,AttributeValue> item,
OperationContext operationContext,
TableMetadata tableMetadata)
Implementation of the
DynamoDbEnhancedClientExtension 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 |
---|---|
static <ResponseT,ItemT> |
EnhancedClientUtils.readAndTransformPaginatedItems(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension,
Function<ResponseT,List<Map<String,AttributeValue>>> getItems,
Function<ResponseT,Map<String,AttributeValue>> getLastEvaluatedKey) |
static <T> T |
EnhancedClientUtils.readAndTransformSingleItem(Map<String,AttributeValue> itemMap,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
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 SdkIterable<ResultT> |
PaginatedOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension,
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,
DynamoDbEnhancedClientExtension extension,
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,
DynamoDbEnhancedClientExtension extension,
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,
DynamoDbEnhancedClientExtension extension,
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,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
RequestT |
CommonOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
QueryRequest |
QueryOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
PutItemRequest |
PutItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
DeleteItemRequest |
DeleteItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
UpdateItemRequest |
UpdateItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
ScanRequest |
ScanOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
CreateTableRequest |
CreateTableOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
GetItemRequest |
GetItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
TransactGetItem |
TransactableReadOperation.generateTransactGetItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactGetItem |
GetItemOperation.generateTransactGetItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
TransactableWriteOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
PutItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
DeleteItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
UpdateItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
WriteRequest |
PutItemOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
WriteRequest |
DeleteItemOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
WriteRequest |
BatchableWriteOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
Void |
CreateTableOperation.transformResponse(CreateTableResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
T |
DeleteItemOperation.transformResponse(DeleteItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
T |
GetItemOperation.transformResponse(GetItemResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
Void |
PutItemOperation.transformResponse(PutItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Page<T> |
QueryOperation.transformResponse(QueryResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
ResultT |
PaginatedOperation.transformResponse(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
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,
DynamoDbEnhancedClientExtension extension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
Page<T> |
ScanOperation.transformResponse(ScanResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
T |
UpdateItemOperation.transformResponse(UpdateItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Modifier and Type | Method and Description |
---|---|
TransactWriteItem |
ConditionCheck.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
Copyright © 2020. All rights reserved.