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:
java.io.Serializable,javax.persistence.criteria.CriteriaBuilder.Coalesce<X>,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
- Enclosing class:
- CriteriaBuilderImpl
public class CriteriaBuilderImpl.CoalesceImpl<X> extends FunctionExpressionImpl<X> implements javax.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(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions)protectedCoalesceImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, java.lang.String operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.persistence.criteria.CriteriaBuilder.Coalesce<X>value(javax.persistence.criteria.Expression<? extends X> value)Add an argument to the coalesce expression.javax.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 javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Constructor Detail
-
CoalesceImpl
protected CoalesceImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions)
-
CoalesceImpl
protected CoalesceImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> resultClass, org.eclipse.persistence.expressions.Expression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, java.lang.String operator)
-
-
Method Detail
-
value
public javax.persistence.criteria.CriteriaBuilder.Coalesce<X> value(X value)
Add an argument to the coalesce expression.- Specified by:
valuein interfacejavax.persistence.criteria.CriteriaBuilder.Coalesce<X>- Parameters:
value- value- Returns:
- coalesce expression
-
value
public javax.persistence.criteria.CriteriaBuilder.Coalesce<X> value(javax.persistence.criteria.Expression<? extends X> value)
Add an argument to the coalesce expression.- Specified by:
valuein interfacejavax.persistence.criteria.CriteriaBuilder.Coalesce<X>- Parameters:
value- expression- Returns:
- coalesce expression
-
-