Package org.jooq

Enum Comparator

  • All Implemented Interfaces:, java.lang.Comparable<Comparator>

    public enum Comparator
    extends java.lang.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:

    Lukas Eder
    • Method Detail

      • values

        public static Comparator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Comparator c : Comparator.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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

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

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

        public boolean supportsQuantifier()
        Whether this comparator supports quantifiers on the right-hand side.
      • supportsSubselect

        public boolean supportsSubselect()
        Whether this comparator supports subselects on the right-hand side.