|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- The type of values being compared in this case statementT
- The type returned by this case statementpublic interface CaseWhenStep<V,T>
The final step in creating a case statement of the type
CASE x WHEN 1 THEN 'one'
WHEN 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 |
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. |
CaseWhenStep<V,T> |
when(Field<V> compareValue,
T result)
Compare a value to the already constructed case statement, return result if values are equal. |
CaseWhenStep<V,T> |
when(V compareValue,
Field<T> result)
Compare a value to the already constructed case statement, return result if values are equal. |
CaseWhenStep<V,T> |
when(V compareValue,
T result)
Compare a value to the already constructed case statement, return result if values are equal. |
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 |
---|
CaseWhenStep<V,T> when(V compareValue, T result)
compareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal
CaseWhenStep<V,T> when(V compareValue, Field<T> result)
compareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal
CaseWhenStep<V,T> when(Field<V> compareValue, T result)
compareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal
CaseWhenStep<V,T> when(Field<V> compareValue, Field<T> result)
compareValue
- The value to compare with the already constructed
case statementresult
- The result value if values are equal
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 |