Enum Class DbStatementType

java.lang.Object
java.lang.Enum<DbStatementType>
io.helidon.dbclient.DbStatementType
All Implemented Interfaces:
Serializable, Comparable<DbStatementType>, Constable

public enum DbStatementType extends Enum<DbStatementType>
Statement types.
  • Enum Constant Details

    • QUERY

      public static final DbStatementType QUERY
      Query is statement that returns zero or more results.
    • GET

      public static final DbStatementType GET
      Get is a statement that returns zero or one results.
    • INSERT

      public static final DbStatementType INSERT
      Insert is a statements that creates new records.
    • UPDATE

      public static final DbStatementType UPDATE
      Update is a statement that updates existing records.
    • DELETE

      public static final DbStatementType DELETE
      Delete is a statement that deletes existing records.
    • DML

      public static final DbStatementType DML
      Generic DML statement.
    • COMMAND

      public static final DbStatementType COMMAND
      Database command not related to a specific collection.
  • Method Details

    • values

      public static DbStatementType[] 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 DbStatementType 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
    • prefix

      public String prefix()
      Short prefix of this type. This is used when generating a name for an unnamed statement.
      Returns:
      short prefix defining this type (should be very short)