public static interface CriteriaBuilder.SimpleCase<C,R> extends Expression<R>
Modifier and Type | Method and Description |
---|---|
Expression<C> |
getExpression()
Return the expression to be tested against the
conditions.
|
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.SimpleCase<C,R> |
when(C condition,
Expression<? extends R> result)
Add a when/then clause to the case expression.
|
CriteriaBuilder.SimpleCase<C,R> |
when(C condition,
R result)
Add a when/then clause to the case expression.
|
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
Expression<C> getExpression()
CriteriaBuilder.SimpleCase<C,R> when(C condition, R result)
condition
- "when" conditionresult
- "then" result valueCriteriaBuilder.SimpleCase<C,R> when(C 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 © 2021 JBoss by Red Hat. All rights reserved.