org.jooq
Interface CaseValueStep<V>

Type Parameters:
V - The type of values being compared in this case statement

public interface CaseValueStep<V>

An intermediary step in creating a case statement of the type

 CASE x WHEN 1 THEN 'one'
        WHEN 2 THEN 'two'
        ELSE        'three'
 END
 

Author:
Lukas Eder
See Also:
Case

Method Summary
<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, 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, T result)
          Compare a value to the already constructed case statement, return result if values are equal.
 

Method Detail

when

<T> CaseWhenStep<V,T> when(V compareValue,
                           T result)
Compare a value to the already constructed case statement, return result if values are equal.

Type Parameters:
T - The generic result field type parameter
Parameters:
compareValue - The value to compare with the already constructed case statement
result - The result value if values are equal
Returns:
An intermediary step for case statement construction

when

<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.

Type Parameters:
T - The generic result field type parameter
Parameters:
compareValue - The value to compare with the already constructed case statement
result - The result value if values are equal
Returns:
An intermediary step for case statement construction

when

<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.

Type Parameters:
T - The generic result field type parameter
Parameters:
compareValue - The value to compare with the already constructed case statement
result - The result value if values are equal
Returns:
An intermediary step for case statement construction

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.

Type Parameters:
T - The generic result field type parameter
Parameters:
compareValue - The value to compare with the already constructed case statement
result - The result value if values are equal
Returns:
An intermediary step for case statement construction


Copyright © 2012. All Rights Reserved.