Enum QueryKind

    • Enum Constant Detail

      • NONE

        public static final QueryKind NONE
        This query is a comment or an empty space, so we even will not attempt to run it.
      • SELECT

        public static final QueryKind SELECT
        Read-only select query.
      • DML

        public static final QueryKind DML
        Data manipulation language query - insert, update, delete.
      • DDL

        public static final QueryKind DDL
        Data definition language query - create/drop tables, columns, etc.
      • TRAN

        public static final QueryKind TRAN
        Transaction control commands.
      • UNKNOWN

        public static final QueryKind UNKNOWN
        We could not determin the kind of the query. Sorry, baby
    • Method Detail

      • values

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

        public static QueryKind valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null