Enum Class Feedback.Operation

java.lang.Object
java.lang.Enum<Feedback.Operation>
com.oracle.database.selectai.model.Feedback.Operation
All Implemented Interfaces:
Serializable, Comparable<Feedback.Operation>, Constable
Enclosing class:
Feedback

public static enum Feedback.Operation extends Enum<Feedback.Operation>
Action to perform on the feedback store.
  • Enum Constant Details

    • ADD

      public static final Feedback.Operation ADD
      Stores feedback for a generated SQL statement.
    • DELETE

      public static final Feedback.Operation DELETE
      Removes feedback that was previously stored for a generated SQL statement.
  • Method Details

    • values

      public static Feedback.Operation[] 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 Feedback.Operation 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
    • getDatabaseValue

      Returns the lowercase database value.
      Returns:
      DBMS_CLOUD_AI.FEEDBACK operation value
    • from

      public static Feedback.Operation from(String value)
      Parses user-supplied operation text.
      Parameters:
      value - action text such as add or delete
      Returns:
      parsed operation, or null when input is null/blank so DBMS_CLOUD_AI can apply its default