Top Description Methods
org.jooq

public Interface CaseWhenStep<V, T>

extends Field<T>
Known Direct Implementers
org.jooq.impl.CaseSimple
Type Parameters
<V>
The type of values being compared in this case statement
<T>
The type returned by this case statement
Imports
org.jetbrains.annotations.*, java.util.Map

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

The final 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

Modifier and TypeMethod and Description
public @NotNull Field<T>

Returns:

The resulting field from case statement construction
else_
(T
The result value if no other value matches the case
result
)

Deprecated as a consequence of Field being deprecated.
Add an else clause to the already constructed case statement
public @NotNull Field<T>

Returns:

The resulting field from case statement construction
else_
(Field<T>
The result value if no other value matches the case
result
)

Deprecated as a consequence of Field being deprecated.
Add an else clause to the already constructed case statement
public @NotNull CaseWhenStep<V, T>
mapFields(Map<? extends Field<V>, ? extends Field<T>> fields)

Deprecated as a consequence of CaseWhenStep being deprecated.
Create WHEN … THEN expressions from a Map.
public @NotNull CaseWhenStep<V, T>
mapValues(Map<V, T> values)

Deprecated as a consequence of CaseWhenStep being deprecated.
Create WHEN … THEN expressions from a Map.
public @NotNull Field<T>

Returns:

The resulting field from case statement construction
otherwise
(T
The result value if no other value matches the case
result
)

Deprecated as a consequence of Field being deprecated.
Add an else clause to the already constructed case statement
public @NotNull Field<T>

Returns:

The resulting field from case statement construction
otherwise
(Field<T>
The result value if no other value matches the case
result
)

Deprecated as a consequence of Field being deprecated.
Add an else clause to the already constructed case statement
public @NotNull CaseWhenStep<V, T>

Returns:

An intermediary step for case statement construction
when
(V
The value to compare with the already constructed case statement
compareValue
,
T
The result value if values are equal
result
)

Deprecated as a consequence of CaseWhenStep being deprecated.
Compare a value to the already constructed case statement, return result if values are equal.
public @NotNull CaseWhenStep<V, T>

Returns:

An intermediary step for case statement construction
when
(V
The value to compare with the already constructed case statement
compareValue
,
Field<T>
The result value if values are equal
result
)

Deprecated as a consequence of Field and CaseWhenStep being deprecated.
Compare a value to the already constructed case statement, return result if values are equal.
public @NotNull CaseWhenStep<V, T>

Returns:

An intermediary step for case statement construction
when
(Field<V>
The value to compare with the already constructed case statement
compareValue
,
T
The result value if values are equal
result
)

Deprecated as a consequence of Field and CaseWhenStep being deprecated.
Compare a value to the already constructed case statement, return result if values are equal.
public @NotNull CaseWhenStep<V, T>

Returns:

An intermediary step for case statement construction
when
(Field<V>
The value to compare with the already constructed case statement
compareValue
,
Field<T>
The result value if values are equal
result
)

Deprecated as a consequence of Field and CaseWhenStep being deprecated.
Compare a value to the already constructed case statement, return result if values are equal.
Inherited from org.jooq.Field:
absacosaddaddasasasasascasciiasinatanatan2atan2avgavgOverbetweenbetweenbetweenbetweenbetweenSymmetricbetweenSymmetricbetweenSymmetricbetweenSymmetricbitAndbitAndbitLengthbitNandbitNandbitNorbitNorbitNotbitOrbitOrbitXNorbitXNorbitXorbitXorcastcastcastceilchangedcharLengthcoalescecoalescecoercecoercecoercecollatecollatecollatecommentcommentcomparecomparecomparecompareconcatconcatconcatcontainscontainscontainsIgnoreCasecontainsIgnoreCaseconvertconvertconvertconvertFromconvertFromconvertToconvertTocoscoshcotcothcountcountDistinctcountOverdecodedecodedecodedecodedegdescdivdivdividedivideendsWithendsWithendsWithIgnoreCaseendsWithIgnoreCaseeqeqeqeqequalequalequalequalequalIgnoreCaseequalIgnoreCaseequalsexpextractfieldfirstValuefloorfromgegegegegetgetCommentgetNamegetValuegreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterThangreaterThangreaterThangreaterThangreatestgreatestgtgtgtgtinininininisDistinctFromisDistinctFromisDistinctFromisDocumentisFalseisJsonisNotDistinctFromisNotDistinctFromisNotDistinctFromisNotDocumentisNotJsonisNotNullisNullisTruelaglaglaglaglastValueleleleleleadleadleadleadleastleastlengthlessOrEquallessOrEquallessOrEquallessOrEquallessThanlessThanlessThanlessThanlikelikelikelikelikelikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeRegexlikeRegexlnloglowerlpadlpadlpadlpadltltltltltrimmaxmaxOvermedianminminOverminusminusmodmodmodulomodulomulmulmultiplymultiplynenenenenegnotBetweennotBetweennotBetweennotBetweennotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotContainsnotContainsnotContainsIgnoreCasenotContainsIgnoreCasenotEqualnotEqualnotEqualnotEqualnotEqualIgnoreCasenotEqualIgnoreCasenotInnotInnotInnotInnotInnotLikenotLikenotLikenotLikenotLikenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeRegexnotLikeRegexnotSimilarTonotSimilarTonotSimilarTonotSimilarTonotSimilarTonullifnullifnullsFirstnullsLastnvlnvlnvl2nvl2octetLengthoriginalpluspluspositionpositionpowpowpowerpowerradremremrepeatrepeatreplacereplacereplacereplaceresetroundroundrpadrpadrpadrpadrtrimshlshlshrshrsignsimilarTosimilarTosimilarTosimilarTosimilarTosinsinhsortsortsortAscsortAscsortDefaultsortDescsortDescsqrtstartsWithstartsWithstartsWithIgnoreCasestartsWithIgnoreCasestddevPopstddevPopOverstddevSampstddevSampOversubsubsubstringsubstringsubstringsubstringsubtractsubtractsumsumOvertantanhtimestimestrimunaryMinusunaryPlusuppervarPopvarPopOvervarSampvarSampOver

