|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type returned by this case statementpublic interface CaseConditionStep<T>
The final step in creating a case statement of the type
CASE WHEN x < 1 THEN 'one'
WHEN x >= 2 THEN 'two'
ELSE 'three'
END
Case| Method Summary | |
|---|---|
Field<T> |
otherwise(Field<T> result)
Add an else clause to the already constructed case statement |
Field<T> |
otherwise(T result)
Add an else clause to the already constructed case statement |
CaseConditionStep<T> |
when(Condition condition,
Field<T> result)
Compare a condition to the already constructed case statement, return result if the condition holds true |
CaseConditionStep<T> |
when(Condition condition,
T result)
Compare a condition to the already constructed case statement, return result if the condition holds true |
| Methods inherited from interface org.jooq.NamedTypeProviderQueryPart |
|---|
getDataType, getDataType |
| Methods inherited from interface org.jooq.Attachable |
|---|
attach |
| Methods inherited from interface org.jooq.Adapter |
|---|
internalAPI |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
CaseConditionStep<T> when(Condition condition,
T result)
condition - The condition to add to the case statementresult - The result value if the condition holds true
CaseConditionStep<T> when(Condition condition,
Field<T> result)
condition - The condition to add to the case statementresult - The result value if the condition holds true
Field<T> otherwise(T result)
result - The result value if no other value matches the case
Field<T> otherwise(Field<T> result)
result - The result value if no other value matches the case
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||