Package com.amazonaws.services.dynamodbv2.model

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


                return result;
            }

            for (Method m : reflector.getRelevantGetters(clazz)) {
                String attributeName = reflector.getAttributeName(m);
                AttributeValue av = value.get(attributeName);
                if (av != null) {
                    setValue(result, m, av);
                }
            }
View Full Code Here


    @Override
    public AttributeValue marshall(Object obj) {
        Boolean bool = (Boolean) obj;
        if (bool == null || bool == false) {
            return new AttributeValue().withN("0");
        } else {
            return new AttributeValue().withN("1");
        }
    }
View Full Code Here

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

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

        String stringValue = marshaler.marshall(obj);

        if (stringValue == null) {
            return null;
        } else {
            return new AttributeValue(stringValue);
        }
    }
View Full Code Here

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

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

    }

    @Override
    public AttributeValue marshall(Object obj) {
        Number number = (Number) obj;
        return new AttributeValue().withN(number.toString());
    }
View Full Code Here

    private ByteBufferToBinaryMarshaller() {
    }

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

        if ( s3link.getBucketName() == null || s3link.getKey() == null ) {
            // insufficient S3 resource specification
            return null;
        }

        return new AttributeValue().withS(s3link.toJson());
    }
View Full Code Here

    private ByteArrayToBinaryMarshaller() {
    }

    @Override
    public AttributeValue marshall(Object obj) {
        return new AttributeValue().withB(ByteBuffer.wrap((byte[]) obj));
    }
View Full Code Here

        for (Number n : numbers) {
            numberAttributes.add(n.toString());
        }

        return new AttributeValue().withNS(numberAttributes);
    }
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.