Enum Class StatementType

java.lang.Object
java.lang.Enum<StatementType>
org.apache.nifi.database.dialect.service.api.StatementType
All Implemented Interfaces:
Serializable, Comparable<StatementType>, Constable

public enum StatementType extends Enum<StatementType>
SQL Statement Types including synthetic types for conditional handling
  • Enum Constant Details

    • ALTER

      public static final StatementType ALTER
      Alter table with new columns
    • CREATE

      public static final StatementType CREATE
      Create table with specified columns
    • INSERT_IGNORE

      public static final StatementType INSERT_IGNORE
      Insert records and ignore existing records with matching duplicate keys
    • SELECT

      public static final StatementType SELECT
      Select records
    • UPSERT

      public static final StatementType UPSERT
      Insert records or update records on matching duplicate keys
  • Constructor Details

    • StatementType

      private StatementType()
  • Method Details

    • values

      public static StatementType[] 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 StatementType 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