Enum Class Privilege

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

public enum Privilege extends Enum<Privilege>
Privilege types in Snowflake Based on: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege
  • Enum Constant Details

    • CREATE_ACCOUNT

      public static final Privilege CREATE_ACCOUNT
    • CREATE_DATABASE

      public static final Privilege CREATE_DATABASE
    • CREATE_INTEGRATION

      public static final Privilege CREATE_INTEGRATION
    • CREATE_NETWORK_POLICY

      public static final Privilege CREATE_NETWORK_POLICY
    • CREATE_ROLE

      public static final Privilege CREATE_ROLE
    • CREATE_USER

      public static final Privilege CREATE_USER
    • CREATE_WAREHOUSE

      public static final Privilege CREATE_WAREHOUSE
    • APPLY_MASKING_POLICY

      public static final Privilege APPLY_MASKING_POLICY
    • APPLY_ROW_ACCESS_POLICY

      public static final Privilege APPLY_ROW_ACCESS_POLICY
    • APPLY_SESSION_POLICY

      public static final Privilege APPLY_SESSION_POLICY
    • APPLY_TAG

      public static final Privilege APPLY_TAG
    • EXECUTE_TASK

      public static final Privilege EXECUTE_TASK
    • IMPORT_SHARE

      public static final Privilege IMPORT_SHARE
    • MANAGE_GRANTS

      public static final Privilege MANAGE_GRANTS
    • MONITOR_EXECUTION

      public static final Privilege MONITOR_EXECUTION
    • MONITOR_USAGE

      public static final Privilege MONITOR_USAGE
    • SELECT

      public static final Privilege SELECT
    • INSERT

      public static final Privilege INSERT
    • UPDATE

      public static final Privilege UPDATE
    • DELETE

      public static final Privilege DELETE
    • TRUNCATE

      public static final Privilege TRUNCATE
    • CREATE

      public static final Privilege CREATE
    • DROP

      public static final Privilege DROP
    • ALTER

      public static final Privilege ALTER
    • MODIFY

      public static final Privilege MODIFY
    • CREATE_SCHEMA

      public static final Privilege CREATE_SCHEMA
    • CREATE_TABLE

      public static final Privilege CREATE_TABLE
    • CREATE_VIEW

      public static final Privilege CREATE_VIEW
    • CREATE_STAGE

      public static final Privilege CREATE_STAGE
    • CREATE_FILE_FORMAT

      public static final Privilege CREATE_FILE_FORMAT
    • CREATE_SEQUENCE

      public static final Privilege CREATE_SEQUENCE
    • CREATE_FUNCTION

      public static final Privilege CREATE_FUNCTION
    • CREATE_PROCEDURE

      public static final Privilege CREATE_PROCEDURE
    • CREATE_PIPE

      public static final Privilege CREATE_PIPE
    • CREATE_STREAM

      public static final Privilege CREATE_STREAM
    • CREATE_TASK

      public static final Privilege CREATE_TASK
    • CREATE_MASKING_POLICY

      public static final Privilege CREATE_MASKING_POLICY
    • CREATE_ROW_ACCESS_POLICY

      public static final Privilege CREATE_ROW_ACCESS_POLICY
    • CREATE_TAG

      public static final Privilege CREATE_TAG
    • USAGE

      public static final Privilege USAGE
    • OPERATE

      public static final Privilege OPERATE
    • MONITOR

      public static final Privilege MONITOR
    • READ

      public static final Privilege READ
    • WRITE

      public static final Privilege WRITE
    • EXECUTE

      public static final Privilege EXECUTE
    • REFERENCES

      public static final Privilege REFERENCES
    • OWNERSHIP

      public static final Privilege OWNERSHIP
    • APPLY

      public static final Privilege APPLY
    • IMPORTED_PRIVILEGES

      public static final Privilege IMPORTED_PRIVILEGES
    • USE_ANY_ROLE

      public static final Privilege USE_ANY_ROLE
    • ALL

      public static final Privilege ALL
  • Method Details

    • values

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