public class DeleteItemOperation<T> extends Object implements TableOperation<T,DeleteItemRequest,DeleteItemResponse,DeleteItemEnhancedResponse<T>>, TransactableWriteOperation<T>, BatchableWriteOperation<T>
Modifier and Type | Method and Description |
---|---|
Function<DeleteItemRequest,CompletableFuture<DeleteItemResponse>> |
asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.
|
static <T> DeleteItemOperation<T> |
create(DeleteItemEnhancedRequest request) |
static <T> DeleteItemOperation<T> |
create(TransactDeleteItemEnhancedRequest request) |
DeleteItemRequest |
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) |
WriteRequest |
generateWriteRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
OperationName |
operationName()
The type, or name, of the operation.
|
Function<DeleteItemRequest,DeleteItemResponse> |
serviceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level synchronous SDK call to DynamoDb.
|
DeleteItemEnhancedResponse<T> |
transformResponse(DeleteItemResponse 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, wait
executeOnPrimaryIndex, executeOnPrimaryIndexAsync
execute, executeAsync
public static <T> DeleteItemOperation<T> create(DeleteItemEnhancedRequest request)
public static <T> DeleteItemOperation<T> create(TransactDeleteItemEnhancedRequest request)
public OperationName operationName()
CommonOperation
operationName
in interface CommonOperation<T,DeleteItemRequest,DeleteItemResponse,DeleteItemEnhancedResponse<T>>
public DeleteItemRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
CommonOperation
DynamoDbClient
.generateRequest
in interface CommonOperation<T,DeleteItemRequest,DeleteItemResponse,DeleteItemEnhancedResponse<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 DeleteItemEnhancedResponse<T> transformResponse(DeleteItemResponse response, TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
CommonOperation
transformResponse
in interface CommonOperation<T,DeleteItemRequest,DeleteItemResponse,DeleteItemEnhancedResponse<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<DeleteItemRequest,DeleteItemResponse> serviceCall(DynamoDbClient dynamoDbClient)
CommonOperation
serviceCall
in interface CommonOperation<T,DeleteItemRequest,DeleteItemResponse,DeleteItemEnhancedResponse<T>>
dynamoDbClient
- A low level DynamoDbClient
to make the call against.public Function<DeleteItemRequest,CompletableFuture<DeleteItemResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
CommonOperation
asyncServiceCall
in interface CommonOperation<T,DeleteItemRequest,DeleteItemResponse,DeleteItemEnhancedResponse<T>>
dynamoDbAsyncClient
- A low level DynamoDbAsyncClient
to make the call against.public WriteRequest generateWriteRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
generateWriteRequest
in interface BatchableWriteOperation<T>
public TransactWriteItem generateTransactWriteItem(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
generateTransactWriteItem
in interface TransactableWriteOperation<T>
Copyright © 2022. All rights reserved.