@ThreadSafe public interface UpdateItemApi
Modifier and Type | Method and Description |
---|---|
UpdateItemOutcome |
updateItem(PrimaryKey primaryKey,
AttributeUpdate... attributeUpdates)
Updates an item with the attributes specified.
|
UpdateItemOutcome |
updateItem(PrimaryKey primaryKey,
Collection<Expected> expected,
AttributeUpdate... attributeUpdates)
Updates an item with the attributes specified.
|
UpdateItemOutcome |
updateItem(PrimaryKey primaryKey,
String updateExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Performs an update on an item in the table using the given update
expression string.
|
UpdateItemOutcome |
updateItem(PrimaryKey primaryKey,
String updateExpression,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Updates an item with the specified primary key using the given
update expression provided the condition expression evaluates to true.
|
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
AttributeUpdate... attributeUpdates) |
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
Collection<Expected> expected,
AttributeUpdate... attributeUpdates)
Updates an item with the specified hash-only key and attributes.
|
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
String updateExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
AttributeUpdate... attributeUpdates) |
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
Collection<Expected> expected,
AttributeUpdate... attributeUpdates)
Updates an item with the specified hash key, range key and attributes.
|
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String updateExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String updateExpression,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Updates an item with the specified hash key and range key using the given
update expression provided the condition expression evaluates to true.
|
UpdateItemOutcome |
updateItem(String hashKeyName,
Object hashKeyValue,
String updateExpression,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Updates an item with the specified hash key using the given
update expression provided the condition expression evaluates to true.
|
UpdateItemOutcome |
updateItem(UpdateItemSpec updateItemSpec)
Performs an update on an item in the table by specifying all the details.
|
UpdateItemOutcome updateItem(PrimaryKey primaryKey, AttributeUpdate... attributeUpdates)
primaryKey
- primary key of the item to be updatedattributeUpdates
- attributes to be updatedUpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, AttributeUpdate... attributeUpdates)
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, AttributeUpdate... attributeUpdates)
UpdateItemOutcome updateItem(PrimaryKey primaryKey, Collection<Expected> expected, AttributeUpdate... attributeUpdates)
primaryKey
- primary key of the item to be updatedexpected
- the condition to match for the update to succeed.attributeUpdates
- attributes to be updatedUpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates)
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates)
UpdateItemOutcome updateItem(PrimaryKey primaryKey, String updateExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
primaryKey
- primary key of the item to be updatedupdateExpression
- 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 attributesvalueMap
- the map containing the mapping between the attribute value
used in update expression and the actual value of the
attributeUpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String updateExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemOutcome updateItem(PrimaryKey primaryKey, String updateExpression, String conditionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
primaryKey
- primary key of the item to be updatedupdateExpression
- the update expression that specifies the attributes to be
updated.conditionExpression
- the condition expression that specifies the condition that
needs to be evaluated to truenameMap
- the map containing the mapping between attribute names used in
update and condition expression and the actual name of the
attributesvalueMap
- the map containing the mapping between the attribute value
used in update and condition expression and the actual value
of the attributeUpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String updateExpression, String conditionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, String conditionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemOutcome updateItem(UpdateItemSpec updateItemSpec)
updateItemSpec
- the update specification for the item to be updated.Copyright © 2018. All rights reserved.