public interface CriteriaBuilder
Used to construct criteria queries, compound selections, 
 expressions, predicates, orderings.
 
 Note that Predicate is used instead of
 Expression<Boolean> in this API in
 order to work around the fact that Java generics are not
 compatible with varags.
- Since:
- 2.0
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface used to build general case expressions.static interfaceInterface used to build coalesce expressions.static interfaceInterface used to build in predicates.static interfaceInterface used to build simple case expressions.static enumUsed to specify how strings are trimmed.
- 
Method SummaryModifier and TypeMethodDescription<N extends Number>
 Expression<N> abs(Expression<N> x) Create an expression that returns the absolute value of its argument.<Y> Expression<Y> Create an all expression over the subquery results.and(Expression<Boolean> x, Expression<Boolean> y) Create a conjunction of the given boolean expressions.Create a conjunction of the given restriction predicates.Create a conjunction of the given restriction predicates.<Y> Expression<Y> Create an any expression over the subquery results.Create an array-valued selection item.Create an array-valued selection item.asc(Expression<?> expression) Create an ordering by the ascending value of the expression.asc(Expression<?> expression, Nulls nullPrecedence) Create an ordering by the ascending value of the expression.<N extends Number>
 Expression<Double> avg(Expression<N> x) Create an aggregate expression applying the avg operation.<Y extends Comparable<? super Y>>
 Predicatebetween(Expression<? extends Y> v, Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is between the second and third arguments in value.<Y extends Comparable<? super Y>>
 Predicatebetween(Expression<? extends Y> v, Y x, Y y) Create a predicate for testing whether the first argument is between the second and third arguments in value.<N extends Number>
 Expression<N> ceiling(Expression<N> x) Create an expression that returns the ceiling of its argument, that is, the smallest integer greater than or equal to its argument.<T> CriteriaBuilder.Coalesce<T> coalesce()Create a coalesce expression.<Y> Expression<Y> coalesce(Expression<? extends Y> x, Expression<? extends Y> y) Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.<Y> Expression<Y> coalesce(Expression<? extends Y> x, Y y) Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.concat(Expression<String> x, Expression<String> y) Create an expression for string concatenation.concat(Expression<String> x, String y) Create an expression for string concatenation.concat(String x, Expression<String> y) Create an expression for string concatenation.concat(List<Expression<String>> expressions) Create an expression for string concatenation.Create a conjunction (with zero conjuncts).<Y> CompoundSelection<Y> Create a selection item corresponding to a constructor.count(Expression<?> x) Create an aggregate expression applying the count operation.countDistinct(Expression<?> x) Create an aggregate expression applying the count distinct operation.<T> CriteriaDelete<T> createCriteriaDelete(Class<T> targetEntity) Create aCriteriaDeletequery object to perform a bulk delete operation.<T> CriteriaUpdate<T> createCriteriaUpdate(Class<T> targetEntity) Create aCriteriaUpdatequery object to perform a bulk update operation.Create aCriteriaQueryobject.<T> CriteriaQuery<T> createQuery(Class<T> resultClass) Create aCriteriaQueryobject with the given result type.Create aCriteriaQueryobject that returns a tuple of objects as its result.Create expression to return current date.Create expression to return current time.Create expression to return current timestamp.desc(Expression<?> expression) Create an ordering by the descending value of the expression.desc(Expression<?> expression, Nulls nullPrecedence) Create an ordering by the descending value of the expression.<N extends Number>
 Expression<N> diff(Expression<? extends N> x, Expression<? extends N> y) Create an expression that returns the difference between its arguments.<N extends Number>
 Expression<N> diff(Expression<? extends N> x, N y) Create an expression that returns the difference between its arguments.<N extends Number>
 Expression<N> diff(N x, Expression<? extends N> y) Create an expression that returns the difference between its arguments.Create a disjunction (with zero disjuncts).equal(Expression<?> x, Expression<?> y) Create a predicate for testing the arguments for equality.equal(Expression<?> x, Object y) Create a predicate for testing the arguments for equality.<T> CriteriaSelect<T> except(CriteriaSelect<T> left, CriteriaSelect<?> right) Create a query by (setwise) subtraction of the second query from the first query.<T> CriteriaSelect<T> exceptAll(CriteriaSelect<T> left, CriteriaSelect<?> right) Create a query by (setwise) subtraction of the second query from the first query, without elimination of duplicate results.Create a predicate testing the existence of a subquery result.exp(Expression<? extends Number> x) Create an expression that returns the exponential of its argument, that is, Euler's number e raised to the power of its argument.<N,T extends Temporal> 
 Expression<N> extract(TemporalField<N, T> field, Expression<T> temporal) Create an expression that returns the value of a field extracted from a date, time, or datetime.<N extends Number>
 Expression<N> floor(Expression<N> x) Create an expression that returns the floor of its argument, that is, the largest integer smaller than or equal to its argument.<T> Expression<T> function(String name, Class<T> type, Expression<?>... args) Create an expression for the execution of a database function.ge(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is greater than or equal to the second.ge(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is greater than or equal to the second.<Y extends Comparable<? super Y>>
 PredicategreaterThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than the second.<Y extends Comparable<? super Y>>
 PredicategreaterThan(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is greater than the second.<Y extends Comparable<? super Y>>
 PredicategreaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than or equal to the second.<Y extends Comparable<? super Y>>
 PredicategreaterThanOrEqualTo(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is greater than or equal to the second.<X extends Comparable<? super X>>
 Expression<X> greatest(Expression<X> x) Create an aggregate expression for finding the greatest of the values (strings, dates, etc).gt(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is greater than the second.gt(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is greater than the second.<T> CriteriaBuilder.In<T> in(Expression<? extends T> expression) Create predicate to test whether given expression is contained in a list of values.<T> CriteriaSelect<T> intersect(CriteriaSelect<? super T> left, CriteriaSelect<? super T> right) Create a query which is the intersection of the given queries.<T> CriteriaSelect<T> intersectAll(CriteriaSelect<? super T> left, CriteriaSelect<? super T> right) Create a query which is the intersection of the given queries, without elimination of duplicate results.<C extends Collection<?>>
 PredicateisEmpty(Expression<C> collection) Create a predicate that tests whether a collection is empty.isFalse(Expression<Boolean> x) Create a predicate testing for a false value.<E,C extends Collection<E>> 
 PredicateisMember(E elem, Expression<C> collection) Create a predicate that tests whether an element is a member of a collection.<E,C extends Collection<E>> 
 PredicateisMember(Expression<E> elem, Expression<C> collection) Create a predicate that tests whether an element is a member of a collection.<C extends Collection<?>>
 PredicateisNotEmpty(Expression<C> collection) Create a predicate that tests whether a collection is not empty.<E,C extends Collection<E>> 
 PredicateisNotMember(E elem, Expression<C> collection) Create a predicate that tests whether an element is not a member of a collection.<E,C extends Collection<E>> 
 PredicateisNotMember(Expression<E> elem, Expression<C> collection) Create a predicate that tests whether an element is not a member of a collection.isNotNull(Expression<?> x) Create a predicate to test whether the expression is not null.isNull(Expression<?> x) Create a predicate to test whether the expression is null.isTrue(Expression<Boolean> x) Create a predicate testing for a true value.<K,M extends Map<K, ?>> 
 Expression<Set<K>> keys(M map) Create an expression that returns the keys of a map.le(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is less than or equal to the second.le(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is less than or equal to the second.<X extends Comparable<? super X>>
 Expression<X> least(Expression<X> x) Create an aggregate expression for finding the least of the values (strings, dates, etc).left(Expression<String> x, int len) Create an expression for the leftmost substring of a string,left(Expression<String> x, Expression<Integer> len) Create an expression for the leftmost substring of a string,length(Expression<String> x) Create expression to return length of a string.<Y extends Comparable<? super Y>>
 PredicatelessThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than the second.<Y extends Comparable<? super Y>>
 PredicatelessThan(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is less than the second.<Y extends Comparable<? super Y>>
 PredicatelessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than or equal to the second.<Y extends Comparable<? super Y>>
 PredicatelessThanOrEqualTo(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is less than or equal to the second.like(Expression<String> x, Expression<String> pattern) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, Expression<String> pattern, char escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, String pattern) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, String pattern, char escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.like(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.<T> Expression<T> literal(T value) Create an expression for a literal.ln(Expression<? extends Number> x) Create an expression that returns the natural logarithm of its argument.Create expression to return current local date.Create expression to return current local datetime.Create expression to return current local time.locate(Expression<String> x, Expression<String> pattern) Create expression to locate the position of one string within another, returning position of first character if found.locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from) Create expression to locate the position of one string within another, returning position of first character if found.locate(Expression<String> x, String pattern) Create expression to locate the position of one string within another, returning position of first character if found.locate(Expression<String> x, String pattern, int from) Create expression to locate the position of one string within another, returning position of first character if found.lower(Expression<String> x) Create expression for converting a string to lowercase.lt(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is less than the second.lt(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is less than the second.<N extends Number>
 Expression<N> max(Expression<N> x) Create an aggregate expression applying the numerical max operation.<N extends Number>
 Expression<N> min(Expression<N> x) Create an aggregate expression applying the numerical min operation.mod(Expression<Integer> x, Expression<Integer> y) Create an expression that returns the modulus (remainder under integer division) of its arguments.mod(Expression<Integer> x, Integer y) Create an expression that returns the modulus (remainder under integer division) of its arguments.mod(Integer x, Expression<Integer> y) Create an expression that returns the modulus (remainder under integer division) of its arguments.<N extends Number>
 Expression<N> neg(Expression<N> x) Create an expression that returns the arithmetic negation of its argument.not(Expression<Boolean> restriction) Create a negation of the given restriction.notEqual(Expression<?> x, Expression<?> y) Create a predicate for testing the arguments for inequality.notEqual(Expression<?> x, Object y) Create a predicate for testing the arguments for inequality.notLike(Expression<String> x, Expression<String> pattern) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, Expression<String> pattern, char escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, String pattern) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, String pattern, char escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.notLike(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.<Y> Expression<Y> nullif(Expression<Y> x, Expression<?> y) Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.<Y> Expression<Y> nullif(Expression<Y> x, Y y) Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.<T> Expression<T> nullLiteral(Class<T> resultClass) Create an expression for a null literal with the given type.or(Expression<Boolean> x, Expression<Boolean> y) Create a disjunction of the given boolean expressions.Create a disjunction of the given restriction predicates.Create a disjunction of the given restriction predicates.<T> ParameterExpression<T> Create a parameter expression.<T> ParameterExpression<T> Create a parameter expression with the given name.power(Expression<? extends Number> x, Expression<? extends Number> y) Create an expression that returns the first argument raised to the power of its second argument.power(Expression<? extends Number> x, Number y) Create an expression that returns the first argument raised to the power of its second argument.<N extends Number>
 Expression<N> prod(Expression<? extends N> x, Expression<? extends N> y) Create an expression that returns the product of its arguments.<N extends Number>
 Expression<N> prod(Expression<? extends N> x, N y) Create an expression that returns the product of its arguments.<N extends Number>
 Expression<N> prod(N x, Expression<? extends N> y) Create an expression that returns the product of its arguments.quot(Expression<? extends Number> x, Expression<? extends Number> y) Create an expression that returns the quotient of its arguments.quot(Expression<? extends Number> x, Number y) Create an expression that returns the quotient of its arguments.quot(Number x, Expression<? extends Number> y) Create an expression that returns the quotient of its arguments.replace(Expression<String> x, Expression<String> substring, Expression<String> replacement) Create an expression replacing every occurrence of a substring within a string.replace(Expression<String> x, Expression<String> substring, String replacement) Create an expression replacing every occurrence of a substring within a string.replace(Expression<String> x, String substring, Expression<String> replacement) Create an expression replacing every occurrence of a substring within a string.replace(Expression<String> x, String substring, String replacement) Create an expression replacing every occurrence of a substring within a string.right(Expression<String> x, int len) Create an expression for the rightmost substring of a string,right(Expression<String> x, Expression<Integer> len) Create an expression for the rightmost substring of a string,<T extends Number>
 Expression<T> round(Expression<T> x, Integer n) Create an expression that returns the first argument rounded to the number of decimal places given by the second argument.<R> CriteriaBuilder.Case<R> Create a general case expression.<C,R> CriteriaBuilder.SimpleCase <C, R> selectCase(Expression<? extends C> expression) Create a simple case expression.sign(Expression<? extends Number> x) Create an expression that returns the sign of its argument, that is,1if its argument is positive,-1if its argument is negative, or0if its argument is exactly zero.<C extends Collection<?>>
 Expression<Integer> size(C collection) Create an expression that tests the size of a collection.<C extends Collection<?>>
 Expression<Integer> size(Expression<C> collection) Create an expression that tests the size of a collection.<Y> Expression<Y> Create a some expression over the subquery results.sqrt(Expression<? extends Number> x) Create an expression that returns the square root of its argument.substring(Expression<String> x, int from) Create an expression for substring extraction.substring(Expression<String> x, int from, int len) Create an expression for substring extraction.substring(Expression<String> x, Expression<Integer> from) Create an expression for substring extraction.substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len) Create an expression for substring extraction.<N extends Number>
 Expression<N> sum(Expression<? extends N> x, Expression<? extends N> y) Create an expression that returns the sum of its arguments.<N extends Number>
 Expression<N> sum(Expression<? extends N> x, N y) Create an expression that returns the sum of its arguments.<N extends Number>
 Expression<N> sum(Expression<N> x) Create an aggregate expression applying the sum operation.<N extends Number>
 Expression<N> sum(N x, Expression<? extends N> y) Create an expression that returns the sum of its arguments.Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.toBigDecimal(Expression<? extends Number> number) Typecast.toBigInteger(Expression<? extends Number> number) Typecast.toDouble(Expression<? extends Number> number) Typecast.toFloat(Expression<? extends Number> number) Typecast.toInteger(Expression<? extends Number> number) Typecast.toLong(Expression<? extends Number> number) Typecast.toString(Expression<Character> character) Typecast.<X,T, E extends T> 
 CollectionJoin<X, E> treat(CollectionJoin<X, T> join, Class<E> type) Downcast CollectionJoin object to the specified type.<X,T, V extends T> 
 Join<X, V> Downcast Join object to the specified type.<X,T, E extends T> 
 ListJoin<X, E> Downcast ListJoin object to the specified type.<X,K, T, V extends T> 
 MapJoin<X, K, V> Downcast MapJoin object to the specified type.<X,T extends X> 
 Path<T> Downcast Path object to the specified type.<X,T extends X> 
 Root<T> Downcast Root object to the specified type.<X,T, E extends T> 
 SetJoin<X, E> Downcast SetJoin object to the specified type.trim(char t, Expression<String> x) Create expression to trim character from both ends of a string.trim(CriteriaBuilder.Trimspec ts, char t, Expression<String> x) Create expression to trim character from a string.trim(CriteriaBuilder.Trimspec ts, Expression<Character> t, Expression<String> x) Create expression to trim character from a string.trim(CriteriaBuilder.Trimspec ts, Expression<String> x) Create expression to trim blanks from a string.trim(Expression<Character> t, Expression<String> x) Create expression to trim character from both ends of a string.trim(Expression<String> x) Create expression to trim blanks from both ends of a string.Create a tuple-valued selection item.Create a tuple-valued selection item.<T> CriteriaSelect<T> union(CriteriaSelect<? extends T> left, CriteriaSelect<? extends T> right) Create a query which is the union of the given queries.<T> CriteriaSelect<T> unionAll(CriteriaSelect<? extends T> left, CriteriaSelect<? extends T> right) Create a query which is the union of the given queries, without elimination of duplicate results.upper(Expression<String> x) Create expression for converting a string to uppercase.<V,M extends Map<?, V>> 
 Expression<Collection<V>> values(M map) Create an expression that returns the values of a map.
- 
Method Details- 
createQueryCriteriaQuery<Object> createQuery()Create aCriteriaQueryobject.- Returns:
- criteria query object
 
- 
createQueryCreate aCriteriaQueryobject with the given result type.- Parameters:
- resultClass- type of the query result
- Returns:
- criteria query object
 
- 
createTupleQueryCriteriaQuery<Tuple> createTupleQuery()Create aCriteriaQueryobject that returns a tuple of objects as its result.- Returns:
- criteria query object
 
- 
createCriteriaUpdateCreate aCriteriaUpdatequery object to perform a bulk update operation.- Parameters:
- targetEntity- target type for update operation
- Returns:
- the query object
- Since:
- 2.1
 
- 
createCriteriaDeleteCreate aCriteriaDeletequery object to perform a bulk delete operation.- Parameters:
- targetEntity- target type for delete operation
- Returns:
- the query object
- Since:
- 2.1
 
- 
constructCreate a selection item corresponding to a constructor. This method is used to specify a constructor that is applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state after the query is executed.- Parameters:
- resultClass- class whose instance is to be constructed
- selections- arguments to the constructor
- Returns:
- compound selection item
- Throws:
- IllegalArgumentException- if an argument is a tuple- or array-valued selection item
 
- 
tupleCreate a tuple-valued selection item.- Parameters:
- selections- selection items
- Returns:
- tuple-valued compound selection
- Throws:
- IllegalArgumentException- if an argument is a tuple- or array-valued selection item
 
- 
tupleCreate a tuple-valued selection item.- Parameters:
- selections- list of selection items
- Returns:
- tuple-valued compound selection
- Throws:
- IllegalArgumentException- if an argument is a tuple- or array-valued selection item
- Since:
- 3.2
 
- 
arrayCreate an array-valued selection item.- Parameters:
- selections- selection items
- Returns:
- array-valued compound selection
- Throws:
- IllegalArgumentException- if an argument is a tuple- or array-valued selection item
 
- 
arrayCreate an array-valued selection item.- Parameters:
- selections- list of selection items
- Returns:
- array-valued compound selection
- Throws:
- IllegalArgumentException- if an argument is a tuple- or array-valued selection item
- Since:
- 3.2
 
- 
ascCreate an ordering by the ascending value of the expression.- Parameters:
- expression- expression used to define the ordering
- Returns:
- ascending ordering corresponding to the expression
 
- 
descCreate an ordering by the descending value of the expression.- Parameters:
- expression- expression used to define the ordering
- Returns:
- descending ordering corresponding to the expression
 
- 
ascCreate an ordering by the ascending value of the expression.- Parameters:
- expression- expression used to define the ordering
- nullPrecedence- the precedence of null values
- Returns:
- ascending ordering corresponding to the expression
- Since:
- 3.2
 
- 
descCreate an ordering by the descending value of the expression.- Parameters:
- expression- expression used to define the ordering
- nullPrecedence- the precedence of null values
- Returns:
- descending ordering corresponding to the expression
- Since:
- 3.2
 
- 
avgCreate an aggregate expression applying the avg operation.- Parameters:
- x- expression representing input value to avg operation
- Returns:
- avg expression
 
- 
sumCreate an aggregate expression applying the sum operation.- Parameters:
- x- expression representing input value to sum operation
- Returns:
- sum expression
 
- 
sumAsLongCreate an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.- Parameters:
- x- expression representing input value to sum operation
- Returns:
- sum expression
 
- 
sumAsDoubleCreate an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result.- Parameters:
- x- expression representing input value to sum operation
- Returns:
- sum expression
 
- 
maxCreate an aggregate expression applying the numerical max operation.- Parameters:
- x- expression representing input value to max operation
- Returns:
- max expression
 
- 
minCreate an aggregate expression applying the numerical min operation.- Parameters:
- x- expression representing input value to min operation
- Returns:
- min expression
 
- 
greatestCreate an aggregate expression for finding the greatest of the values (strings, dates, etc).- Parameters:
- x- expression representing input value to greatest operation
- Returns:
- greatest expression
 
- 
leastCreate an aggregate expression for finding the least of the values (strings, dates, etc).- Parameters:
- x- expression representing input value to least operation
- Returns:
- least expression
 
- 
countCreate an aggregate expression applying the count operation.- Parameters:
- x- expression representing input value to count operation
- Returns:
- count expression
 
- 
countDistinctCreate an aggregate expression applying the count distinct operation.- Parameters:
- x- expression representing input value to count distinct operation
- Returns:
- count distinct expression
 
- 
existsCreate a predicate testing the existence of a subquery result.- Parameters:
- subquery- subquery whose result is to be tested
- Returns:
- exists predicate
 
- 
allCreate an all expression over the subquery results.- Parameters:
- subquery- subquery
- Returns:
- all expression
 
- 
someCreate a some expression over the subquery results. This expression is equivalent to ananyexpression.- Parameters:
- subquery- subquery
- Returns:
- some expression
 
- 
anyCreate an any expression over the subquery results. This expression is equivalent to asomeexpression.- Parameters:
- subquery- subquery
- Returns:
- any expression
 
- 
andCreate a conjunction of the given boolean expressions.- Parameters:
- x- boolean expression
- y- boolean expression
- Returns:
- and predicate
 
- 
andCreate a conjunction of the given restriction predicates. A conjunction of zero predicates is true.- Parameters:
- restrictions- zero or more restriction predicates
- Returns:
- and predicate
 
- 
andCreate a conjunction of the given restriction predicates. A conjunction of zero predicates is true.- Parameters:
- restrictions- a list of zero or more restriction predicates
- Returns:
- and predicate
- Since:
- 3.2
 
- 
orCreate a disjunction of the given boolean expressions.- Parameters:
- x- boolean expression
- y- boolean expression
- Returns:
- or predicate
 
- 
orCreate a disjunction of the given restriction predicates. A disjunction of zero predicates is false.- Parameters:
- restrictions- zero or more restriction predicates
- Returns:
- or predicate
 
- 
orCreate a disjunction of the given restriction predicates. A disjunction of zero predicates is false.- Parameters:
- restrictions- a list of zero or more restriction predicates
- Returns:
- or predicate
- Since:
- 3.2
 
- 
notCreate a negation of the given restriction.- Parameters:
- restriction- restriction expression
- Returns:
- not predicate
 
- 
conjunctionPredicate conjunction()Create a conjunction (with zero conjuncts). A conjunction with zero conjuncts is true.- Returns:
- and predicate
 
- 
disjunctionPredicate disjunction()Create a disjunction (with zero disjuncts). A disjunction with zero disjuncts is false.- Returns:
- or predicate
 
- 
isTrueCreate a predicate testing for a true value.- Parameters:
- x- expression to be tested
- Returns:
- predicate
 
- 
isFalseCreate a predicate testing for a false value.- Parameters:
- x- expression to be tested
- Returns:
- predicate
 
- 
isNullCreate a predicate to test whether the expression is null.- Parameters:
- x- expression
- Returns:
- is-null predicate
 
- 
isNotNullCreate a predicate to test whether the expression is not null.- Parameters:
- x- expression
- Returns:
- is-not-null predicate
 
- 
equalCreate a predicate for testing the arguments for equality.- Parameters:
- x- expression
- y- expression
- Returns:
- equality predicate
 
- 
equalCreate a predicate for testing the arguments for equality.- Parameters:
- x- expression
- y- object
- Returns:
- equality predicate
 
- 
notEqualCreate a predicate for testing the arguments for inequality.- Parameters:
- x- expression
- y- expression
- Returns:
- inequality predicate
 
- 
notEqualCreate a predicate for testing the arguments for inequality.- Parameters:
- x- expression
- y- object
- Returns:
- inequality predicate
 
- 
greaterThan<Y extends Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than the second.- Parameters:
- x- expression
- y- expression
- Returns:
- greater-than predicate
 
- 
greaterThanCreate a predicate for testing whether the first argument is greater than the second.- Parameters:
- x- expression
- y- value
- Returns:
- greater-than predicate
 
- 
greaterThanOrEqualTo<Y extends Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than or equal to the second.- Parameters:
- x- expression
- y- expression
- Returns:
- greater-than-or-equal predicate
 
- 
greaterThanOrEqualToCreate a predicate for testing whether the first argument is greater than or equal to the second.- Parameters:
- x- expression
- y- value
- Returns:
- greater-than-or-equal predicate
 
- 
lessThan<Y extends Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than the second.- Parameters:
- x- expression
- y- expression
- Returns:
- less-than predicate
 
- 
lessThanCreate a predicate for testing whether the first argument is less than the second.- Parameters:
- x- expression
- y- value
- Returns:
- less-than predicate
 
- 
lessThanOrEqualTo<Y extends Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than or equal to the second.- Parameters:
- x- expression
- y- expression
- Returns:
- less-than-or-equal predicate
 
- 
lessThanOrEqualToCreate a predicate for testing whether the first argument is less than or equal to the second.- Parameters:
- x- expression
- y- value
- Returns:
- less-than-or-equal predicate
 
- 
between<Y extends Comparable<? super Y>> Predicate between(Expression<? extends Y> v, Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is between the second and third arguments in value.- Parameters:
- v- expression
- x- expression
- y- expression
- Returns:
- between predicate
 
- 
betweenCreate a predicate for testing whether the first argument is between the second and third arguments in value.- Parameters:
- v- expression
- x- value
- y- value
- Returns:
- between predicate
 
- 
gtCreate a predicate for testing whether the first argument is greater than the second.- Parameters:
- x- expression
- y- expression
- Returns:
- greater-than predicate
 
- 
gtCreate a predicate for testing whether the first argument is greater than the second.- Parameters:
- x- expression
- y- value
- Returns:
- greater-than predicate
 
- 
geCreate a predicate for testing whether the first argument is greater than or equal to the second.- Parameters:
- x- expression
- y- expression
- Returns:
- greater-than-or-equal predicate
 
- 
geCreate a predicate for testing whether the first argument is greater than or equal to the second.- Parameters:
- x- expression
- y- value
- Returns:
- greater-than-or-equal predicate
 
- 
ltCreate a predicate for testing whether the first argument is less than the second.- Parameters:
- x- expression
- y- expression
- Returns:
- less-than predicate
 
- 
ltCreate a predicate for testing whether the first argument is less than the second.- Parameters:
- x- expression
- y- value
- Returns:
- less-than predicate
 
- 
leCreate a predicate for testing whether the first argument is less than or equal to the second.- Parameters:
- x- expression
- y- expression
- Returns:
- less-than-or-equal predicate
 
- 
leCreate a predicate for testing whether the first argument is less than or equal to the second.- Parameters:
- x- expression
- y- value
- Returns:
- less-than-or-equal predicate
 
- 
signCreate an expression that returns the sign of its argument, that is,1if its argument is positive,-1if its argument is negative, or0if its argument is exactly zero.- Parameters:
- x- expression
- Returns:
- sign
 
- 
negCreate an expression that returns the arithmetic negation of its argument.- Parameters:
- x- expression
- Returns:
- arithmetic negation
 
- 
absCreate an expression that returns the absolute value of its argument.- Parameters:
- x- expression
- Returns:
- absolute value
 
- 
ceilingCreate an expression that returns the ceiling of its argument, that is, the smallest integer greater than or equal to its argument.- Parameters:
- x- expression
- Returns:
- ceiling
 
- 
floorCreate an expression that returns the floor of its argument, that is, the largest integer smaller than or equal to its argument.- Parameters:
- x- expression
- Returns:
- floor
 
- 
sumCreate an expression that returns the sum of its arguments.- Parameters:
- x- expression
- y- expression
- Returns:
- sum
 
- 
sumCreate an expression that returns the sum of its arguments.- Parameters:
- x- expression
- y- value
- Returns:
- sum
 
- 
sumCreate an expression that returns the sum of its arguments.- Parameters:
- x- value
- y- expression
- Returns:
- sum
 
- 
prodCreate an expression that returns the product of its arguments.- Parameters:
- x- expression
- y- expression
- Returns:
- product
 
- 
prodCreate an expression that returns the product of its arguments.- Parameters:
- x- expression
- y- value
- Returns:
- product
 
- 
prodCreate an expression that returns the product of its arguments.- Parameters:
- x- value
- y- expression
- Returns:
- product
 
- 
diffCreate an expression that returns the difference between its arguments.- Parameters:
- x- expression
- y- expression
- Returns:
- difference
 
- 
diffCreate an expression that returns the difference between its arguments.- Parameters:
- x- expression
- y- value
- Returns:
- difference
 
- 
diffCreate an expression that returns the difference between its arguments.- Parameters:
- x- value
- y- expression
- Returns:
- difference
 
- 
quotCreate an expression that returns the quotient of its arguments.- Parameters:
- x- expression
- y- expression
- Returns:
- quotient
 
- 
quotCreate an expression that returns the quotient of its arguments.- Parameters:
- x- expression
- y- value
- Returns:
- quotient
 
- 
quotCreate an expression that returns the quotient of its arguments.- Parameters:
- x- value
- y- expression
- Returns:
- quotient
 
- 
modCreate an expression that returns the modulus (remainder under integer division) of its arguments.- Parameters:
- x- expression
- y- expression
- Returns:
- modulus
 
- 
modCreate an expression that returns the modulus (remainder under integer division) of its arguments.- Parameters:
- x- expression
- y- value
- Returns:
- modulus
 
- 
modCreate an expression that returns the modulus (remainder under integer division) of its arguments.- Parameters:
- x- value
- y- expression
- Returns:
- modulus
 
- 
sqrtCreate an expression that returns the square root of its argument.- Parameters:
- x- expression
- Returns:
- square root
 
- 
expCreate an expression that returns the exponential of its argument, that is, Euler's number e raised to the power of its argument.- Parameters:
- x- expression
- Returns:
- exponential
 
- 
lnCreate an expression that returns the natural logarithm of its argument.- Parameters:
- x- expression
- Returns:
- natural logarithm
 
- 
powerCreate an expression that returns the first argument raised to the power of its second argument.- Parameters:
- x- base
- y- exponent
- Returns:
- the base raised to the power of the exponent
 
- 
powerCreate an expression that returns the first argument raised to the power of its second argument.- Parameters:
- x- base
- y- exponent
- Returns:
- the base raised to the power of the exponent
 
- 
roundCreate an expression that returns the first argument rounded to the number of decimal places given by the second argument.- Parameters:
- x- base
- n- number of decimal places
- Returns:
- the rounded value
 
- 
toLongTypecast. Returns same expression object.- Parameters:
- number- numeric expression
- Returns:
- Expression<Long>
 
- 
toIntegerTypecast. Returns same expression object.- Parameters:
- number- numeric expression
- Returns:
- Expression<Integer>
 
- 
toFloatTypecast. Returns same expression object.- Parameters:
- number- numeric expression
- Returns:
- Expression<Float>
 
- 
toDoubleTypecast. Returns same expression object.- Parameters:
- number- numeric expression
- Returns:
- Expression<Double>
 
- 
toBigDecimalTypecast. Returns same expression object.- Parameters:
- number- numeric expression
- Returns:
- Expression<BigDecimal>
 
- 
toBigIntegerTypecast. Returns same expression object.- Parameters:
- number- numeric expression
- Returns:
- Expression<BigInteger>
 
- 
toStringTypecast. Returns same expression object.- Parameters:
- character- expression
- Returns:
- Expression<String>
 
- 
literalCreate an expression for a literal.- Parameters:
- value- value represented by the expression
- Returns:
- expression literal
- Throws:
- IllegalArgumentException- if value is null
 
- 
nullLiteralCreate an expression for a null literal with the given type.- Parameters:
- resultClass- type of the null literal
- Returns:
- null expression literal
 
- 
parameterCreate a parameter expression.- Parameters:
- paramClass- parameter class
- Returns:
- parameter expression
 
- 
parameterCreate a parameter expression with the given name.- Parameters:
- paramClass- parameter class
- name- name that can be used to refer to the parameter
- Returns:
- parameter expression
 
- 
isEmptyCreate a predicate that tests whether a collection is empty.- Parameters:
- collection- expression
- Returns:
- is-empty predicate
 
- 
isNotEmptyCreate a predicate that tests whether a collection is not empty.- Parameters:
- collection- expression
- Returns:
- is-not-empty predicate
 
- 
sizeCreate an expression that tests the size of a collection.- Parameters:
- collection- expression
- Returns:
- size expression
 
- 
sizeCreate an expression that tests the size of a collection.- Parameters:
- collection- collection
- Returns:
- size expression
 
- 
isMemberCreate a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.- Parameters:
- elem- element expression
- collection- expression
- Returns:
- is-member predicate
 
- 
isMemberCreate a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.- Parameters:
- elem- element
- collection- expression
- Returns:
- is-member predicate
 
- 
isNotMemberCreate a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true.- Parameters:
- elem- element expression
- collection- expression
- Returns:
- is-not-member predicate
 
- 
isNotMemberCreate a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true.- Parameters:
- elem- element
- collection- expression
- Returns:
- is-not-member predicate
 
- 
valuesCreate an expression that returns the values of a map.- Parameters:
- map- map
- Returns:
- collection expression
 
- 
keysCreate an expression that returns the keys of a map.- Parameters:
- map- map
- Returns:
- set expression
 
- 
likeCreate a predicate for testing whether the expression satisfies the given pattern.- Parameters:
- x- string expression
- pattern- string expression
- Returns:
- like predicate
 
- 
likeCreate a predicate for testing whether the expression satisfies the given pattern.- Parameters:
- x- string expression
- pattern- string
- Returns:
- like predicate
 
- 
likeCreate a predicate for testing whether the expression satisfies the given pattern.- Parameters:
- x- string expression
- pattern- string expression
- escapeChar- escape character expression
- Returns:
- like predicate
 
- 
likeCreate a predicate for testing whether the expression satisfies the given pattern.- Parameters:
- x- string expression
- pattern- string expression
- escapeChar- escape character
- Returns:
- like predicate
 
- 
likeCreate a predicate for testing whether the expression satisfies the given pattern.- Parameters:
- x- string expression
- pattern- string
- escapeChar- escape character expression
- Returns:
- like predicate
 
- 
likeCreate a predicate for testing whether the expression satisfies the given pattern.- Parameters:
- x- string expression
- pattern- string
- escapeChar- escape character
- Returns:
- like predicate
 
- 
notLikeCreate a predicate for testing whether the expression does not satisfy the given pattern.- Parameters:
- x- string expression
- pattern- string expression
- Returns:
- not-like predicate
 
- 
notLikeCreate a predicate for testing whether the expression does not satisfy the given pattern.- Parameters:
- x- string expression
- pattern- string
- Returns:
- not-like predicate
 
- 
notLikePredicate notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.- Parameters:
- x- string expression
- pattern- string expression
- escapeChar- escape character expression
- Returns:
- not-like predicate
 
- 
notLikeCreate a predicate for testing whether the expression does not satisfy the given pattern.- Parameters:
- x- string expression
- pattern- string expression
- escapeChar- escape character
- Returns:
- not-like predicate
 
- 
notLikeCreate a predicate for testing whether the expression does not satisfy the given pattern.- Parameters:
- x- string expression
- pattern- string
- escapeChar- escape character expression
- Returns:
- not-like predicate
 
- 
notLikeCreate a predicate for testing whether the expression does not satisfy the given pattern.- Parameters:
- x- string expression
- pattern- string
- escapeChar- escape character
- Returns:
- not-like predicate
 
- 
concatCreate an expression for string concatenation. If the given list of expressions is empty, returns an expression equivalent toliteral("").- Parameters:
- expressions- string expressions
- Returns:
- expression corresponding to concatenation
 
- 
concatCreate an expression for string concatenation.- Parameters:
- x- string expression
- y- string expression
- Returns:
- expression corresponding to concatenation
 
- 
concatCreate an expression for string concatenation.- Parameters:
- x- string expression
- y- string
- Returns:
- expression corresponding to concatenation
 
- 
concatCreate an expression for string concatenation.- Parameters:
- x- string
- y- string expression
- Returns:
- expression corresponding to concatenation
 
- 
substringCreate an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position is 1.- Parameters:
- x- string expression
- from- start position expression
- Returns:
- expression corresponding to substring extraction
 
- 
substringCreate an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position is 1.- Parameters:
- x- string expression
- from- start position
- Returns:
- expression corresponding to substring extraction
 
- 
substringExpression<String> substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len) Create an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1.- Parameters:
- x- string expression
- from- start position expression
- len- length expression
- Returns:
- expression corresponding to substring extraction
 
- 
substringCreate an expression for substring extraction. Extracts a substring of given length starting at the specified position. First position is 1.- Parameters:
- x- string expression
- from- start position
- len- length
- Returns:
- expression corresponding to substring extraction
 
- 
trimCreate expression to trim blanks from both ends of a string.- Parameters:
- x- expression for string to trim
- Returns:
- trim expression
 
- 
trimCreate expression to trim blanks from a string.- Parameters:
- ts- trim specification
- x- expression for string to trim
- Returns:
- trim expression
 
- 
trimCreate expression to trim character from both ends of a string.- Parameters:
- t- expression for character to be trimmed
- x- expression for string to trim
- Returns:
- trim expression
 
- 
trimCreate expression to trim character from a string.- Parameters:
- ts- trim specification
- t- expression for character to be trimmed
- x- expression for string to trim
- Returns:
- trim expression
 
- 
trimCreate expression to trim character from both ends of a string.- Parameters:
- t- character to be trimmed
- x- expression for string to trim
- Returns:
- trim expression
 
- 
trimCreate expression to trim character from a string.- Parameters:
- ts- trim specification
- t- character to be trimmed
- x- expression for string to trim
- Returns:
- trim expression
 
- 
lowerCreate expression for converting a string to lowercase.- Parameters:
- x- string expression
- Returns:
- expression to convert to lowercase
 
- 
upperCreate expression for converting a string to uppercase.- Parameters:
- x- string expression
- Returns:
- expression to convert to uppercase
 
- 
lengthCreate expression to return length of a string.- Parameters:
- x- string expression
- Returns:
- length expression
 
- 
leftCreate an expression for the leftmost substring of a string,- Parameters:
- x- string expression
- len- length of the substring to return
- Returns:
- expression for the leftmost substring
 
- 
rightCreate an expression for the rightmost substring of a string,- Parameters:
- x- string expression
- len- length of the substring to return
- Returns:
- expression for the rightmost substring
 
- 
leftCreate an expression for the leftmost substring of a string,- Parameters:
- x- string expression
- len- length of the substring to return
- Returns:
- expression for the leftmost substring
 
- 
rightCreate an expression for the rightmost substring of a string,- Parameters:
- x- string expression
- len- length of the substring to return
- Returns:
- expression for the rightmost substring
 
- 
replaceExpression<String> replace(Expression<String> x, Expression<String> substring, Expression<String> replacement) Create an expression replacing every occurrence of a substring within a string.- Parameters:
- x- string expression
- substring- the literal substring to replace
- replacement- the replacement string
- Returns:
- expression for the resulting string
 
- 
replaceCreate an expression replacing every occurrence of a substring within a string.- Parameters:
- x- string expression
- substring- the literal substring to replace
- replacement- the replacement string
- Returns:
- expression for the resulting string
 
- 
replaceCreate an expression replacing every occurrence of a substring within a string.- Parameters:
- x- string expression
- substring- the literal substring to replace
- replacement- the replacement string
- Returns:
- expression for the resulting string
 
- 
replaceCreate an expression replacing every occurrence of a substring within a string.- Parameters:
- x- string expression
- substring- the literal substring to replace
- replacement- the replacement string
- Returns:
- expression for the resulting string
 
- 
locateCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the parameters of this method is reversed compared to the corresponding function in JPQL. - Parameters:
- x- expression for string to be searched
- pattern- expression for string to be located
- Returns:
- expression corresponding to position
 
- 
locateCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the parameters of this method is reversed compared to the corresponding function in JPQL. - Parameters:
- x- expression for string to be searched
- pattern- string to be located
- Returns:
- expression corresponding to position
 
- 
locateExpression<Integer> locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from) Create expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the first two parameters of this method is reversed compared to the corresponding function in JPQL. - Parameters:
- x- expression for string to be searched
- pattern- expression for string to be located
- from- expression for position at which to start search
- Returns:
- expression corresponding to position
 
- 
locateCreate expression to locate the position of one string within another, returning position of first character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned.Warning: the order of the first two parameters of this method is reversed compared to the corresponding function in JPQL. - Parameters:
- x- expression for string to be searched
- pattern- string to be located
- from- position at which to start search
- Returns:
- expression corresponding to position
 
- 
currentDateExpression<Date> currentDate()Create expression to return current date.- Returns:
- expression for current date
 
- 
currentTimestampExpression<Timestamp> currentTimestamp()Create expression to return current timestamp.- Returns:
- expression for current timestamp
 
- 
currentTimeExpression<Time> currentTime()Create expression to return current time.- Returns:
- expression for current time
 
- 
localDateExpression<LocalDate> localDate()Create expression to return current local date.- Returns:
- expression for current date
 
- 
localDateTimeExpression<LocalDateTime> localDateTime()Create expression to return current local datetime.- Returns:
- expression for current timestamp
 
- 
localTimeExpression<LocalTime> localTime()Create expression to return current local time.- Returns:
- expression for current time
 
- 
extractCreate an expression that returns the value of a field extracted from a date, time, or datetime.- Parameters:
- field- a temporal field type
- temporal- a date, time, or datetime
- Returns:
- expression for the value of the extracted field
- Since:
- 3.2
 
- 
inCreate predicate to test whether given expression is contained in a list of values.- Parameters:
- expression- to be tested against list of values
- Returns:
- in predicate
 
- 
coalesceCreate an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.- Parameters:
- x- expression
- y- expression
- Returns:
- coalesce expression
 
- 
coalesceCreate an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.- Parameters:
- x- expression
- y- value
- Returns:
- coalesce expression
 
- 
nullifCreate an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.- Parameters:
- x- expression
- y- expression
- Returns:
- nullif expression
 
- 
nullifCreate an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.- Parameters:
- x- expression
- y- value
- Returns:
- nullif expression
 
- 
coalesceCreate a coalesce expression.- Returns:
- coalesce expression
 
- 
selectCaseCreate a simple case expression.- Parameters:
- expression- to be tested against the case conditions
- Returns:
- simple case expression
 
- 
selectCaseCreate a general case expression.- Returns:
- general case expression
 
- 
functionCreate an expression for the execution of a database function.- Parameters:
- name- function name
- type- expected result type
- args- function arguments
- Returns:
- expression
 
- 
treatDowncast Join object to the specified type.- Parameters:
- join- Join object
- type- type to be downcast to
- Returns:
- Join object of the specified type
- Since:
- 2.1
 
- 
treatDowncast CollectionJoin object to the specified type.- Parameters:
- join- CollectionJoin object
- type- type to be downcast to
- Returns:
- CollectionJoin object of the specified type
- Since:
- 2.1
 
- 
treatDowncast SetJoin object to the specified type.- Parameters:
- join- SetJoin object
- type- type to be downcast to
- Returns:
- SetJoin object of the specified type
- Since:
- 2.1
 
- 
treatDowncast ListJoin object to the specified type.- Parameters:
- join- ListJoin object
- type- type to be downcast to
- Returns:
- ListJoin object of the specified type
- Since:
- 2.1
 
- 
treatDowncast MapJoin object to the specified type.- Parameters:
- join- MapJoin object
- type- type to be downcast to
- Returns:
- MapJoin object of the specified type
- Since:
- 2.1
 
- 
treatDowncast Path object to the specified type.- Parameters:
- path- path
- type- type to be downcast to
- Returns:
- Path object of the specified type
- Since:
- 2.1
 
- 
treatDowncast Root object to the specified type.- Parameters:
- root- root
- type- type to be downcast to
- Returns:
- Root object of the specified type
- Since:
- 2.1
 
- 
unionCreate a query which is the union of the given queries.- Returns:
- a new criteria query which returns the union of the results of the given queries
- Since:
- 3.2
 
- 
unionAllCreate a query which is the union of the given queries, without elimination of duplicate results.- Returns:
- a new criteria query which returns the union of the results of the given queries
- Since:
- 3.2
 
- 
intersectCreate a query which is the intersection of the given queries.- Returns:
- a new criteria query which returns the intersection of the results of the given queries
- Since:
- 3.2
 
- 
intersectAllCreate a query which is the intersection of the given queries, without elimination of duplicate results.- Returns:
- a new criteria query which returns the intersection of the results of the given queries
- Since:
- 3.2
 
- 
exceptCreate a query by (setwise) subtraction of the second query from the first query.- Returns:
- a new criteria query which returns the result of subtracting the results of the second query from the results of the first query
- Since:
- 3.2
 
- 
exceptAllCreate a query by (setwise) subtraction of the second query from the first query, without elimination of duplicate results.- Returns:
- a new criteria query which returns the result of subtracting the results of the second query from the results of the first query
- Since:
- 3.2
 
 
-