public enum SQLPrivTypeGrant extends Enum<SQLPrivTypeGrant>
| Enum Constant and Description |
|---|
ADMIN_PRIV |
DELETE_NOGRANT |
DELETE_WGRANT |
INSERT_NOGRANT |
INSERT_WGRANT |
OWNER_PRIV |
SELECT_NOGRANT |
SELECT_WGRANT |
UPDATE_NOGRANT |
UPDATE_WGRANT |
| Modifier and Type | Method and Description |
|---|---|
SQLPrivilegeType |
getPrivType() |
static SQLPrivTypeGrant |
getSQLPrivTypeGrant(SQLPrivilegeType privType,
boolean isGrant)
Find matching enum
|
static SQLPrivTypeGrant |
getSQLPrivTypeGrant(String privTypeStr,
boolean isGrant)
Find matching enum
|
boolean |
isWithGrant() |
String |
toString() |
static SQLPrivTypeGrant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SQLPrivTypeGrant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLPrivTypeGrant SELECT_NOGRANT
public static final SQLPrivTypeGrant SELECT_WGRANT
public static final SQLPrivTypeGrant INSERT_NOGRANT
public static final SQLPrivTypeGrant INSERT_WGRANT
public static final SQLPrivTypeGrant UPDATE_NOGRANT
public static final SQLPrivTypeGrant UPDATE_WGRANT
public static final SQLPrivTypeGrant DELETE_NOGRANT
public static final SQLPrivTypeGrant DELETE_WGRANT
public static final SQLPrivTypeGrant OWNER_PRIV
public static final SQLPrivTypeGrant ADMIN_PRIV
public static SQLPrivTypeGrant[] values()
for (SQLPrivTypeGrant c : SQLPrivTypeGrant.values()) System.out.println(c);
public static SQLPrivTypeGrant 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 static SQLPrivTypeGrant getSQLPrivTypeGrant(SQLPrivilegeType privType, boolean isGrant)
privType - isGrant - public static SQLPrivTypeGrant getSQLPrivTypeGrant(String privTypeStr, boolean isGrant) throws HiveAuthzPluginException
privTypeStr - privilege type stringisGrant - HiveAuthzPluginExceptionpublic SQLPrivilegeType getPrivType()
public boolean isWithGrant()
public String toString()
toString in class Enum<SQLPrivTypeGrant>Copyright © 2015 The Apache Software Foundation. All rights reserved.