Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2015-2015 Amazon Technologies, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *    http://aws.amazon.com/apache2.0
  *
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
 * OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and
 * limitations under the License.
 */
 package com.amazonaws.services.dynamodbv2.xspec;
Expression specification for making PutItem request to Amazon DynamoDB.

Even though the internal name map and value map are unmodifiable, this object is only as unmodifiable as the underlying values in it's value map. In turn, the values in the value maps are essentially provided by the users of this library. In other words, this object is thread-safe as long as the underlying values provided by the users are thread-safe.

public class PutItemExpressionSpec extends ExpressionSpec {
    private final String conditionExpression;
    private final Map<StringStringnameMap;
    private final Map<StringObjectvalueMap;
        SubstitutionContext context = new SubstitutionContext();
        this. = builder.buildConditionExpression(context);
        final Map<StringStringnameMap = context.getNameMap();
        this. = nameMap == null ? null : Collections.unmodifiableMap(nameMap);
        Map<StringObjectvalueMap = context.getValueMap();
        this. = valueMap == null ? null : Collections.unmodifiableMap(valueMap);
    }

    
Returns the condition expression; or null if there is none.
    public String getConditionExpression() {
        return ;
    }

    
Returns the name map which is unmodifiable; or null if there is none.
    @Override
    public Map<StringStringgetNameMap() {
        return ;
    }

    
Returns the value map which is unmodifiable; or null if there is none.
    public Map<StringObjectgetValueMap() {
        return ;
    }
New to GrepCode? Check out our FAQ X