Module org.eclipse.persistence.jpa
Class CriteriaBuilderImpl.CaseImpl<R>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<R>
org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<R>
org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl<R>
org.eclipse.persistence.internal.jpa.querydef.CriteriaBuilderImpl.CaseImpl<R>
- Type Parameters:
- R-
- All Implemented Interfaces:
- CriteriaBuilder.Case<R>,- Expression<R>,- Selection<R>,- TupleElement<R>,- Serializable,- InternalExpression,- InternalSelection
- Enclosing class:
- CriteriaBuilderImpl
public class CriteriaBuilderImpl.CaseImpl<R>
extends FunctionExpressionImpl<R>
implements CriteriaBuilder.Case<R>
Implementation of Case interface from Criteria Builder
- See Also:
- 
Field SummaryFields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImplexpressions, operatorFields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImplisLiteral, literal, metamodelFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImplalias, currentNode, javaType
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCaseImpl(Metamodel metamodel, Class<R> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) protectedCaseImpl(Metamodel metamodel, Class<R> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidotherwise(Expression<? extends R> result) Add an "else" clause to the case expression.Add an "else" clause to the case expression.when(Expression<Boolean> condition, Expression<? extends R> result) Add a when/then clause to the case expression.when(Expression<Boolean> condition, R result) Add a when/then clause to the case expression.Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImplgetChildExpressions, getOperation, isCompoundExpression, isExpressionMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImplas, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubqueryMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImplalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.Expressionas, in, in, in, in, isNotNull, isNullMethods inherited from interface jakarta.persistence.criteria.Selectionalias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElementgetAlias, getJavaType
- 
Constructor Details- 
CaseImplprotected CaseImpl(Metamodel metamodel, Class<R> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions) 
- 
CaseImplprotected CaseImpl(Metamodel metamodel, Class<R> resultClass, Expression expressionNode, List<Expression<?>> compoundExpressions, String operator) 
 
- 
- 
Method Details- 
whenAdd a when/then clause to the case expression.- Specified by:
- whenin interface- CriteriaBuilder.Case<R>
- Parameters:
- condition- "when" condition
- result- "then" result value
- Returns:
- general case expression
 
- 
whenAdd a when/then clause to the case expression.- Specified by:
- whenin interface- CriteriaBuilder.Case<R>
- Parameters:
- condition- "when" condition
- result- "then" result expression
- Returns:
- general case expression
 
- 
otherwiseAdd an "else" clause to the case expression.- Specified by:
- otherwisein interface- CriteriaBuilder.Case<R>
- Parameters:
- result- "else" result
- Returns:
- expression
 
- 
otherwiseAdd an "else" clause to the case expression.- Specified by:
- otherwisein interface- CriteriaBuilder.Case<R>
- Parameters:
- result- "else" result expression
- Returns:
- expression
 
- 
findRootAndParameters- Specified by:
- findRootAndParametersin interface- InternalSelection
- Overrides:
- findRootAndParametersin class- FunctionExpressionImpl<R>
 
 
-