com.amazonaws.services.dynamodbv2.datamodeling
Interface AttributeTransformer

All Known Implementing Classes:
AttributeTransformerChain

Deprecated. These classes have been deprecated, please use the classes in the com.amazonaws.mobileconnectors namespace.

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

transform

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.

Parameters:
parameters - transformation parameters
Returns:
the transformed attribute value map

untransform

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.

Parameters:
parameters - transformation parameters
Returns:
the untransformed attribute value map


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.