C - R - public static class CriteriaBuilderImpl.SimpleCaseImpl<C,R> extends FunctionExpressionImpl<R>
expressions, operatorisLiteral, literal, metamodelalias, currentNode, javaType| Modifier | Constructor and Description |
|---|---|
protected |
SimpleCaseImpl(Metamodel metamodel,
java.lang.Class<R> resultClass,
FunctionExpression expressionNode,
java.util.List<<any>> compoundExpressions,
<any> expression) |
protected |
SimpleCaseImpl(Metamodel metamodel,
java.lang.Class<R> resultClass,
FunctionExpression expressionNode,
java.util.List<<any>> compoundExpressions,
java.lang.String operator,
<any> expression) |
| Modifier and Type | Method and Description |
|---|---|
<any> |
getExpression()
Returns the expression to be tested against the
conditions.
|
<any> |
otherwise(<any> result)
Add an "else" clause to the case expression.
|
<any> |
otherwise(R result)
Add an "else" clause to the case expression.
|
<any> |
when(C condition,
<any> result)
Add a when/then clause to the case expression.
|
<any> |
when(C condition,
R result)
Add a when/then clause to the case expression.
|
findRootAndParameters, getChildExpressions, getOperation, isCompoundExpression, isExpressionas, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubqueryalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRootprotected SimpleCaseImpl(Metamodel metamodel,
java.lang.Class<R> resultClass,
FunctionExpression expressionNode,
java.util.List<<any>> compoundExpressions,
<any> expression)
protected SimpleCaseImpl(Metamodel metamodel,
java.lang.Class<R> resultClass,
FunctionExpression expressionNode,
java.util.List<<any>> compoundExpressions,
java.lang.String operator,
<any> expression)
public <any> getExpression()
public <any> when(C condition, R result)
condition - "when" conditionresult - "then" result valuepublic <any> when(C condition, <any> result)
condition - "when" conditionresult - "then" result expressionpublic <any> otherwise(R result)
result - "else" resultpublic <any> otherwise(<any> result)
result - "else" result expression