public enum SystemPermission extends Enum<SystemPermission>
Enum Constant and Description |
---|
ALTER_TABLE |
ALTER_USER |
CREATE_TABLE |
CREATE_USER |
DROP_TABLE |
DROP_USER |
GRANT |
SYSTEM |
Modifier and Type | Method and Description |
---|---|
byte |
getId() |
static SystemPermission |
getPermissionById(byte id) |
static List<String> |
printableValues() |
static SystemPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SystemPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SystemPermission GRANT
public static final SystemPermission CREATE_TABLE
public static final SystemPermission DROP_TABLE
public static final SystemPermission ALTER_TABLE
public static final SystemPermission CREATE_USER
public static final SystemPermission DROP_USER
public static final SystemPermission ALTER_USER
public static final SystemPermission SYSTEM
public static SystemPermission[] values()
for (SystemPermission c : SystemPermission.values()) System.out.println(c);
public static SystemPermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getId()
public static SystemPermission getPermissionById(byte id)
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.