protected void addBetween(String path, String value1, String value2) { peekExprList().between(path, bind(value1), bind(value2)); }
/** * Return a ExpressionList specifying propertyName between start and end. * * @param expressionList the ExpressionList to add contains expression * @param propertyName the property name of entity bean. * @param start start value. * @param end end value. * @param <T> the type of entity. * @return a ExpressionList specifying propertyName between start and end. */ public static <T> ExpressionList<T> betweenIfNotNull(ExpressionList<T> expressionList, String propertyName, Object start, Object end) { Assert.notNull(expressionList, "expressionList must not null"); Assert.hasText(propertyName, "propertyName must not null"); if (start != null && end != null) { return expressionList.between(propertyName, start, end); } return expressionList; }
/** * Return a ExpressionList specifying propertyName between start and end. * * @param expressionList the ExpressionList to add contains expression * @param propertyName the property name of entity bean. * @param start start value. * @param end end value. * @param <T> the type of entity. * @return a ExpressionList specifying propertyName between start and end. */ public static <T> ExpressionList<T> betweenIfNotNull(ExpressionList<T> expressionList, String propertyName, Object start, Object end) { Assert.notNull(expressionList, "expressionList must not null"); Assert.hasText(propertyName, "propertyName must not null"); if (start != null && end != null) { return expressionList.between(propertyName, start, end); } return expressionList; }
/** * Between lower and upper values. * * @param lower the lower bind value * @param upper the upper bind value * @return the root query bean instance */ public final R between(T lower, T upper) { expr().between(_name, lower, upper); return _root; }
/** * Between lower and upper values. * * @param lower the lower bind value * @param upper the upper bind value * @return the root query bean instance */ public R between(int lower, int upper) { expr().between(_name, lower, upper); return _root; } }
protected void addBetween(String path, String value1, String value2) { peekExprList().between(path, bind(value1), bind(value2)); }