@Public public enum PrivilegeType extends Enum<PrivilegeType>
Enum Constant and Description |
---|
ADMIN |
ALTER_TABLE |
CREATE_DATABASE |
CREATE_TABLE |
DROP_DATABASE |
DROP_TABLE |
INSERT |
SELECT |
Modifier and Type | Method and Description |
---|---|
boolean |
canGrantOnCatalog() |
boolean |
canGrantOnDatabase() |
boolean |
canGrantOnTable() |
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 SELECT
public static final PrivilegeType INSERT
public static final PrivilegeType ALTER_TABLE
public static final PrivilegeType DROP_TABLE
public static final PrivilegeType CREATE_TABLE
public static final PrivilegeType DROP_DATABASE
public static final PrivilegeType CREATE_DATABASE
public static final PrivilegeType ADMIN
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 boolean canGrantOnCatalog()
public boolean canGrantOnDatabase()
public boolean canGrantOnTable()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.