public static enum Privilege.PrivilegeType extends java.lang.Enum<Privilege.PrivilegeType>
Enum Constant and Description |
---|
ALL |
ALTER_DATA |
ALTER_METADATA |
CREATE |
DROP |
INDEX |
LOCK |
SELECT |
SHOW_DATABASE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Privilege.PrivilegeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Privilege.PrivilegeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Privilege.PrivilegeType ALL
public static final Privilege.PrivilegeType ALTER_DATA
public static final Privilege.PrivilegeType ALTER_METADATA
public static final Privilege.PrivilegeType CREATE
public static final Privilege.PrivilegeType DROP
public static final Privilege.PrivilegeType INDEX
public static final Privilege.PrivilegeType LOCK
public static final Privilege.PrivilegeType SELECT
public static final Privilege.PrivilegeType SHOW_DATABASE
public static final Privilege.PrivilegeType UNKNOWN
public static Privilege.PrivilegeType[] values()
for (Privilege.PrivilegeType c : Privilege.PrivilegeType.values()) System.out.println(c);
public static Privilege.PrivilegeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2012 The Apache Software Foundation