|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeTransformer
A hook allowing a custom transform/untransform of the raw attribute values immediately before writing them into DynamoDB and immediately after reading them out of DynamoDB, but with extra context about the model class not available at the raw AmazonDymnamoDB level.
This interface contains both a transform
method and a corresponding
untransform
method. These methods SHOULD be inverses, such that
untransform(transform(value)) == value.
Nested Class Summary | |
---|---|
static interface |
AttributeTransformer.Parameters<T>
Deprecated. Parameters for the transform and untransform methods,
so we don't have to break the interface in order to add additional
parameters. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,AttributeValue> |
transform(AttributeTransformer.Parameters<?> parameters)
Deprecated. Transforms the input set of attribute values derived from the model object before writing them into DynamoDB. |
java.util.Map<java.lang.String,AttributeValue> |
untransform(AttributeTransformer.Parameters<?> parameters)
Deprecated. Untransform the input set of attribute values read from DynamoDB before creating a model object from them. |
Method Detail |
---|
java.util.Map<java.lang.String,AttributeValue> transform(AttributeTransformer.Parameters<?> parameters)
parameters
- transformation parameters
java.util.Map<java.lang.String,AttributeValue> untransform(AttributeTransformer.Parameters<?> parameters)
parameters
- transformation parameters
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |