Module org.eclipse.persistence.jpa
Class CriteriaBuilderImpl.CoalesceImpl<X>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.CriteriaBuilderImpl.CoalesceImpl<X>
- All Implemented Interfaces:
CriteriaBuilder.Coalesce<X>
,Expression<X>
,Selection<X>
,TupleElement<X>
,Serializable
,InternalExpression
,InternalSelection
- Enclosing class:
CriteriaBuilderImpl
public class CriteriaBuilderImpl.CoalesceImpl<X>
extends FunctionExpressionImpl<X>
implements CriteriaBuilder.Coalesce<X>
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.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
expressions, operator
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
Constructor Summary
ModifierConstructorDescriptionprotected
CoalesceImpl
(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) protected
CoalesceImpl
(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator) -
Method Summary
Modifier and TypeMethodDescriptionvalue
(Expression<? extends X> value) Add an argument to the coalesce expression.Add an argument to the coalesce expression.Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
findRootAndParameters, getChildExpressions, getOperation, isCompoundExpression, isExpression
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubquery
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Constructor Details
-
CoalesceImpl
protected CoalesceImpl(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) -
CoalesceImpl
protected CoalesceImpl(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator)
-
-
Method Details
-
value
Add an argument to the coalesce expression.- Specified by:
value
in interfaceCriteriaBuilder.Coalesce<X>
- Parameters:
value
- value- Returns:
- coalesce expression
-
value
Add an argument to the coalesce expression.- Specified by:
value
in interfaceCriteriaBuilder.Coalesce<X>
- Parameters:
value
- expression- Returns:
- coalesce expression
-