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, operatorFields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodelFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCoalesceImpl(Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) protectedCoalesceImpl(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, isExpressionMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubqueryMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNullMethods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods 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:
valuein interfaceCriteriaBuilder.Coalesce<X>- Parameters:
value- value- Returns:
- coalesce expression
-
value
Add an argument to the coalesce expression.- Specified by:
valuein interfaceCriteriaBuilder.Coalesce<X>- Parameters:
value- expression- Returns:
- coalesce expression
-