public class UpdateItemImpl extends Object implements UpdateItemApi
UpdateItemApi.| Constructor and Description |
|---|
UpdateItemImpl(AmazonDynamoDB client,
Table table) |
| 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 spec)
Performs an update on an item in the table by specifying all the details.
|
public UpdateItemImpl(AmazonDynamoDB client, Table table)
public UpdateItemOutcome updateItem(PrimaryKey primaryKey, AttributeUpdate... attributeUpdates)
UpdateItemApiupdateItem in interface UpdateItemApiprimaryKey - primary key of the item to be updatedattributeUpdates - attributes to be updatedpublic UpdateItemOutcome updateItem(PrimaryKey primaryKey, Collection<Expected> expected, AttributeUpdate... attributeUpdates)
UpdateItemApiupdateItem in interface UpdateItemApiprimaryKey - primary key of the item to be updatedexpected - the condition to match for the update to succeed.attributeUpdates - attributes to be updatedpublic UpdateItemOutcome updateItem(PrimaryKey primaryKey, String updateExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemApiupdateItem in interface UpdateItemApiprimaryKey - 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
attributepublic UpdateItemOutcome updateItem(PrimaryKey primaryKey, String updateExpression, String conditionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemApiupdateItem in interface UpdateItemApiprimaryKey - 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 attributepublic UpdateItemOutcome updateItem(UpdateItemSpec spec)
UpdateItemApiupdateItem in interface UpdateItemApispec - the update specification for the item to be updated.public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, AttributeUpdate... attributeUpdates)
updateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, AttributeUpdate... attributeUpdates)
updateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates)
UpdateItemApiupdateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates)
UpdateItemApiupdateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String updateExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
updateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
updateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String updateExpression, String conditionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemApiupdateItem in interface UpdateItemApipublic UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, String conditionExpression, Map<String,String> nameMap, Map<String,Object> valueMap)
UpdateItemApiupdateItem in interface UpdateItemApi