This construct can be used to create expressions of the type
CASE x WHEN 1 THEN 'one'
WHEN 2 THEN 'two'
ELSE 'three'
END
or of the type
CASE WHEN x < 1 THEN 'one'
WHEN x >= 2 THEN 'two'
ELSE 'three'
END
Instances of Case are created through the
DSL#decode() method
| Modifier and Type | Method and Description |
|---|---|
| public < The generic value type parameter V> @NotNull CaseValueStep | Returns: An intermediary step for case statement constructionThe value to do the case statement on value)This construct can be used to create expressions of the type
|
| public < The generic value type parameter V> @NotNull CaseValueStep | |
| public < The generic field type parameter T> @NotNull CaseConditionStep | Returns: An intermediary step for case statement constructionA condition to check in the case statement condition, T The result if the condition holds true result)
Deprecated
as a consequence of
This construct can be used to create expressions of the type Condition and CaseConditionStep being deprecated.
|
| public < The generic field type parameter T> @NotNull CaseConditionStep | Returns: An intermediary step for case statement constructionA condition to check in the case statement condition, Field<T> The result if the condition holds true result)
Deprecated
as a consequence of
This construct can be used to create expressions of the type Condition, Field and CaseConditionStep being deprecated.
|
| public < The generic field type parameter T> @NotNull CaseConditionStep | Returns: An intermediary step for case statement constructionA condition to check in the case statement condition, Select<? extends Record1<T>> The result if the condition holds true result)
Deprecated
as a consequence of
This construct can be used to create expressions of the type Condition and CaseConditionStep being deprecated.
|
| public < The generic field type parameter T> @NotNull CaseConditionStep | Returns: An intermediary step for case statement constructionA condition to check in the case statement condition, T The result if the condition holds true result)
Deprecated
as a consequence of
This construct can be used to create expressions of the type Field and CaseConditionStep being deprecated.
|
| public < The generic field type parameter T> @NotNull CaseConditionStep | Returns: An intermediary step for case statement constructionA condition to check in the case statement condition, Field<T> The result if the condition holds true result)
Deprecated
as a consequence of
This construct can be used to create expressions of the type Field and CaseConditionStep being deprecated.
|
| public < The generic field type parameter T> @NotNull CaseConditionStep | Returns: An intermediary step for case statement constructionA condition to check in the case statement condition, Select<? extends Record1<T>> The result if the condition holds true result)
Deprecated
as a consequence of
This construct can be used to create expressions of the type Field and CaseConditionStep being deprecated.
|
| value | back to summary |
|---|---|
| public <V> @NotNull CaseValueStep This construct can be used to create expressions of the type
| |
| value | back to summary |
|---|---|
| public <V> @NotNull CaseValueStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |
| when | back to summary |
|---|---|
| public <T> @NotNull CaseConditionStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |
| when | back to summary |
|---|---|
| public <T> @NotNull CaseConditionStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |
| when | back to summary |
|---|---|
| public <T> @NotNull CaseConditionStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |
| when | back to summary |
|---|---|
| public <T> @NotNull CaseConditionStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |
| when | back to summary |
|---|---|
| public <T> @NotNull CaseConditionStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |
| when | back to summary |
|---|---|
| public <T> @NotNull CaseConditionStep Deprecated as a consequence of This construct can be used to create expressions of the type
| |