Method Detail

else_back to summary
public @NotNull Field<T> else_(T result)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Add an else clause to the already constructed case statement

Parameters
result:T

The result value if no other value matches the case

Returns:@NotNull Field<T>

The resulting field from case statement construction

Annotations
@NotNull
@Support
else_back to summary
public @NotNull Field<T> else_(Field<T> result)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Add an else clause to the already constructed case statement

Parameters
result:Field<T>

The result value if no other value matches the case

Returns:@NotNull Field<T>

The resulting field from case statement construction

Annotations
@NotNull
@Support
mapFieldsback to summary
public @NotNull CaseWhenStep<V, T> mapFields(Map<? extends Field<V>, ? extends Field<T>> fields)

Deprecated

as a consequence of CaseWhenStep being deprecated. See corresponding docs for further information.

Create WHEN … THEN expressions from a Map.

This will iterate over the map's entries to create individual WHEN … THEN expressions for each map entry.

Annotations
@NotNull
@Support
mapValuesback to summary
public @NotNull CaseWhenStep<V, T> mapValues(Map<V, T> values)

Deprecated

as a consequence of CaseWhenStep being deprecated. See corresponding docs for further information.

Create WHEN … THEN expressions from a Map.

This will iterate over the map's entries to create individual WHEN … THEN expressions for each map entry.

Annotations
@NotNull
@Support
otherwiseback to summary
public @NotNull Field<T> otherwise(T result)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Add an else clause to the already constructed case statement

Parameters
result:T

The result value if no other value matches the case

Returns:@NotNull Field<T>

The resulting field from case statement construction

Annotations
@NotNull
@Support
otherwiseback to summary
public @NotNull Field<T> otherwise(Field<T> result)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Add an else clause to the already constructed case statement

Parameters
result:Field<T>

The result value if no other value matches the case

Returns:@NotNull Field<T>

The resulting field from case statement construction

Annotations
@NotNull
@Support
whenback to summary
public @NotNull CaseWhenStep<V, T> when(V compareValue, T result)

Deprecated

as a consequence of CaseWhenStep being deprecated. See corresponding docs for further information.

Compare a value to the already constructed case statement, return result if values are equal.

Parameters
compareValue:V

The value to compare with the already constructed case statement

result:T

The result value if values are equal

Returns:@NotNull CaseWhenStep<V, T>

An intermediary step for case statement construction

Annotations
@NotNull
@Support
whenback to summary
public @NotNull CaseWhenStep<V, T> when(V compareValue, Field<T> result)

Deprecated

as a consequence of Field and CaseWhenStep being deprecated. See corresponding docs for further information.

Compare a value to the already constructed case statement, return result if values are equal.

Parameters
compareValue:V

The value to compare with the already constructed case statement

result:Field<T>

The result value if values are equal

Returns:@NotNull CaseWhenStep<V, T>

An intermediary step for case statement construction

Annotations
@NotNull
@Support
whenback to summary
public @NotNull CaseWhenStep<V, T> when(Field<V> compareValue, T result)

Deprecated

as a consequence of Field and CaseWhenStep being deprecated. See corresponding docs for further information.

Compare a value to the already constructed case statement, return result if values are equal.

Parameters
compareValue:Field<V>

The value to compare with the already constructed case statement

result:T

The result value if values are equal

Returns:@NotNull CaseWhenStep<V, T>

An intermediary step for case statement construction

Annotations
@NotNull
@Support
whenback to summary
public @NotNull CaseWhenStep<V, T> when(Field<V> compareValue, Field<T> result)

Deprecated

as a consequence of Field and CaseWhenStep being deprecated. See corresponding docs for further information.

Compare a value to the already constructed case statement, return result if values are equal.

Parameters
compareValue:Field<V>

The value to compare with the already constructed case statement

result:Field<T>

The result value if values are equal

Returns:@NotNull CaseWhenStep<V, T>

An intermediary step for case statement construction

Annotations
@NotNull
@Support