Package com.amazonaws.services.dynamodbv2.model

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


                    || ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class) ) {
                Object getterReturnResult = safeInvoke(getter, obj, (Object[])null);
                if (getterReturnResult != null) {
                    conditions.put(
                            reflector.getAttributeName(getter),
                            new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                    getSimpleAttributeValue(getter, getterReturnResult)));
                }
            }
        }
        return conditions;
View Full Code Here


        Map<String, Condition> conditions = new HashMap<String, Condition>();
        for ( Method getter : reflector.getKeyGetters(obj.getClass()) ) {
            if ( getter.isAnnotationPresent(DynamoDBHashKey.class) ) {
                conditions.put(
                        reflector.getAttributeName(getter),
                        new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                getSimpleAttributeValue(getter, safeInvoke(getter, obj, (Object[])null))));
            }
        }
        return conditions;
    }
View Full Code Here

                        || ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class) ) {
                    Object getterReturnResult = safeInvoke(getter, obj, (Object[])null);
                    if (getterReturnResult != null) {
                        conditions.put(
                                reflector.getAttributeName(getter),
                                new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                        getSimpleAttributeValue(getter, getterReturnResult)));
                    }
                }
            }
        }
View Full Code Here

                    || getter.isAnnotationPresent(DynamoDBIndexHashKey.class) ) {
                Object getterReturnResult = safeInvoke(getter, obj, (Object[])null);
                if (getterReturnResult != null) {
                    conditions.put(
                            reflector.getAttributeName(getter),
                            new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                    getSimpleAttributeValue(getter, getterReturnResult)));
                }
            }
        }
        return conditions;
View Full Code Here

                        || ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class) ) {
                    Object getterReturnResult = safeInvoke(getter, obj, (Object[])null);
                    if (getterReturnResult != null) {
                        conditions.put(
                                reflector.getAttributeName(getter),
                                new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                        getSimpleAttributeValue(getter, getterReturnResult)));
                    }
                }
            }
        }
View Full Code Here

        Map<String, Condition> conditions = new HashMap<String, Condition>();
        for ( Method getter : reflector.getKeyGetters(obj.getClass()) ) {
            if ( getter.isAnnotationPresent(DynamoDBHashKey.class) ) {
                conditions.put(
                        reflector.getAttributeName(getter),
                        new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                getSimpleAttributeValue(getter, safeInvoke(getter, obj, (Object[])null))));
            }
        }
        return conditions;
    }
View Full Code Here

                        || ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class) ) {
                    Object getterReturnResult = safeInvoke(getter, obj, (Object[])null);
                    if (getterReturnResult != null) {
                        conditions.put(
                                reflector.getAttributeName(getter),
                                new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                        getSimpleAttributeValue(getter, getterReturnResult)));
                    }
                }
            }
        }
View Full Code Here

        Map<String, Condition> conditions = new HashMap<String, Condition>();
        for ( Method getter : reflector.getKeyGetters(obj.getClass()) ) {
            if ( getter.isAnnotationPresent(DynamoDBHashKey.class) ) {
                conditions.put(
                        reflector.getAttributeName(getter),
                        new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                getSimpleAttributeValue(getter, safeInvoke(getter, obj, (Object[])null))));
            }
        }
        return conditions;
    }
View Full Code Here

        Map<String, Condition> conditions = new HashMap<String, Condition>();
        for ( Method getter : reflector.getKeyGetters(obj.getClass()) ) {
            if ( getter.isAnnotationPresent(DynamoDBHashKey.class) ) {
                conditions.put(
                        reflector.getAttributeName(getter),
                        new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                getSimpleAttributeValue(getter, safeInvoke(getter, obj, (Object[])null))));
            }
        }
        return conditions;
    }
View Full Code Here

import com.fasterxml.jackson.core.JsonToken;

public class ConditionJsonUnmarshaller implements Unmarshaller<Condition, JsonUnmarshallerContext> {

    public Condition unmarshall(JsonUnmarshallerContext context) throws Exception {
        Condition request = new Condition();

        int originalDepth = context.getCurrentDepth();
        int targetDepth = originalDepth + 1;

        JsonToken token = context.currentToken;
        if (token == null) token = context.nextToken();

       while (true) {
            if (token == null) break;
            if (token == JsonToken.FIELD_NAME || token == JsonToken.START_OBJECT) {
                if (context.testExpression("AttributeValueList", targetDepth)) {
                    request.setAttributeValueList(new ListUnmarshaller<AttributeValue>(AttributeValueJsonUnmarshaller.getInstance()).unmarshall(context));
                }
        if (context.testExpression("ComparisonOperator", targetDepth) || context.testExpression("ComparisonOperator", targetDepth - 1)) {
                    context.nextToken();
                    request.setComparisonOperator(SimpleTypeJsonUnmarshallers.StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
            } else if (token == JsonToken.END_ARRAY || token == JsonToken.END_OBJECT) {
                if (context.getCurrentDepth() <= originalDepth) break;
            }
            token = context.nextToken();
View Full Code Here

TOP

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

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.