CASE
WHEN [firstCondition] THEN [firstResult]
WHEN [secondCondition] THEN [secondResult]
ELSE [defaultResult]
END
| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private LiteralExpression | |
| public Expression | |
| public List | |
| public Expression | otherwise(R
"else" result result)Implements javax. |
| public Expression | otherwise(Expression<? extends R>
"else" result expression result)Implements javax. |
| public void | registerParameters(ParameterRegistry
The parameter registry with which to register. registry)Implements org. |
| public String | render(RenderingContext renderingContext)
Implements org. |
| public CriteriaBuilder. | when(Expression<Boolean>
"when" condition condition, R "then" result value result)Implements javax. |
| public CriteriaBuilder. | when(Expression<Boolean>
"when" condition condition, Expression<? extends R> "then" result expression result)Implements javax. |
| otherwiseResult | back to summary |
|---|---|
| private Expression<? extends R> otherwiseResult | |
| whenClauses | back to summary |
|---|---|
| private List<SearchedCaseExpression<R>. | |
| SearchedCaseExpression | back to summary |
|---|---|
| public SearchedCaseExpression(CriteriaBuilderImpl criteriaBuilder, Class<R> javaType) | |
| buildLiteral | back to summary |
|---|---|
private LiteralExpression
| |
| getOtherwiseResult | back to summary |
|---|---|
| public Expression | |
| getWhenClauses | back to summary |
|---|---|
| public List | |
| otherwise | back to summary |
|---|---|
| public Expression Implements javax. Doc from javax. Add an "else" clause to the case expression.
| |
| otherwise | back to summary |
|---|---|
| public Expression Implements javax. Doc from javax. Add an "else" clause to the case expression.
| |
| registerParameters | back to summary |
|---|---|
| public void registerParameters(ParameterRegistry registry) Implements org. Doc from org. Register any parameters contained within this query component with the given registry.
| |
| render | back to summary |
|---|---|
| public String render(RenderingContext renderingContext) Implements org. Doc from org. Perform the rendering, returning the rendition | |
| when | back to summary |
|---|---|
| public CriteriaBuilder. Implements javax. Doc from javax. Add a when/then clause to the case expression.
| |
| when | back to summary |
|---|---|
| public CriteriaBuilder. Implements javax. Doc from javax. Add a when/then clause to the case expression.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Expression | |
| private final Expression |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | |
| public Expression |
| condition | back to summary |
|---|---|
| private final Expression<Boolean> condition | |
| result | back to summary |
|---|---|
| private final Expression<? extends R> result | |
| WhenClause | back to summary |
|---|---|
| public WhenClause(Expression<Boolean> condition, Expression<? extends R> result) | |
| getCondition | back to summary |
|---|---|
| public Expression | |
| getResult | back to summary |
|---|---|
| public Expression | |