Top Description Fields Constructors Methods
org.jooq

public final Enum Comparator

extends Enum<Comparator>
Class Inheritance
Static Imports
org.jooq.SQLDialect.FIREBIRD, .SQLDialect.POSTGRES

A comparator to be used in conditions to form comparison predicates.

Comparison operators listed here can be used to compare Field or Row values with other Field or Row values, or with Select or QuantifiedSelect values.

The following flags indicate whether the comparator can be used as:

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
private final Keyword
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
public static final Comparator
private final String
private final boolean
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
private
Comparator(String sql, boolean supportsQuantifier, boolean supportsSubselect, boolean supportsNulls)

Method Summary

Modifier and TypeMethod and Description
public Comparator
inverse()

Get the inverse comparator such that A [op] B and NOT(A [inverse op] B).

public Comparator
mirror()

Get the mirrored comparator such that A [op] B and B [mirrored op] A, or null if the comparator cannot be mirrored.

public final boolean
supportsNulls()

Deprecated for removal since 3.14. - 3.14.0 - [#9911] - This method is no longer supported.
Whether this comparator supports quantifiers on the right-hand side.
public boolean
supportsQuantifier()

Deprecated for removal since 3.14. - 3.14.0 - [#9911] - This method is no longer supported.
Whether this comparator supports quantifiers on the right-hand side.
public boolean
supportsSubselect()

Deprecated for removal since 3.14. - 3.14.0 - [#9911] - This method is no longer supported.
Whether this comparator supports subselects on the right-hand side.
public Keyword
toKeyword()

A keyword rendition of this comparator.

public String
toSQL()

A SQL rendition of this comparator.

public static Comparator
public static Comparator[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EQUALSback to summary
public static final Comparator EQUALS
Annotations
@NotNull
@Support
GREATERback to summary
public static final Comparator GREATER
Annotations
@NotNull
@Support
GREATER_OR_EQUALback to summary
public static final Comparator GREATER_OR_EQUAL
Annotations
@NotNull
@Support
INback to summary
public static final Comparator IN
Annotations
@NotNull
@Support
IS_DISTINCT_FROMback to summary
public static final Comparator IS_DISTINCT_FROM
Annotations
@NotNull
@Support
IS_NOT_DISTINCT_FROMback to summary
public static final Comparator IS_NOT_DISTINCT_FROM
Annotations
@NotNull
@Support
keywordback to summary
private final Keyword keyword
LESSback to summary
public static final Comparator LESS
Annotations
@NotNull
@Support
LESS_OR_EQUALback to summary
public static final Comparator LESS_OR_EQUAL
Annotations
@NotNull
@Support
LIKEback to summary
public static final Comparator LIKE
Annotations
@NotNull
@Support
LIKE_IGNORE_CASEback to summary
public static final Comparator LIKE_IGNORE_CASE
Annotations
@NotNull
@Support
NOT_EQUALSback to summary
public static final Comparator NOT_EQUALS
Annotations
@NotNull
@Support
NOT_INback to summary
public static final Comparator NOT_IN
Annotations
@NotNull
@Support
NOT_LIKEback to summary
public static final Comparator NOT_LIKE
Annotations
@NotNull
@Support
NOT_LIKE_IGNORE_CASEback to summary
public static final Comparator NOT_LIKE_IGNORE_CASE
Annotations
@NotNull
@Support
NOT_SIMILAR_TOback to summary
public static final Comparator NOT_SIMILAR_TO
Annotations
@NotNull
@Support:FIREBIRD, POSTGRES
SIMILAR_TOback to summary
public static final Comparator SIMILAR_TO
Annotations
@NotNull
@Support:FIREBIRD, POSTGRES
sqlback to summary
private final String sql
supportsNullsback to summary
private final boolean supportsNulls
supportsQuantifierback to summary
private final boolean supportsQuantifier
supportsSubselectback to summary
private final boolean supportsSubselect

Constructor Detail

Comparatorback to summary
private Comparator(String sql, boolean supportsQuantifier, boolean supportsSubselect, boolean supportsNulls)

Method Detail

inverseback to summary
public Comparator inverse()

Get the inverse comparator such that A [op] B and NOT(A [inverse op] B).

mirrorback to summary
public Comparator mirror()

Get the mirrored comparator such that A [op] B and B [mirrored op] A, or null if the comparator cannot be mirrored.

supportsNullsback to summary
public final boolean supportsNulls()

Deprecated

for removal since 3.14.

- 3.14.0 - [#9911] - This method is no longer supported.

Whether this comparator supports quantifiers on the right-hand side.

Annotations
@Deprecated
forRemoval:true
since:3.14
supportsQuantifierback to summary
public boolean supportsQuantifier()

Deprecated

for removal since 3.14.

- 3.14.0 - [#9911] - This method is no longer supported.

Whether this comparator supports quantifiers on the right-hand side.

Annotations
@Deprecated
forRemoval:true
since:3.14
supportsSubselectback to summary
public boolean supportsSubselect()

Deprecated

for removal since 3.14.

- 3.14.0 - [#9911] - This method is no longer supported.

Whether this comparator supports subselects on the right-hand side.

Annotations
@Deprecated
forRemoval:true
since:3.14
toKeywordback to summary
public Keyword toKeyword()

A keyword rendition of this comparator.

toSQLback to summary
public String toSQL()

A SQL rendition of this comparator.

valueOfback to summary
public static Comparator valueOf(String name)
valuesback to summary
public static Comparator[] values()