com.amazonaws.services.dynamodbv2.datamodeling
Class DynamoDBSaveExpression

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBSaveExpression

Deprecated. These classes have been deprecated, please use the classes in the com.amazonaws.mobileconnectors namespace.

public class DynamoDBSaveExpression
extends java.lang.Object

Enables adding options to a save operation. For example, you may want to save only if an attribute has a particular value.

See Also:
DynamoDBMapper.save(Object, DynamoDBSaveExpression)

Constructor Summary
DynamoDBSaveExpression()
          Deprecated.  
 
Method Summary
 java.lang.String getConditionalOperator()
          Deprecated. Returns the logical operator on the expected value conditions of this save operation.
 java.util.Map<java.lang.String,ExpectedAttributeValue> getExpected()
          Deprecated. Gets the map of attribute names to expected attribute values to check on save.
 void setConditionalOperator(ConditionalOperator conditionalOperator)
          Deprecated. Sets the logical operator on the expected value conditions of this save operation.
 void setConditionalOperator(java.lang.String conditionalOperator)
          Deprecated. Sets the logical operator on the expected value conditions of this save operation.
 void setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
          Deprecated. Sets the expected condition to the map of attribute names to expected attribute values given.
 DynamoDBSaveExpression withConditionalOperator(ConditionalOperator conditionalOperator)
          Deprecated. Sets the logical operator on the expected value conditions of this save operation and returns a pointer to this object for method-chaining.
 DynamoDBSaveExpression withConditionalOperator(java.lang.String conditionalOperator)
          Deprecated. Sets the logical operator on the expected value conditions of this save operation and returns a pointer to this object for method-chaining.
 DynamoDBSaveExpression withExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
          Deprecated. Sets the expected condition to the map of attribute names to expected attribute values given and returns a pointer to this object for method-chaining.
 DynamoDBSaveExpression withExpectedEntry(java.lang.String attributeName, ExpectedAttributeValue expected)
          Deprecated. Adds one entry to the expected conditions and returns a pointer to this object for method-chaining.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamoDBSaveExpression

public DynamoDBSaveExpression()
Deprecated. 
Method Detail

getExpected

public java.util.Map<java.lang.String,ExpectedAttributeValue> getExpected()
Deprecated. 
Gets the map of attribute names to expected attribute values to check on save.

Returns:
The map of attribute names to expected attribute value conditions to check on save

setExpected

public void setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
Deprecated. 
Sets the expected condition to the map of attribute names to expected attribute values given.

Parameters:
expectedAttributes - The map of attribute names to expected attribute value conditions to check on save

withExpected

public DynamoDBSaveExpression withExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
Deprecated. 
Sets the expected condition to the map of attribute names to expected attribute values given and returns a pointer to this object for method-chaining.

Parameters:
expectedAttributes - The map of attribute names to expected attribute value conditions to check on save

withExpectedEntry

public DynamoDBSaveExpression withExpectedEntry(java.lang.String attributeName,
                                                ExpectedAttributeValue expected)
Deprecated. 
Adds one entry to the expected conditions and returns a pointer to this object for method-chaining.

Parameters:
attributeName - The name of the attribute.
expected - The expected attribute value.

getConditionalOperator

public java.lang.String getConditionalOperator()
Deprecated. 
Returns the logical operator on the expected value conditions of this save operation.


setConditionalOperator

public void setConditionalOperator(java.lang.String conditionalOperator)
Deprecated. 
Sets the logical operator on the expected value conditions of this save operation.


withConditionalOperator

public DynamoDBSaveExpression withConditionalOperator(java.lang.String conditionalOperator)
Deprecated. 
Sets the logical operator on the expected value conditions of this save operation and returns a pointer to this object for method-chaining.


setConditionalOperator

public void setConditionalOperator(ConditionalOperator conditionalOperator)
Deprecated. 
Sets the logical operator on the expected value conditions of this save operation.


withConditionalOperator

public DynamoDBSaveExpression withConditionalOperator(ConditionalOperator conditionalOperator)
Deprecated. 
Sets the logical operator on the expected value conditions of this save operation and returns a pointer to this object for method-chaining.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.