public interface MapperExtension
ChainMapperExtension
should be used and initialized with all the component extensions to combine together
into a chain.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 © 2019. All rights reserved.