public class UpdateItemOperation<T> extends Object implements TableOperation<T,UpdateItemRequest,UpdateItemResponse,T>, TransactableWriteOperation<T>
| Modifier and Type | Method and Description |
|---|---|
Function<UpdateItemRequest,CompletableFuture<UpdateItemResponse>> |
asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.
|
static <T> UpdateItemOperation<T> |
create(UpdateItemEnhancedRequest<T> request) |
UpdateItemRequest |
generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
TransactWriteItem |
generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
Function<UpdateItemRequest,UpdateItemResponse> |
serviceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level synchronous SDK call to DynamoDb.
|
T |
transformResponse(UpdateItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteOnPrimaryIndex, executeOnPrimaryIndexAsyncexecute, executeAsyncpublic static <T> UpdateItemOperation<T> create(UpdateItemEnhancedRequest<T> request)
public UpdateItemRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
CommonOperationDynamoDbClient.generateRequest in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>tableSchema - A TableSchema that maps the table to a modelled object.operationContext - An object containing the context, or target, of the command execution.extension - A DynamoDbEnhancedClientExtension that may modify the request of this operation. A null
value here will result in no modifications.DynamoDbClient call to perform the operation.public T transformResponse(UpdateItemResponse response, TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
CommonOperationtransformResponse in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>response - The response object returned by the DynamoDb call for this operation.tableSchema - A TableSchema that maps the table to a modelled object.operationContext - An object containing the context, or target, of the command execution.extension - A DynamoDbEnhancedClientExtension that may modify the result of this operation. A null
value here will result in no modifications.public Function<UpdateItemRequest,UpdateItemResponse> serviceCall(DynamoDbClient dynamoDbClient)
CommonOperationserviceCall in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>dynamoDbClient - A low level DynamoDbClient to make the call against.public Function<UpdateItemRequest,CompletableFuture<UpdateItemResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
CommonOperationasyncServiceCall in interface CommonOperation<T,UpdateItemRequest,UpdateItemResponse,T>dynamoDbAsyncClient - A low level DynamoDbAsyncClient to make the call against.public TransactWriteItem generateTransactWriteItem(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
generateTransactWriteItem in interface TransactableWriteOperation<T>Copyright © 2020. All rights reserved.