public enum PrivilegeType extends Enum<PrivilegeType>
| Enum Constant and Description |
|---|
ALL |
ALTER_DATA |
ALTER_METADATA |
CREATE |
DELETE |
DROP |
INSERT |
LOCK |
SELECT |
SHOW_DATABASE |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static PrivilegeType |
getPrivTypeByName(String privilegeName)
Do case insensitive lookup of PrivilegeType with this name
|
static PrivilegeType |
getPrivTypeByToken(int token)
Do case lookup of PrivilegeType associated with this antlr token
|
Integer |
getToken() |
String |
toString() |
static PrivilegeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrivilegeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrivilegeType ALL
public static final PrivilegeType ALTER_DATA
public static final PrivilegeType ALTER_METADATA
public static final PrivilegeType CREATE
public static final PrivilegeType DROP
public static final PrivilegeType LOCK
public static final PrivilegeType SELECT
public static final PrivilegeType SHOW_DATABASE
public static final PrivilegeType INSERT
public static final PrivilegeType DELETE
public static final PrivilegeType UNKNOWN
public static PrivilegeType[] values()
for (PrivilegeType c : PrivilegeType.values()) System.out.println(c);
public static PrivilegeType 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 String toString()
toString in class Enum<PrivilegeType>public Integer getToken()
public static PrivilegeType getPrivTypeByToken(int token)
token - public static PrivilegeType getPrivTypeByName(String privilegeName)
privilegeName - Copyright © 2024 The Apache Software Foundation. All rights reserved.