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
Enum Constants Enum Constant Description ALLAll MY_SQL global privilege.ALTERAlter MY_SQL global privilege.ALTER_ROUTINEAlter routine MY_SQL global privilege.CREATECreate MY_SQL global privilege.CREATE_ROLECreate role MY_SQL global privilege.CREATE_ROUTINECreate routine MY_SQL global privilege.CREATE_TABLESPACECreate tablespace MY_SQL global privilege.CREATE_TEMPORARY_TABLESCreate temporary tables MY_SQL global privilege.CREATE_USERCreate user MY_SQL global privilege.CREATE_VIEWCreate view MY_SQL global privilege.DELETEDelete MY_SQL global privilege.DROPDrop MY_SQL global privilege.DROP_ROLEDrop role MY_SQL global privilege.EVENTEvent MY_SQL global privilege.EXECUTEExecute MY_SQL global privilege.FILEFile MY_SQL global privilege.GRANT_OPTIONGrant option MY_SQL global privilege.INDEXIndex MY_SQL global privilege.INSERTInsert MY_SQL global privilege.LOCK_TABLESLock tables MY_SQL global privilege.PROCESSProcess MY_SQL global privilege.PROXYProxy MY_SQL global privilege.REFERENCESReferences MY_SQL global privilege.RELOADReload MY_SQL global privilege.REPLICATION_CLIENTReplication client MY_SQL global privilege.REPLICATION_SLAVEReplication slave MY_SQL global privilege.SELECTSelect MY_SQL global privilege.SHOW_DATABASESShow databases MY_SQL global privilege.SHOW_VIEWShow view MY_SQL global privilege.SHUTDOWNShutdown MY_SQL global privilege.SUPERSuper MY_SQL global privilege.TRIGGERTrigger MY_SQL global privilege.UPDATEUpdate MY_SQL global privilege.USAGEUsage MY_SQL global privilege.
-
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
All MY_SQL global privilege.
-
ALTER
public static final MySqlGlobalPrivilege ALTER
Alter MY_SQL global privilege.
-
ALTER_ROUTINE
public static final MySqlGlobalPrivilege ALTER_ROUTINE
Alter routine MY_SQL global privilege.
-
CREATE
public static final MySqlGlobalPrivilege CREATE
Create MY_SQL global privilege.
-
CREATE_ROLE
public static final MySqlGlobalPrivilege CREATE_ROLE
Create role MY_SQL global privilege.
-
CREATE_ROUTINE
public static final MySqlGlobalPrivilege CREATE_ROUTINE
Create routine MY_SQL global privilege.
-
CREATE_TABLESPACE
public static final MySqlGlobalPrivilege CREATE_TABLESPACE
Create tablespace MY_SQL global privilege.
-
CREATE_TEMPORARY_TABLES
public static final MySqlGlobalPrivilege CREATE_TEMPORARY_TABLES
Create temporary tables MY_SQL global privilege.
-
CREATE_USER
public static final MySqlGlobalPrivilege CREATE_USER
Create user MY_SQL global privilege.
-
CREATE_VIEW
public static final MySqlGlobalPrivilege CREATE_VIEW
Create view MY_SQL global privilege.
-
DELETE
public static final MySqlGlobalPrivilege DELETE
Delete MY_SQL global privilege.
-
DROP
public static final MySqlGlobalPrivilege DROP
Drop MY_SQL global privilege.
-
DROP_ROLE
public static final MySqlGlobalPrivilege DROP_ROLE
Drop role MY_SQL global privilege.
-
EVENT
public static final MySqlGlobalPrivilege EVENT
Event MY_SQL global privilege.
-
EXECUTE
public static final MySqlGlobalPrivilege EXECUTE
Execute MY_SQL global privilege.
-
FILE
public static final MySqlGlobalPrivilege FILE
File MY_SQL global privilege.
-
GRANT_OPTION
public static final MySqlGlobalPrivilege GRANT_OPTION
Grant option MY_SQL global privilege.
-
INDEX
public static final MySqlGlobalPrivilege INDEX
Index MY_SQL global privilege.
-
INSERT
public static final MySqlGlobalPrivilege INSERT
Insert MY_SQL global privilege.
-
LOCK_TABLES
public static final MySqlGlobalPrivilege LOCK_TABLES
Lock tables MY_SQL global privilege.
-
PROCESS
public static final MySqlGlobalPrivilege PROCESS
Process MY_SQL global privilege.
-
PROXY
public static final MySqlGlobalPrivilege PROXY
Proxy MY_SQL global privilege.
-
REFERENCES
public static final MySqlGlobalPrivilege REFERENCES
References MY_SQL global privilege.
-
RELOAD
public static final MySqlGlobalPrivilege RELOAD
Reload MY_SQL global privilege.
-
REPLICATION_CLIENT
public static final MySqlGlobalPrivilege REPLICATION_CLIENT
Replication client MY_SQL global privilege.
-
REPLICATION_SLAVE
public static final MySqlGlobalPrivilege REPLICATION_SLAVE
Replication slave MY_SQL global privilege.
-
SELECT
public static final MySqlGlobalPrivilege SELECT
Select MY_SQL global privilege.
-
SHOW_DATABASES
public static final MySqlGlobalPrivilege SHOW_DATABASES
Show databases MY_SQL global privilege.
-
SHOW_VIEW
public static final MySqlGlobalPrivilege SHOW_VIEW
Show view MY_SQL global privilege.
-
SHUTDOWN
public static final MySqlGlobalPrivilege SHUTDOWN
Shutdown MY_SQL global privilege.
-
SUPER
public static final MySqlGlobalPrivilege SUPER
Super MY_SQL global privilege.
-
TRIGGER
public static final MySqlGlobalPrivilege TRIGGER
Trigger MY_SQL global privilege.
-
UPDATE
public static final MySqlGlobalPrivilege UPDATE
Update MY_SQL global privilege.
-
USAGE
public static final MySqlGlobalPrivilege USAGE
Usage MY_SQL global privilege.
-
-
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
-
-