V
- The type of values being compared in this case statementpublic interface CaseValueStep<V>
CASE x WHEN 1 THEN 'one'
WHEN 2 THEN 'two'
ELSE 'three'
END
Case
Modifier and Type | Method and Description |
---|---|
<T> CaseWhenStep<V,T> |
mapFields(Map<? extends Field<V>,? extends Field<T>> fields)
Create
WHEN .. |
<T> CaseWhenStep<V,T> |
mapValues(Map<V,T> values)
Create
WHEN .. |
<T> CaseWhenStep<V,T> |
when(Field<V> compareValue,
Field<T> result)
Compare a value to the already constructed case statement, return result
if values are equal.
|
<T> CaseWhenStep<V,T> |
when(Field<V> compareValue,
Select<? extends Record1<T>> result)
Compare a value to the already constructed case statement, return result
if values are equal.
|
<T> CaseWhenStep<V,T> |
when(Field<V> compareValue,
T result)
Compare a value to the already constructed case statement, return result
if values are equal.
|
<T> CaseWhenStep<V,T> |
when(V compareValue,
Field<T> result)
Compare a value to the already constructed case statement, return result
if values are equal.
|
<T> CaseWhenStep<V,T> |
when(V compareValue,
Select<? extends Record1<T>> result)
Compare a value to the already constructed case statement, return result
if values are equal.
|
<T> CaseWhenStep<V,T> |
when(V compareValue,
T result)
Compare a value to the already constructed case statement, return result
if values are equal.
|
@Support <T> CaseWhenStep<V,T> when(V compareValue, T result)
T
- The generic result field type parametercompareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal@Support <T> CaseWhenStep<V,T> when(V compareValue, Field<T> result)
T
- The generic result field type parametercompareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal@Support <T> CaseWhenStep<V,T> when(V compareValue, Select<? extends Record1<T>> result)
T
- The generic result field type parametercompareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal@Support <T> CaseWhenStep<V,T> when(Field<V> compareValue, T result)
T
- The generic result field type parametercompareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal@Support <T> CaseWhenStep<V,T> when(Field<V> compareValue, Field<T> result)
T
- The generic result field type parametercompareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal@Support <T> CaseWhenStep<V,T> when(Field<V> compareValue, Select<? extends Record1<T>> result)
T
- The generic result field type parametercompareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal<T> CaseWhenStep<V,T> mapValues(Map<V,T> values)
WHEN .. THEN
expressions from a Map
.
This will iterate over the map's entries to create individual
WHEN .. THEN
expressions for each map entry.
Copyright © 2016. All Rights Reserved.