Interface BooleanExpression
- All Superinterfaces:
ComparableExpression<Boolean>, Expression<Boolean>, Selection<Boolean>, TupleElement<Boolean>
- All Known Subinterfaces:
BooleanPath, CriteriaBuilder.In<T>, Predicate
Type for boolean query expressions.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionand(Expression<Boolean> y) Create a conjunction of this and the given boolean expressions.coalesce(Expression<? extends Boolean> y) Create an expression that returns null if this and the argument evaluate to null, and the value of the first non-null expression otherwise.Create an expression that returns null if this and the argument evaluate to null, and the value of the first non-null expression otherwise.not()Create a negation of this restriction.nullif(Expression<? extends Boolean> y) Create an expression that tests whether this expression is equal to the argument, returning null if they are and the value of the first expression if they are not.Create an expression that tests whether this expression is equal to the argument, returning null if they are and the value of the first expression if they are not.or(Expression<Boolean> y) Create a disjunction of this and the given boolean expressions.Methods inherited from interface ComparableExpression
asc, asc, between, between, desc, desc, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, max, minMethods inherited from interface Expression
as, cast, count, countDistinct, equalTo, equalTo, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, notEqualTo, notEqualTo, selectCaseMethods inherited from interface Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface TupleElement
getAlias, getJavaType
-
Method Details
-
and
Create a conjunction of this and the given boolean expressions.- Parameters:
y- boolean expression- Returns:
- and predicate
- See Also:
-
or
Create a disjunction of this and the given boolean expressions.- Parameters:
y- boolean expression- Returns:
- or predicate
- See Also:
-
not
-
coalesce
Description copied from interface:ExpressionCreate an expression that returns null if this and the argument evaluate to null, and the value of the first non-null expression otherwise.- Specified by:
coalescein interfaceComparableExpression<Boolean>- Specified by:
coalescein interfaceExpression<Boolean>- Parameters:
y- value- Returns:
- coalesce expression
-
coalesce
Description copied from interface:ExpressionCreate an expression that returns null if this and the argument evaluate to null, and the value of the first non-null expression otherwise.- Specified by:
coalescein interfaceComparableExpression<Boolean>- Specified by:
coalescein interfaceExpression<Boolean>- Parameters:
y- expression- Returns:
- coalesce expression
-
nullif
Description copied from interface:ExpressionCreate an expression that tests whether this expression is equal to the argument, returning null if they are and the value of the first expression if they are not.- Specified by:
nullifin interfaceComparableExpression<Boolean>- Specified by:
nullifin interfaceExpression<Boolean>- Parameters:
y- value- Returns:
- nullif expression
-
nullif
Description copied from interface:ExpressionCreate an expression that tests whether this expression is equal to the argument, returning null if they are and the value of the first expression if they are not.- Specified by:
nullifin interfaceComparableExpression<Boolean>- Specified by:
nullifin interfaceExpression<Boolean>- Parameters:
y- expression- Returns:
- nullif expression
-