/** * Expects the attribute be an existing attribute. */ public Expected exists() { return _withComparisonOperator(ComparisonOperator.NOT_NULL); }
/** * Expects the attribute be non-existing. */ public Expected notExist() { return _withComparisonOperator(ComparisonOperator.NULL); }
/** * Creates and returns a condition of the range key with a value that begins * with the given value. */ public Expected beginsWith(String val) { return _withComparisonOperator(ComparisonOperator.BEGINS_WITH)._withValues(val); }
public Expected in(Object ...values) { if (values == null || values.length == 0) { throw new IllegalArgumentException("values must not be null or empty."); } return _withComparisonOperator(ComparisonOperator.IN)._withValues(values); }
/** * Creates and returns a condition of the range key that has a value between * the given values. */ public Expected between(Object low, Object hi) { return _withComparisonOperator(ComparisonOperator.BETWEEN)._withValues(low, hi); }
/** * Creates and returns a condition of the range key being less than the * given value. */ public Expected lt(Object val) { return _withComparisonOperator(ComparisonOperator.LT)._withValues(val); } }
/** * Creates and returns a condition of the range key being equal to the given * value. */ public Expected eq(Object val) { return _withComparisonOperator(ComparisonOperator.EQ)._withValues(val); }
/** * Creates and returns a condition of the range key being greater than or * equal to the given value. */ public Expected ge(Object val) { return _withComparisonOperator(ComparisonOperator.GE)._withValues(val); }
/** * Creates and returns a condition of the range key being greater than the * given value. */ public Expected gt(Object val) { return _withComparisonOperator(ComparisonOperator.GT)._withValues(val); }
/** * Creates and returns a condition of the range key being less than or equal * to the given value. */ public Expected le(Object val) { return _withComparisonOperator(ComparisonOperator.LE)._withValues(val); }
public Expected notContains(Object val) { return _withComparisonOperator(ComparisonOperator.NOT_CONTAINS)._withValues(val); } /**
public Expected ne(Object val) { return _withComparisonOperator(ComparisonOperator.NE)._withValues(val); }
public Expected contains(Object val) { return _withComparisonOperator(ComparisonOperator.CONTAINS)._withValues(val); }
/** * Expects the attribute be non-existing. */ public Expected notExist() { return _withComparisonOperator(ComparisonOperator.NULL); }
/** * Expects the attribute be an existing attribute. */ public Expected exists() { return _withComparisonOperator(ComparisonOperator.NOT_NULL); }
/** * Creates and returns a condition of the range key being greater than or * equal to the given value. */ public Expected ge(Object val) { return _withComparisonOperator(ComparisonOperator.GE)._withValues(val); }
/** * Creates and returns a condition of the range key with a value that begins * with the given value. */ public Expected beginsWith(String val) { return _withComparisonOperator(ComparisonOperator.BEGINS_WITH)._withValues(val); }
/** * Creates and returns a condition of the range key being equal to the given * value. */ public Expected eq(Object val) { return _withComparisonOperator(ComparisonOperator.EQ)._withValues(val); }
public Expected in(Object ...values) { if (values == null || values.length == 0) { throw new IllegalArgumentException("values must not be null or empty."); } return _withComparisonOperator(ComparisonOperator.IN)._withValues(values); }
/** * Creates and returns a condition of the range key being greater than the * given value. */ public Expected gt(Object val) { return _withComparisonOperator(ComparisonOperator.GT)._withValues(val); }