Enum MySqlGlobalPrivilege
- java.lang.Object
-
- java.lang.Enum<MySqlGlobalPrivilege>
-
- com.exasol.dbbuilder.dialects.mysql.MySqlGlobalPrivilege
-
- All Implemented Interfaces:
GlobalPrivilege,Serializable,Comparable<MySqlGlobalPrivilege>
public enum MySqlGlobalPrivilege extends Enum<MySqlGlobalPrivilege> implements GlobalPrivilege
MySQL global privilege as used in aGRANT.- See Also:
- MySQL documentation
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description default StringgetSqlName()Get a space-separated name of a privilege.Stringname()Get a privilege name as it is.static MySqlGlobalPrivilegevalueOf(String name)Returns the enum constant of this type with the specified name.static MySqlGlobalPrivilege[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final MySqlGlobalPrivilege ALL
-
ALTER
public static final MySqlGlobalPrivilege ALTER
-
ALTER_ROUTINE
public static final MySqlGlobalPrivilege ALTER_ROUTINE
-
CREATE
public static final MySqlGlobalPrivilege CREATE
-
CREATE_ROLE
public static final MySqlGlobalPrivilege CREATE_ROLE
-
CREATE_ROUTINE
public static final MySqlGlobalPrivilege CREATE_ROUTINE
-
CREATE_TABLESPACE
public static final MySqlGlobalPrivilege CREATE_TABLESPACE
-
CREATE_TEMPORARY_TABLES
public static final MySqlGlobalPrivilege CREATE_TEMPORARY_TABLES
-
CREATE_USER
public static final MySqlGlobalPrivilege CREATE_USER
-
CREATE_VIEW
public static final MySqlGlobalPrivilege CREATE_VIEW
-
DELETE
public static final MySqlGlobalPrivilege DELETE
-
DROP
public static final MySqlGlobalPrivilege DROP
-
DROP_ROLE
public static final MySqlGlobalPrivilege DROP_ROLE
-
EVENT
public static final MySqlGlobalPrivilege EVENT
-
EXECUTE
public static final MySqlGlobalPrivilege EXECUTE
-
FILE
public static final MySqlGlobalPrivilege FILE
-
GRANT_OPTION
public static final MySqlGlobalPrivilege GRANT_OPTION
-
INDEX
public static final MySqlGlobalPrivilege INDEX
-
INSERT
public static final MySqlGlobalPrivilege INSERT
-
LOCK_TABLES
public static final MySqlGlobalPrivilege LOCK_TABLES
-
PROCESS
public static final MySqlGlobalPrivilege PROCESS
-
PROXY
public static final MySqlGlobalPrivilege PROXY
-
REFERENCES
public static final MySqlGlobalPrivilege REFERENCES
-
RELOAD
public static final MySqlGlobalPrivilege RELOAD
-
REPLICATION_CLIENT
public static final MySqlGlobalPrivilege REPLICATION_CLIENT
-
REPLICATION_SLAVE
public static final MySqlGlobalPrivilege REPLICATION_SLAVE
-
SELECT
public static final MySqlGlobalPrivilege SELECT
-
SHOW_DATABASES
public static final MySqlGlobalPrivilege SHOW_DATABASES
-
SHOW_VIEW
public static final MySqlGlobalPrivilege SHOW_VIEW
-
SHUTDOWN
public static final MySqlGlobalPrivilege SHUTDOWN
-
SUPER
public static final MySqlGlobalPrivilege SUPER
-
TRIGGER
public static final MySqlGlobalPrivilege TRIGGER
-
UPDATE
public static final MySqlGlobalPrivilege UPDATE
-
USAGE
public static final MySqlGlobalPrivilege USAGE
-
-
Method Detail
-
values
public static MySqlGlobalPrivilege[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MySqlGlobalPrivilege c : MySqlGlobalPrivilege.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MySqlGlobalPrivilege valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getSqlName
public default String getSqlName()
Get a space-separated name of a privilege.- Returns:
- privilege as a string
-
name
public abstract String name()
Get a privilege name as it is.- Returns:
- privilege as a string
-
-