Enum Class OperationType

java.lang.Object
java.lang.Enum<OperationType>
expert.os.harperdb.OperationType
All Implemented Interfaces:
Serializable, Comparable<OperationType>, Constable, Supplier<String>

public enum OperationType extends Enum<OperationType> implements Supplier<String>
Enum representing different operations supported by HarperDB.
  • Enum Constant Details

    • CREATE_SCHEMA

      public static final OperationType CREATE_SCHEMA
      Operation to create a schema in HarperDB.
    • CREATE_TABLE

      public static final OperationType CREATE_TABLE
      Operation to create a table in HarperDB.
    • CREATE_DATABASE

      public static final OperationType CREATE_DATABASE
      Operation to create a database in HarperDB.
    • INSERT

      public static final OperationType INSERT
      Operation to insert data into a HarperDB table.
    • UPDATE

      public static final OperationType UPDATE
      Operation to update existing data in a HarperDB table.
    • UPSERT

      public static final OperationType UPSERT
      Operation to insert or update data in a HarperDB table based on existence.
    • DELETE

      public static final OperationType DELETE
      Operation to delete data from a HarperDB table.
    • SEARCH_BY_ID

      public static final OperationType SEARCH_BY_ID
      Operation to search for a record by its unique identifier in a HarperDB table.
    • SEARCH_BY_VALUE

      public static final OperationType SEARCH_BY_VALUE
      Operation to search for records based on their field values in a HarperDB table.
  • Method Details

    • values

      public static OperationType[] 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 OperationType 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
    • get

      public String get()
      Gets the string representation of the operation.
      Specified by:
      get in interface Supplier<String>
      Returns:
      The string representation of the operation.