com.amazonaws.services.dynamodb.model
Class Condition

java.lang.Object
  extended by com.amazonaws.services.dynamodb.model.Condition

public class Condition
extends Object

Condition


Constructor Summary
Condition()
          Default constructor for a new Condition object.
 
Method Summary
 boolean equals(Object obj)
           
 List<AttributeValue> getAttributeValueList()
          A list of attribute values to be used with a comparison operator for a scan or query operation.
 String getComparisonOperator()
          A comparison operator is an enumeration of several operations: EQ for equal. NE for not equal. IN checks for exact matches. LE for less than or equal to. LT for less than. GE for greater than or equal to. GT for greater than. BETWEEN for between. NOT_NULL for exists. NULL for not exists. CONTAINS for substring or value in a set. NOT_CONTAINS for absence of a substring or absence of a value in a set. BEGINS_WITH for a substring prefix.
 int hashCode()
           
 void setAttributeValueList(Collection<AttributeValue> attributeValueList)
          A list of attribute values to be used with a comparison operator for a scan or query operation.
 void setComparisonOperator(ComparisonOperator comparisonOperator)
          A comparison operator is an enumeration of several operations: EQ for equal. NE for not equal. IN checks for exact matches. LE for less than or equal to. LT for less than. GE for greater than or equal to. GT for greater than. BETWEEN for between. NOT_NULL for exists. NULL for not exists. CONTAINS for substring or value in a set. NOT_CONTAINS for absence of a substring or absence of a value in a set. BEGINS_WITH for a substring prefix.
 void setComparisonOperator(String comparisonOperator)
          A comparison operator is an enumeration of several operations: EQ for equal. NE for not equal. IN checks for exact matches. LE for less than or equal to. LT for less than. GE for greater than or equal to. GT for greater than. BETWEEN for between. NOT_NULL for exists. NULL for not exists. CONTAINS for substring or value in a set. NOT_CONTAINS for absence of a substring or absence of a value in a set. BEGINS_WITH for a substring prefix.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Condition withAttributeValueList(AttributeValue... attributeValueList)
          A list of attribute values to be used with a comparison operator for a scan or query operation.
 Condition withAttributeValueList(Collection<AttributeValue> attributeValueList)
          A list of attribute values to be used with a comparison operator for a scan or query operation.
 Condition withComparisonOperator(ComparisonOperator comparisonOperator)
          A comparison operator is an enumeration of several operations: EQ for equal. NE for not equal. IN checks for exact matches. LE for less than or equal to. LT for less than. GE for greater than or equal to. GT for greater than. BETWEEN for between. NOT_NULL for exists. NULL for not exists. CONTAINS for substring or value in a set. NOT_CONTAINS for absence of a substring or absence of a value in a set. BEGINS_WITH for a substring prefix.
 Condition withComparisonOperator(String comparisonOperator)
          A comparison operator is an enumeration of several operations: EQ for equal. NE for not equal. IN checks for exact matches. LE for less than or equal to. LT for less than. GE for greater than or equal to. GT for greater than. BETWEEN for between. NOT_NULL for exists. NULL for not exists. CONTAINS for substring or value in a set. NOT_CONTAINS for absence of a substring or absence of a value in a set. BEGINS_WITH for a substring prefix.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()
Default constructor for a new Condition object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getAttributeValueList

public List<AttributeValue> getAttributeValueList()
A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

Returns:
A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

setAttributeValueList

public void setAttributeValueList(Collection<AttributeValue> attributeValueList)
A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

Parameters:
attributeValueList - A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

withAttributeValueList

public Condition withAttributeValueList(AttributeValue... attributeValueList)
A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributeValueList - A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttributeValueList

public Condition withAttributeValueList(Collection<AttributeValue> attributeValueList)
A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributeValueList - A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.
Returns:
A reference to this updated object so that method calls can be chained together.

getComparisonOperator

public String getComparisonOperator()
A comparison operator is an enumeration of several operations:

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Constraints:
Allowed Values: EQ, NE, IN, LE, LT, GE, GT, BETWEEN, NOT_NULL, NULL, CONTAINS, NOT_CONTAINS, BEGINS_WITH

