Package org.jooq

Enum ExecuteType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ExecuteType>

    public enum ExecuteType
    extends java.lang.Enum<ExecuteType>
    The type of database interaction that is being executed with this context.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BATCH
      A batch statement is being executed.
      DDL
      A DDL statement is being executed.
      OTHER
      An other (unknown) type of database interaction is being executed.
      READ
      A SELECT query is being executed.
      ROUTINE
      A routine (stored procedure or function) is being executed.
      WRITE
      An INSERT, UPDATE, DELETE, MERGE query is being executed.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ExecuteType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ExecuteType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • READ

        public static final ExecuteType READ
        A SELECT query is being executed.

        This may also apply to plain SQL WITH .. SELECT queries (selections with common table expressions), FETCH queries and other types of vendor-specific queries.

      • WRITE

        public static final ExecuteType WRITE
        An INSERT, UPDATE, DELETE, MERGE query is being executed.

        This may also apply to plain SQL REPLACE, UPSERT and other vendor-specific queries.

      • DDL

        public static final ExecuteType DDL
        A DDL statement is being executed.
      • BATCH

        public static final ExecuteType BATCH
        A batch statement is being executed.
      • ROUTINE

        public static final ExecuteType ROUTINE
        A routine (stored procedure or function) is being executed.
      • OTHER

        public static final ExecuteType OTHER
        An other (unknown) type of database interaction is being executed.
    • Method Detail

      • values

        public static ExecuteType[] 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 (ExecuteType c : ExecuteType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExecuteType 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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null