public static interface CriteriaBuilder.Case<R> extends Expression<R>
Modifier and Type | Method and Description |
---|---|
Expression<R> |
otherwise(Expression<? extends R> result)
Add an "else" clause to the case expression.
|
Expression<R> |
otherwise(R result)
Add an "else" clause to the case expression.
|
CriteriaBuilder.Case<R> |
when(Expression<Boolean> condition,
Expression<? extends R> result)
Add a when/then clause to the case expression.
|
CriteriaBuilder.Case<R> |
when(Expression<Boolean> condition,
R result)
Add a when/then clause to the case expression.
|
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
CriteriaBuilder.Case<R> when(Expression<Boolean> condition, R result)
condition
- "when" conditionresult
- "then" result valueCriteriaBuilder.Case<R> when(Expression<Boolean> condition, Expression<? extends R> result)
condition
- "when" conditionresult
- "then" result expressionExpression<R> otherwise(R result)
result
- "else" resultExpression<R> otherwise(Expression<? extends R> result)
result
- "else" result expressionCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.