Returns:
A comparison operator is an enumeration of several operations:
  • EQ for equal.
  • NE for not equal.
  • IN checks for exact matches.
  • LE for less than or equal to.
  • LT for less than.
  • GE for greater than or equal to.
  • GT for greater than.
  • BETWEEN for between.
  • NOT_NULL for exists.
  • NULL for not exists.
  • CONTAINS for substring or value in a set.
  • NOT_CONTAINS for absence of a substring or absence of a value in a set.
  • BEGINS_WITH for a substring prefix.

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

See Also:
ComparisonOperator

setComparisonOperator

public void setComparisonOperator(String comparisonOperator)
A comparison operator is an enumeration of several operations:

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Constraints:
Allowed Values: EQ, NE, IN, LE, LT, GE, GT, BETWEEN, NOT_NULL, NULL, CONTAINS, NOT_CONTAINS, BEGINS_WITH

Parameters:
comparisonOperator - A comparison operator is an enumeration of several operations:
  • EQ for equal.
  • NE for not equal.
  • IN checks for exact matches.
  • LE for less than or equal to.
  • LT for less than.
  • GE for greater than or equal to.
  • GT for greater than.
  • BETWEEN for between.
  • NOT_NULL for exists.
  • NULL for not exists.
  • CONTAINS for substring or value in a set.
  • NOT_CONTAINS for absence of a substring or absence of a value in a set.
  • BEGINS_WITH for a substring prefix.

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

See Also:
ComparisonOperator

withComparisonOperator

public Condition withComparisonOperator(String comparisonOperator)
A comparison operator is an enumeration of several operations:

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: EQ, NE, IN, LE, LT, GE, GT, BETWEEN, NOT_NULL, NULL, CONTAINS, NOT_CONTAINS, BEGINS_WITH

Parameters:
comparisonOperator - A comparison operator is an enumeration of several operations:
  • EQ for equal.
  • NE for not equal.
  • IN checks for exact matches.
  • LE for less than or equal to.
  • LT for less than.
  • GE for greater than or equal to.
  • GT for greater than.
  • BETWEEN for between.
  • NOT_NULL for exists.
  • NULL for not exists.
  • CONTAINS for substring or value in a set.
  • NOT_CONTAINS for absence of a substring or absence of a value in a set.
  • BEGINS_WITH for a substring prefix.

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ComparisonOperator

setComparisonOperator

public void setComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator is an enumeration of several operations:

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Constraints:
Allowed Values: EQ, NE, IN, LE, LT, GE, GT, BETWEEN, NOT_NULL, NULL, CONTAINS, NOT_CONTAINS, BEGINS_WITH

Parameters:
comparisonOperator - A comparison operator is an enumeration of several operations:
  • EQ for equal.
  • NE for not equal.
  • IN checks for exact matches.
  • LE for less than or equal to.
  • LT for less than.
  • GE for greater than or equal to.
  • GT for greater than.
  • BETWEEN for between.
  • NOT_NULL for exists.
  • NULL for not exists.
  • CONTAINS for substring or value in a set.
  • NOT_CONTAINS for absence of a substring or absence of a value in a set.
  • BEGINS_WITH for a substring prefix.

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

See Also:
ComparisonOperator

withComparisonOperator

public Condition withComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator is an enumeration of several operations:

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: EQ, NE, IN, LE, LT, GE, GT, BETWEEN, NOT_NULL, NULL, CONTAINS, NOT_CONTAINS, BEGINS_WITH

Parameters:
comparisonOperator - A comparison operator is an enumeration of several operations:
  • EQ for equal.
  • NE for not equal.
  • IN checks for exact matches.
  • LE for less than or equal to.
  • LT for less than.
  • GE for greater than or equal to.
  • GT for greater than.
  • BETWEEN for between.
  • NOT_NULL for exists.
  • NULL for not exists.
  • CONTAINS for substring or value in a set.
  • NOT_CONTAINS for absence of a substring or absence of a value in a set.
  • BEGINS_WITH for a substring prefix.

Scan operations support all available comparison operators.

Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ComparisonOperator

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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