Enum ExasolObjectPrivilege
- java.lang.Object
-
- java.lang.Enum<ExasolObjectPrivilege>
-
- com.exasol.dbbuilder.dialects.exasol.ExasolObjectPrivilege
-
- All Implemented Interfaces:
ObjectPrivilege,Serializable,Comparable<ExasolObjectPrivilege>
public enum ExasolObjectPrivilege extends Enum<ExasolObjectPrivilege> implements ObjectPrivilege
Exasol object privilege as used in aGRANT.- See Also:
- Exasol documentation*
-
-
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 ExasolObjectPrivilegevalueOf(String name)Returns the enum constant of this type with the specified name.static ExasolObjectPrivilege[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECT
public static final ExasolObjectPrivilege SELECT
-
INSERT
public static final ExasolObjectPrivilege INSERT
-
DELETE
public static final ExasolObjectPrivilege DELETE
-
UPDATE
public static final ExasolObjectPrivilege UPDATE
-
ALTER
public static final ExasolObjectPrivilege ALTER
-
REFERENCES
public static final ExasolObjectPrivilege REFERENCES
-
EXECUTE
public static final ExasolObjectPrivilege EXECUTE
-
-
Method Detail
-
values
public static ExasolObjectPrivilege[] 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 (ExasolObjectPrivilege c : ExasolObjectPrivilege.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExasolObjectPrivilege 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
-
-