/** * @return a {@link Criterion} that the field must be greater than the given value */ public Criterion gt(Object value) { return new BinaryCriterion(this, Operator.gt, value); }
/** * @return a {@link Criterion} comparing the field to the given value using the IS NOT operator. */ public Criterion isNot(Object value) { return new BinaryCriterion(this, Operator.isNot, value); }
/** * @return a {@link Criterion} that the any column matches the full-text query expression. This is only useful for * queries on virtual tables using fts3 or fts4. * @see <a href="http://www.sqlite.org/fts3.html#section_3">http://www.sqlite.org/fts3.html#section_3</a> */ public Criterion match(String value) { return new BinaryCriterion(anyColumn, Operator.match, value); }
/** * @return a {@link Criterion} that the property matches the full-text query expression. This is only useful for * queries on virtual tables using fts3 or fts4. * @see <a href="http://www.sqlite.org/fts3.html#section_3">http://www.sqlite.org/fts3.html#section_3</a> */ public Criterion match(String value) { return new BinaryCriterion(this, Operator.match, value); } }
/** * @return a {@link Criterion} that the field must be less than the given value */ public Criterion lt(Object value) { return new BinaryCriterion(this, Operator.lt, value); }
/** * @return a {@link Criterion} comparing the field to the given value using the IS operator. */ public Criterion is(Object value) { return new BinaryCriterion(this, Operator.is, value); }
/** * @return a {@link Criterion} that the field must be greater than or equal to the given value */ public Criterion gte(Object value) { return new BinaryCriterion(this, Operator.gte, value); }
/** * @return a {@link Criterion} that the field must be less than or equal to the given value */ public Criterion lte(Object value) { return new BinaryCriterion(this, Operator.lte, value); }
/** * @param value the pattern to compare against * @return a {@link Criterion} that the field matches the given pattern */ public Criterion glob(Object value) { return new BinaryCriterion(this, Operator.glob, value); }
/** * @param value the pattern to compare against * @return a {@link Criterion} that the field does not match the given pattern */ public Criterion notGlob(Object value) { return new BinaryCriterion(this, Operator.notGlob, value); }
protected BinaryCriterion constructNegatedCriterion(Operator negatedOperator) { return new BinaryCriterion(field, negatedOperator, value); } }
/** * @return a {@link Criterion} that the field must not be equal to the given value */ public Criterion neq(Object value) { if (value == null) { return isNotNull(); } return new BinaryCriterion(this, Operator.neq, value); }
/** * @return a {@link Criterion} that the field must be equal to the given value */ public Criterion eq(Object value) { if (value == null) { return isNull(); } return new BinaryCriterion(this, Operator.eq, value); }
/** * @return a {@link Criterion} that the field's value is in the result of the {@link Query}. If the query is null, * this is equivalent to 'IN ()', which will always be false. */ public Criterion in(Query query) { if (query == null) { return in((Collection<?>) null); } return new BinaryCriterion(this, Operator.in, query); }
/** * @return a {@link Criterion} that the field's value is not in the result of the {@link Query}. If the query is * null, this is equivalent to 'NOT IN ()', which will always be true. */ public Criterion notIn(Query query) { if (query == null) { return notIn((Collection<?>) null); } return new BinaryCriterion(this, Operator.notIn, query); }
/** * @return a {@link Criterion} that the field must be less than the given value */ public Criterion lt(Object value) { return new BinaryCriterion(this, Operator.lt, value); }
/** * @return a {@link Criterion} comparing the field to the given value using the IS NOT operator. */ public Criterion isNot(Object value) { return new BinaryCriterion(this, Operator.isNot, value); }
/** * @param value the pattern to compare against * @return a {@link Criterion} that the field does not match the given pattern */ public Criterion notGlob(Object value) { return new BinaryCriterion(this, Operator.notGlob, value); }
/** * @return a {@link Criterion} that the property matches the full-text query expression. This is only useful for * queries on virtual tables using fts3 or fts4. * @see <a href="http://www.sqlite.org/fts3.html#section_3">http://www.sqlite.org/fts3.html#section_3</a> */ public Criterion match(String value) { return new BinaryCriterion(this, Operator.match, value); } }
/** * @return a {@link Criterion} that the field's value is not in the result of the {@link Query}. If the query is * null, this is equivalent to 'NOT IN ()', which will always be true. */ public Criterion notIn(Query query) { if (query == null) { return notIn((Collection<?>) null); } return new BinaryCriterion(this, Operator.notIn, query); }