com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.marshallers
Class BooleanSetToNumberSetMarshaller

java.lang.Object
  extended by com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.marshallers.BooleanSetToNumberSetMarshaller
All Implemented Interfaces:
ArgumentMarshaller, ArgumentMarshaller.NumberSetAttributeMarshaller

public class BooleanSetToNumberSetMarshaller
extends java.lang.Object
implements ArgumentMarshaller.NumberSetAttributeMarshaller

A legacy marshaller that marshals sets of Java Booleans into DynamoDB NumberSets, representing true as '1' and false as '0'. Retained for backwards compatibility with older versions of the mapper which don't know about the DynamoDB BOOL type.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.ArgumentMarshaller
ArgumentMarshaller.BinaryAttributeMarshaller, ArgumentMarshaller.BinarySetAttributeMarshaller, ArgumentMarshaller.BooleanAttributeMarshaller, ArgumentMarshaller.ListAttributeMarshaller, ArgumentMarshaller.MapAttributeMarshaller, ArgumentMarshaller.NumberAttributeMarshaller, ArgumentMarshaller.NumberSetAttributeMarshaller, ArgumentMarshaller.StringAttributeMarshaller, ArgumentMarshaller.StringSetAttributeMarshaller
 
Method Summary
static BooleanSetToNumberSetMarshaller instance()
           
 AttributeValue marshall(java.lang.Object obj)
          Marshalls the object given into an AttributeValue.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static BooleanSetToNumberSetMarshaller instance()

marshall

public AttributeValue marshall(java.lang.Object obj)
Description copied from interface: ArgumentMarshaller
Marshalls the object given into an AttributeValue.

Specified by:
marshall in interface ArgumentMarshaller


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