DslExpressions
Static factory methods for various types of Expression s (in particular, BooleanOperation s and Predicate s).
API
DslExpressions.java
class DslExpressions {
// Pattern to recognize #wildcardToCaseInsensitiveRegex conversion
public final static Pattern REGEX_PATTERN;
BooleanOperation startsWith(T argument, Path<T> path) (1)
BooleanOperation eqOrNull(Path<T> path, T argument) (2)
BooleanExpression searchAndReplace(StringPath stringPath, String searchPhrase, CaseSensitivity caseSensitivity)
BooleanExpression search(StringPath stringPath, String searchPhrase, CaseSensitivity caseSensitivity)
Expression<T> constant(T argument)
Predicate and(List<? extends Predicate> predicates)
Predicate and(Predicate... predicates)
Predicate or(List<? extends Predicate> predicates)
Predicate or(Predicate... predicates)
}
1 | startsWith(T, Path)
Creates BooleanOperation where the arguments use the operator 'startsWith'. Equivalent to SQL clause '.startsWith()'. This has a different outcome compared to the '.startsWith()' |
2 | eqOrNull(Path, T)
Creates BooleanOperation where the arguments is checked for null. Equivalent with SQL clause '=' or 'IS NULL'. |