/** * Return a ExpressionList specifying propertyName contains value. * * @param expressionList the ExpressionList to add contains expression * @param propertyName the property name of entity bean. * @param value contains value, like %value%. * @param <T> the type of entity. * @return a ExpressionList specifying propertyName contains value. */ public static <T> ExpressionList<T> containsIfNoneBlank(ExpressionList<T> expressionList, String propertyName, String value) { Assert.notNull(expressionList, "expressionList must not null"); Assert.hasText(propertyName, "propertyName must not blank"); if (StringUtils.hasText(value)) { return expressionList.contains(propertyName, value); } return expressionList; }
/** * Return a ExpressionList specifying propertyName contains value. * * @param expressionList the ExpressionList to add contains expression * @param propertyName the property name of entity bean. * @param value contains value, like %value%. * @param <T> the type of entity. * @return a ExpressionList specifying propertyName contains value. */ public static <T> ExpressionList<T> containsIfNoneBlank(ExpressionList<T> expressionList, String propertyName, String value) { Assert.notNull(expressionList, "expressionList must not null"); Assert.hasText(propertyName, "propertyName must not blank"); if (StringUtils.hasText(value)) { return expressionList.contains(propertyName, value); } return expressionList; }
/** * Contains - uses a like with '%' wildcard added to the beginning and end. * * @param value the equal to bind value * @return the root query bean instance */ public R contains(String value) { expr().contains(_name, value); return _root; }
/** * Contains - uses a like with '%' wildcard added to the beginning and end. * * @param value the equal to bind value * @return the root query bean instance */ public R contains(String value) { expr().contains(_name, value); return _root; }
exp = junction.contains(propertyName, value); } else { exp = exp.contains(propertyName, value);
exp = junction.contains(propertyName, value); } else { exp = exp.contains(propertyName, value);