Enum Class UpType

java.lang.Object
java.lang.Enum<UpType>
com.surrealdb.UpType
All Implemented Interfaces:
Serializable, Comparable<UpType>, Constable

public enum UpType extends Enum<UpType>
Enumeration to represent the type of update operations.

The UpType enum provides constants to specify the kind of update operation that should be performed.

  • Enum Constant Details

    • CONTENT

      public static final UpType CONTENT
      Represents a content update operation. This type of operation replaces the entire existing data with the provided data.

      For more details, check the SurrealQL documentation.

    • MERGE

      public static final UpType MERGE
      Represents a merge update operation. This type of operation merges the existing data with the provided data.

      For more details, check the SurrealQL documentation.

    • PATCH

      public static final UpType PATCH
      Represents a patch update operation. This type of operation applies partial changes to the existing data.

      For more details, check the SurrealQL documentation.

  • Method Details

    • values

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