Module org.jooq
Package org.jooq

Enum Class SQLDialectCategory

java.lang.Object
java.lang.Enum<SQLDialectCategory>
org.jooq.SQLDialectCategory
All Implemented Interfaces:
Serializable, Comparable<SQLDialectCategory>, Constable

public enum SQLDialectCategory extends Enum<SQLDialectCategory>
A category for SQLDialect.

Some SQLDialect families share a common category, as they are all derived from a common ancestor. Such categories can help define behaviour that is specific to all members of the category. For example, all SQLDialect.POSTGRES related dialects support casts of the form IDENTIFIER::TYPE.

Author:
Lukas Eder
  • Enum Constant Details

    • OTHER

      public static final SQLDialectCategory OTHER
      The default SQL dialect category.

      This dialect is chosen in the absence of a more explicit category.

    • MYSQL

      public static final SQLDialectCategory MYSQL
      The MySQL dialect category.
    • POSTGRES

      public static final SQLDialectCategory POSTGRES
      The PostgreSQL dialect category.
    • TSQL

      @Pro public static final SQLDialectCategory TSQL
      The T-SQL dialect category.
  • Method Details

    • values

      public static SQLDialectCategory[] 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 SQLDialectCategory 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
    • dialects

      @NotNull public final @NotNull Set<SQLDialect> dialects()
      Get all SQLDialect values belonging to this category.
    • families

      @NotNull public final @NotNull Set<SQLDialect> families()
      Get all SQLDialect families belonging to this category.