Package com.amazonaws.services.dynamodbv2.model

Examples of com.amazonaws.services.dynamodbv2.model.AttributeValue


        for (byte[] b : buffers) {
            attributes.add(ByteBuffer.wrap(b));
        }

        return new AttributeValue().withBS(attributes);
    }
View Full Code Here


        List<?> objects = (List<?>) obj;
        List<AttributeValue> values =
                new ArrayList<AttributeValue>(objects.size());

        for (Object o : objects) {
            AttributeValue value;
            if (o == null) {
                value = new AttributeValue().withNULL(true);
            } else {
                value = memberMarshaller.marshall(o);
            }

            values.add(value);
        }

        AttributeValue result = new AttributeValue();
        result.setL(values);
        return result;
    }
View Full Code Here

        List<String> strings = new ArrayList<String>(set.size());
        for (Object o : set) {
            strings.add(String.valueOf(o));
        }

        return new AttributeValue().withSS(strings);
    }
View Full Code Here

        List<String> timestamps = new ArrayList<String>(dates.size());
        for (Date date : dates) {
            timestamps.add(DateUtils.formatISO8601Date(date));
        }

        return new AttributeValue().withSS(timestamps);
    }
View Full Code Here

        Map<String, ?> map = (Map<String, ?>) obj;
        Map<String, AttributeValue> values =
                new HashMap<String, AttributeValue>();

        for (Map.Entry<String, ?> entry : map.entrySet()) {
            AttributeValue value;
            if (entry.getValue() == null) {
                value = new AttributeValue().withNULL(true);
            } else {
                value = memberMarshaller.marshall(entry.getValue());
            }

            values.put(entry.getKey(), value);
        }

        AttributeValue result = new AttributeValue();
        result.setM(values);
        return result;
    }
View Full Code Here

            } else {
                booleanAttributes.add("1");
            }
        }

        return new AttributeValue().withNS(booleanAttributes);
    }
View Full Code Here

    private DateToStringMarshaller() {
    }

    @Override
    public AttributeValue marshall(Object obj) {
        return new AttributeValue().withS(
                DateUtils.formatISO8601Date((Date) obj));
    }
View Full Code Here

        for (ByteBuffer b : buffers) {
            attributes.add(b);
        }

        return new AttributeValue().withBS(attributes);
    }
View Full Code Here

    private BooleanToBooleanMarshaller() {
    }

    @Override
    public AttributeValue marshall(Object obj) {
        return new AttributeValue().withBOOL((Boolean) obj);
    }
View Full Code Here

    private CalendarToStringMarshaller() {
    }

    @Override
    public AttributeValue marshall(Object obj) {
        return new AttributeValue().withS(
                DateUtils.formatISO8601Date(((Calendar) obj).getTime()));
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.dynamodbv2.model.AttributeValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.