Interface UpdateItemApi
- All Known Implementing Classes:
Table
public interface UpdateItemApi
A Table-centric UpdateItem API.
-
Method Summary
Modifier and TypeMethodDescriptionupdateItem
(PrimaryKey primaryKey, AttributeUpdate... attributeUpdates) Updates an item with the attributes specified.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.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.updateItem
(PrimaryKey primaryKey, Collection<Expected> expected, AttributeUpdate... attributeUpdates) Updates an item with the attributes specified.updateItem
(UpdateItemSpec updateItemSpec) Performs an update on an item in the table by specifying all the details.updateItem
(String hashKeyName, Object hashKeyValue, AttributeUpdate... attributeUpdates) updateItem
(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, AttributeUpdate... attributeUpdates) 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.updateItem
(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, Map<String, String> nameMap, Map<String, Object> valueMap) 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.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.updateItem
(String hashKeyName, Object hashKeyValue, String updateExpression, Map<String, String> nameMap, Map<String, Object> valueMap) updateItem
(String hashKeyName, Object hashKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates) Updates an item with the specified hash-only key and attributes.
-
Method Details
-
updateItem
Updates an item with the attributes specified.- Parameters:
primaryKey
- primary key of the item to be updatedattributeUpdates
- attributes to be updated
-
updateItem
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, AttributeUpdate... attributeUpdates) -
updateItem
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, AttributeUpdate... attributeUpdates) -
updateItem
UpdateItemOutcome updateItem(PrimaryKey primaryKey, Collection<Expected> expected, AttributeUpdate... attributeUpdates) Updates an item with the attributes specified.- Parameters:
primaryKey
- primary key of the item to be updatedexpected
- the condition to match for the update to succeed.attributeUpdates
- attributes to be updated
-
updateItem
UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates) Updates an item with the specified hash-only key and attributes. -
updateItem
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. -
updateItem
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.- Parameters:
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 attribute
-
updateItem
-
updateItem
-
updateItem
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.- Parameters:
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 attribute
-
updateItem
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. -
updateItem
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. -
updateItem
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.
-