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:
jakarta.persistence.criteria.CriteriaBuilder.Coalesce<X>,jakarta.persistence.criteria.Expression<X>,jakarta.persistence.criteria.Selection<X>,jakarta.persistence.TupleElement<X>,Serializable,InternalExpression,InternalSelection
- Enclosing class:
- CriteriaBuilderImpl
public class CriteriaBuilderImpl.CoalesceImpl<X> extends FunctionExpressionImpl<X> implements jakarta.persistence.criteria.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:
- Serialized Form
-
-
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
Constructors Modifier Constructor Description protectedCoalesceImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<jakarta.persistence.criteria.Expression<?>> compoundExpressions)protectedCoalesceImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<jakarta.persistence.criteria.Expression<?>> compoundExpressions, String operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.persistence.criteria.CriteriaBuilder.Coalesce<X>value(jakarta.persistence.criteria.Expression<? extends X> value)Add an argument to the coalesce expression.jakarta.persistence.criteria.CriteriaBuilder.Coalesce<X>value(X value)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
-
-
-
-
Constructor Detail
-
CoalesceImpl
protected CoalesceImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<jakarta.persistence.criteria.Expression<?>> compoundExpressions)
-
CoalesceImpl
protected CoalesceImpl(jakarta.persistence.metamodel.Metamodel metamodel, Class<X> resultClass, Expression expressionNode, List<jakarta.persistence.criteria.Expression<?>> compoundExpressions, String operator)
-
-
Method Detail
-
value
public jakarta.persistence.criteria.CriteriaBuilder.Coalesce<X> value(X value)
Add an argument to the coalesce expression.- Specified by:
valuein interfacejakarta.persistence.criteria.CriteriaBuilder.Coalesce<X>- Parameters:
value- value- Returns:
- coalesce expression
-
value
public jakarta.persistence.criteria.CriteriaBuilder.Coalesce<X> value(jakarta.persistence.criteria.Expression<? extends X> value)
Add an argument to the coalesce expression.- Specified by:
valuein interfacejakarta.persistence.criteria.CriteriaBuilder.Coalesce<X>- Parameters:
value- expression- Returns:
- coalesce expression
-
-