public interface DynamoDbEnhancedClientExtension
Multiple extensions can be used with the enhanced client, but the order in which they are loaded is important. For instance one extension may overwrite the value of an attribute that another extension then includes in a checksum calculation.
Modifier and Type | Method and Description |
---|---|
default ReadModification |
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 |
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 WriteModification beforeWrite(Map<String,AttributeValue> item, OperationContext operationContext, TableMetadata tableMetadata)
item
- The item that is about to be written.operationContext
- The context under which the operation to be modified is taking place.tableMetadata
- The structure of the table.WriteModification
object that can alter the behavior of the write operation.default ReadModification afterRead(Map<String,AttributeValue> item, OperationContext operationContext, TableMetadata tableMetadata)
item
- The item that has just been read.operationContext
- The context under which the operation to be modified is taking place.tableMetadata
- The structure of the table.ReadModification
object that can alter the results of a read operation.Copyright © 2020. All rights reserved.