Module org.jooq
Package org.jooq

Enum Class Comparator

All Implemented Interfaces:
Serializable, Comparable<Comparator>, Constable

public enum Comparator extends Enum<Comparator>
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
  • Enum Constant Details

  • Method Details

    • values

      public static Comparator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Comparator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toSQL

      public String toSQL()
      A SQL rendition of this comparator.
    • toKeyword

      public Keyword toKeyword()
      A keyword rendition of this comparator.
    • inverse

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

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

      @Deprecated(forRemoval=true, since="3.14") public final boolean supportsNulls()
      Deprecated, for removal: This API element is subject to removal in a future version.
      - 3.14.0 - [#9911] - This method is no longer supported.
      Whether this comparator supports quantifiers on the right-hand side.
    • supportsQuantifier

      @Deprecated(forRemoval=true, since="3.14") public boolean supportsQuantifier()
      Deprecated, for removal: This API element is subject to removal in a future version.
      - 3.14.0 - [#9911] - This method is no longer supported.
      Whether this comparator supports quantifiers on the right-hand side.
    • supportsSubselect

      @Deprecated(forRemoval=true, since="3.14") public boolean supportsSubselect()
      Deprecated, for removal: This API element is subject to removal in a future version.
      - 3.14.0 - [#9911] - This method is no longer supported.
      Whether this comparator supports subselects on the right-hand side.