public class Expected
extends java.lang.Object
Typical usages:
new Expected("strAttr").eq("attrValue");
new Expected("intAttr").gt(42);
...
See http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/ API_ExpectedAttributeValue.html.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute |
private ComparisonOperator |
op |
private java.lang.Object[] |
values |
Constructor and Description |
---|
Expected(java.lang.String attrName) |
Modifier and Type | Method and Description |
---|---|
private Expected |
_withComparisonOperator(ComparisonOperator op) |
private Expected |
_withValues(java.lang.Object... values) |
Expected |
beginsWith(java.lang.String val)
Creates and returns a condition of the range key with a value that begins
with the given value.
|
Expected |
between(java.lang.Object low,
java.lang.Object hi)
Creates and returns a condition of the range key that has a value between
the given values.
|
Expected |
contains(java.lang.Object val) |
Expected |
eq(java.lang.Object val)
Creates and returns a condition of the range key being equal to the given
value.
|
Expected |
exists()
Expects the attribute be an existing attribute.
|
Expected |
ge(java.lang.Object val)
Creates and returns a condition of the range key being greater than or
equal to the given value.
|
java.lang.String |
getAttribute()
Returns the attribute.
|
ComparisonOperator |
getComparisonOperator() |
java.lang.Object[] |
getValues() |
Expected |
gt(java.lang.Object val)
Creates and returns a condition of the range key being greater than the
given value.
|
Expected |
in(java.lang.Object... values) |
Expected |
le(java.lang.Object val)
Creates and returns a condition of the range key being less than or equal
to the given value.
|
Expected |
lt(java.lang.Object val)
Creates and returns a condition of the range key being less than the
given value.
|
Expected |
ne(java.lang.Object val) |
Expected |
notContains(java.lang.Object val) |
Expected |
notExist()
Expects the attribute be non-existing.
|
private final java.lang.String attribute
private ComparisonOperator op
private java.lang.Object[] values
public java.lang.String getAttribute()
public ComparisonOperator getComparisonOperator()
public java.lang.Object[] getValues()
private Expected _withValues(java.lang.Object... values)
private Expected _withComparisonOperator(ComparisonOperator op)
public Expected eq(java.lang.Object val)
public Expected ne(java.lang.Object val)
public Expected exists()
public Expected notExist()
public Expected contains(java.lang.Object val)
public Expected notContains(java.lang.Object val)
public Expected beginsWith(java.lang.String val)
public Expected in(java.lang.Object... values)
public Expected between(java.lang.Object low, java.lang.Object hi)
public Expected ge(java.lang.Object val)
public Expected gt(java.lang.Object val)
public Expected le(java.lang.Object val)
public Expected lt(java.lang.Object val)