Module org.jooq
Package org.jooq

Enum Class TableOptions.TableType

java.lang.Object
java.lang.Enum<TableOptions.TableType>
org.jooq.TableOptions.TableType
All Implemented Interfaces:
Serializable, Comparable<TableOptions.TableType>, Constable
Enclosing class:
TableOptions

public static enum TableOptions.TableType extends Enum<TableOptions.TableType>
A description of the type of a Table.
  • Enum Constant Details

    • TABLE

      public static final TableOptions.TableType TABLE
      An ordinary table that is stored in the schema.
    • TEMPORARY

      public static final TableOptions.TableType TEMPORARY
      A global temporary table that is stored in the schema and visible to everyone.
    • VIEW

      public static final TableOptions.TableType VIEW
      A view that is defined by a Select statement.
    • MATERIALIZED_VIEW

      public static final TableOptions.TableType MATERIALIZED_VIEW
      A materialised view that is defined by a Select statement, and whose data is materialised in the schema.
    • FUNCTION

      public static final TableOptions.TableType FUNCTION
      A table valued function that is defined by a Routine.
    • EXPRESSION

      public static final TableOptions.TableType EXPRESSION
      A table expression, such as a derived table, a joined table, a common table expression, etc.
    • UNKNOWN

      public static final TableOptions.TableType UNKNOWN
      A table type that is unknown to jOOQ.
  • Method Details

    • values

      public static TableOptions.TableType[] 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 TableOptions.TableType 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
    • isView

      public final boolean isView()
      Whether the type is a view or a materialized view.
    • isFunction

      public final boolean isFunction()
      Whether the type is a function.
    • isTable

      public final boolean isTable()
      Whether the type is a table or a temporary table.