Enum Class ExecuteAs

java.lang.Object
java.lang.Enum<ExecuteAs>
dev.frostlake.metastore.model.ExecuteAs
All Implemented Interfaces:
Serializable, Comparable<ExecuteAs>, Constable

public enum ExecuteAs extends Enum<ExecuteAs>
A stored procedure's caller-rights mode: OWNER (the default — runs with the owner's privileges) or CALLER (runs with the caller's privileges). The enum name is the canonical SQL spelling.
  • Enum Constant Details

    • OWNER

      public static final ExecuteAs OWNER
    • CALLER

      public static final ExecuteAs CALLER
  • Method Details

    • values

      public static ExecuteAs[] 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 ExecuteAs 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
    • fromString

      public static ExecuteAs fromString(String value)
      Parse an EXECUTE AS value case-insensitively; null/unrecognized → the default OWNER.