public enum PrivilegeScope extends Enum<PrivilegeScope>
Enum Constant and Description |
---|
COLUMN_LEVEL_SCOPE |
DB_LEVEL_SCOPE |
TABLE_LEVEL_SCOPE |
USER_LEVEL_SCOPE |
Modifier and Type | Field and Description |
---|---|
static EnumSet<PrivilegeScope> |
ALLSCOPE |
static EnumSet<PrivilegeScope> |
ALLSCOPE_EXCEPT_COLUMN |
Modifier and Type | Method and Description |
---|---|
short |
getMode() |
void |
setMode(short mode) |
static PrivilegeScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrivilegeScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrivilegeScope USER_LEVEL_SCOPE
public static final PrivilegeScope DB_LEVEL_SCOPE
public static final PrivilegeScope TABLE_LEVEL_SCOPE
public static final PrivilegeScope COLUMN_LEVEL_SCOPE
public static EnumSet<PrivilegeScope> ALLSCOPE
public static EnumSet<PrivilegeScope> ALLSCOPE_EXCEPT_COLUMN
public static PrivilegeScope[] values()
for (PrivilegeScope c : PrivilegeScope.values()) System.out.println(c);
public static PrivilegeScope 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 short getMode()
public void setMode(short mode)
Copyright © 2017 The Apache Software Foundation. All rights reserved.