Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   *
   *  http://aws.amazon.com/apache2.0
   *
  * or in the "license" file accompanying this file. 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.document.api;
 
 import java.util.Map;
 
 
A Table-centric UpdateItem API.
 
 public interface UpdateItemApi {

    
Updates an item with the attributes specified.

Parameters:
primaryKey primary key of the item to be updated
attributeUpdates attributes to be updated
 
     public UpdateItemOutcome updateItem(PrimaryKey primaryKey,
             AttributeUpdate... attributeUpdates);
 
     public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
             AttributeUpdate... attributeUpdates);
 
     public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
             String rangeKeyNameObject rangeKeyValue,
             AttributeUpdate... attributeUpdates);

    
Updates an item with the attributes specified.

Parameters:
primaryKey primary key of the item to be updated
expected the condition to match for the update to succeed.
attributeUpdates attributes to be updated
 
     public UpdateItemOutcome updateItem(PrimaryKey primaryKey,
             Collection<ExpectedexpectedAttributeUpdate... attributeUpdates);
    
    
Updates an item with the specified hash-only key and attributes.
 
     public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
             Collection<ExpectedexpectedAttributeUpdate... attributeUpdates);
    
    
Updates an item with the specified hash key, range key and attributes.
 
     public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
             String rangeKeyNameObject rangeKeyValue,
             Collection<ExpectedexpectedAttributeUpdate... attributeUpdates);

    
Performs an update on an item in the table using the given update expression string.

Parameters:
primaryKey primary key of the item to be updated
updateExpression the update expression that specifies the attributes to be updated.
nameMap the map containing the mapping between attribute names used in update expression and the actual name of the attributes
valueMap the map containing the mapping between the attribute value used in update expression and the actual value of the attribute
 
     public UpdateItemOutcome updateItem(PrimaryKey primaryKey,
             String updateExpressionMap<StringStringnameMap,
             Map<StringObjectvalueMap);
     
     public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
            String updateExpressionMap<StringStringnameMap,
            Map<StringObjectvalueMap);
    
    public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
            String rangeKeyNameObject rangeKeyValue,
            String updateExpressionMap<StringStringnameMap,
            Map<StringObjectvalueMap);

    
Updates an item with the specified primary key using the given update expression provided the condition expression evaluates to true.

Parameters:
primaryKey primary key of the item to be updated
updateExpression the update expression that specifies the attributes to be updated.
conditionExpression the condition expression that specifies the condition that needs to be evaluated to true
nameMap the map containing the mapping between attribute names used in update and condition expression and the actual name of the attributes
valueMap the map containing the mapping between the attribute value used in update and condition expression and the actual value of the attribute
    public UpdateItemOutcome updateItem(PrimaryKey primaryKey,
            String updateExpressionString conditionExpression,
            Map<StringStringnameMapMap<StringObjectvalueMap);
    
    
Updates an item with the specified hash key using the given update expression provided the condition expression evaluates to true.
    public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
            String updateExpressionString conditionExpression,
            Map<StringStringnameMapMap<StringObjectvalueMap);
    
    
Updates an item with the specified hash key and range key using the given update expression provided the condition expression evaluates to true.
    public UpdateItemOutcome updateItem(String hashKeyNameObject hashKeyValue,
            String rangeKeyNameObject rangeKeyValue,
            String updateExpressionString conditionExpression,
            Map<StringStringnameMapMap<StringObjectvalueMap);

    
Performs an update on an item in the table by specifying all the details.

Parameters:
updateItemSpec the update specification for the item to be updated.
    public UpdateItemOutcome updateItem(UpdateItemSpec updateItemSpec);
New to GrepCode? Check out our FAQ X