|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface ItemConverter
The concrete realization of a strategy for converting between Java objects
and DynamoDB AttributeValues. Typically created by a
ConversionSchema.
| Method Summary | ||
|---|---|---|
AttributeValue |
convert(java.lang.reflect.Method getter,
java.lang.Object value)
Converts a Java object into a DynamoDB AttributeValue. |
|
java.util.Map<java.lang.String,AttributeValue> |
convert(java.lang.Object value)
Converts an appropriately-annotated POJO into a Map of AttributeValues. |
|
DynamoDBMapperFieldModel |
getFieldModel(java.lang.reflect.Method getter)
Returns the metadata (e.g. |
|
|
unconvert(java.lang.Class<T> clazz,
java.util.Map<java.lang.String,AttributeValue> values)
Reverses the convert(Object) method, turning a map of attribute
values back into a POJO of the given class. |
|
java.lang.Object |
unconvert(java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
AttributeValue value)
Reverses the convert(Method, Object) method, turning a
DynamoDB AttributeValue back into a Java object suitable for passing
to the given setter. |
|
| Method Detail |
|---|
DynamoDBMapperFieldModel getFieldModel(java.lang.reflect.Method getter)
getter - the getter method to inspect
AttributeValue convert(java.lang.reflect.Method getter,
java.lang.Object value)
getter - the getter that returned the value to be convertedvalue - the value to be converted
java.util.Map<java.lang.String,AttributeValue> convert(java.lang.Object value)
value - the POJO to convert
java.lang.Object unconvert(java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
AttributeValue value)
convert(Method, Object) method, turning a
DynamoDB AttributeValue back into a Java object suitable for passing
to the given setter.
getter - the getter for the value to be unconvertedsetter - the setter for the value to be unconvertedvalue - the attribute value to be unconverted
<T> T unconvert(java.lang.Class<T> clazz,
java.util.Map<java.lang.String,AttributeValue> values)
convert(Object) method, turning a map of attribute
values back into a POJO of the given class.
T - the compile-time type of the object to createclazz - the runtime type of the object to createvalues - the the map of attribute values to unconvert
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||