Package jakarta.persistence.criteria
Interface CriteriaBuilder.Coalesce<T>
- All Superinterfaces:
Expression<T>
,Selection<T>
,TupleElement<T>
- Enclosing interface:
CriteriaBuilder
Interface used to build coalesce expressions.
A coalesce expression is equivalent to a case expression
that returns null if all its arguments evaluate to null,
and the value of its first non-null argument otherwise.
-
Method Summary
Modifier and TypeMethodDescriptionvalue
(Expression<? extends T> value) Add an argument to the coalesce expression.Add an argument to the coalesce expression.Methods inherited from interface jakarta.persistence.criteria.Expression
as, cast, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualTo
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Method Details
-
value
Add an argument to the coalesce expression.- Parameters:
value
- value- Returns:
- coalesce expression
-
value
Add an argument to the coalesce expression.- Parameters:
value
- expression- Returns:
- coalesce expression
-