Enum MySqlObjectPrivilege
- java.lang.Object
-
- java.lang.Enum<MySqlObjectPrivilege>
-
- com.exasol.dbbuilder.dialects.mysql.MySqlObjectPrivilege
-
- All Implemented Interfaces:
ObjectPrivilege,Serializable,Comparable<MySqlObjectPrivilege>
public enum MySqlObjectPrivilege extends Enum<MySqlObjectPrivilege> implements ObjectPrivilege
MySQL object privilege as used in aGRANT.- See Also:
- MySQL documentation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERALTER_ROUTINECREATECREATE_ROUTINECREATE_TEMPORARY_TABLESCREATE_VIEWDELETEDROPEVENTEXECUTEGRANT_OPTIONINDEXINSERTLOCK_TABLESREFERENCESSELECTSHOW_VIEWTRIGGERUPDATE
-
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 MySqlObjectPrivilegevalueOf(String name)Returns the enum constant of this type with the specified name.static MySqlObjectPrivilege[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALTER
public static final MySqlObjectPrivilege ALTER
-
ALTER_ROUTINE
public static final MySqlObjectPrivilege ALTER_ROUTINE
-
CREATE
public static final MySqlObjectPrivilege CREATE
-
CREATE_ROUTINE
public static final MySqlObjectPrivilege CREATE_ROUTINE
-
CREATE_TEMPORARY_TABLES
public static final MySqlObjectPrivilege CREATE_TEMPORARY_TABLES
-
CREATE_VIEW
public static final MySqlObjectPrivilege CREATE_VIEW
-
DELETE
public static final MySqlObjectPrivilege DELETE
-
DROP
public static final MySqlObjectPrivilege DROP
-
EVENT
public static final MySqlObjectPrivilege EVENT
-
EXECUTE
public static final MySqlObjectPrivilege EXECUTE
-
GRANT_OPTION
public static final MySqlObjectPrivilege GRANT_OPTION
-
INDEX
public static final MySqlObjectPrivilege INDEX
-
INSERT
public static final MySqlObjectPrivilege INSERT
-
LOCK_TABLES
public static final MySqlObjectPrivilege LOCK_TABLES
-
REFERENCES
public static final MySqlObjectPrivilege REFERENCES
-
SELECT
public static final MySqlObjectPrivilege SELECT
-
SHOW_VIEW
public static final MySqlObjectPrivilege SHOW_VIEW
-
TRIGGER
public static final MySqlObjectPrivilege TRIGGER
-
UPDATE
public static final MySqlObjectPrivilege UPDATE
-
-
Method Detail
-
values
public static MySqlObjectPrivilege[] 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 (MySqlObjectPrivilege c : MySqlObjectPrivilege.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MySqlObjectPrivilege 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
-
-