com.amazonaws.services.dynamodb.datamodeling
Class JsonMarshaller<T>
java.lang.Object
com.amazonaws.services.dynamodb.datamodeling.JsonMarshaller<T>
- All Implemented Interfaces:
- DynamoDBMarshaller<T>
public class JsonMarshaller<T>
- extends Object
- implements DynamoDBMarshaller<T>
Simple JSON marshaller that uses Jackson mapper. It has all the limitations
of that library, the documentation of which is available here:
http://docs.codehaus.org/display/JACKSON/Home
Method Summary |
String |
marshall(T obj)
Turns an object of type T into its String representation. |
T |
unmarshall(Class<T> clazz,
String obj)
Turns a String representation of an object of type T into an object. |
JsonMarshaller
public JsonMarshaller()
marshall
public String marshall(T obj)
- Description copied from interface:
DynamoDBMarshaller
- Turns an object of type T into its String representation.
- Specified by:
marshall
in interface DynamoDBMarshaller<T>
unmarshall
public T unmarshall(Class<T> clazz,
String obj)
- Description copied from interface:
DynamoDBMarshaller
- Turns a String representation of an object of type T into an object.
- Specified by:
unmarshall
in interface DynamoDBMarshaller<T>
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.