Class Expected
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.document.Expected
-
public class Expected extends Object
Represents a condition to be compared with an attribute value.Typical usages:
new Expected("strAttr").eq("attrValue");new Expected("intAttr").gt(42);...
See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ API_ExpectedAttributeValue.html.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpectedbeginsWith(String val)Creates and returns a condition of the range key with a value that begins with the given value.Expectedbetween(Object low, Object hi)Creates and returns a condition of the range key that has a value between the given values.Expectedcontains(Object val)Expectedeq(Object val)Creates and returns a condition of the range key being equal to the given value.Expectedexists()Expects the attribute be an existing attribute.Expectedge(Object val)Creates and returns a condition of the range key being greater than or equal to the given value.StringgetAttribute()Returns the attribute.ComparisonOperatorgetComparisonOperator()Object[]getValues()Expectedgt(Object val)Creates and returns a condition of the range key being greater than the given value.Expectedin(Object... values)Expectedle(Object val)Creates and returns a condition of the range key being less than or equal to the given value.Expectedlt(Object val)Creates and returns a condition of the range key being less than the given value.Expectedne(Object val)ExpectednotContains(Object val)ExpectednotExist()Expects the attribute be non-existing.
-
-
-
Constructor Detail
-
Expected
public Expected(String attrName)
-
-
Method Detail
-
getAttribute
public String getAttribute()
Returns the attribute.
-
getComparisonOperator
public ComparisonOperator getComparisonOperator()
-
getValues
public Object[] getValues()
-
eq
public Expected eq(Object val)
Creates and returns a condition of the range key being equal to the given value.
-
exists
public Expected exists()
Expects the attribute be an existing attribute.
-
notExist
public Expected notExist()
Expects the attribute be non-existing.
-
beginsWith
public Expected beginsWith(String val)
Creates and returns a condition of the range key with a value that begins with the given value.
-
between
public Expected between(Object low, Object hi)
Creates and returns a condition of the range key that has a value between the given values.
-
ge
public Expected ge(Object val)
Creates and returns a condition of the range key being greater than or equal to the given value.
-
gt
public Expected gt(Object val)
Creates and returns a condition of the range key being greater than the given value.
-
le
public Expected le(Object val)
Creates and returns a condition of the range key being less than or equal to the given value.
-
-