public static class MetadataAPIHelper.ShowGrantsInfo extends Object
This class represents a single privilege grant, showing what permissions have been granted to which users/roles on which database objects. Each instance represents one privilege grant entry, which can apply to databases, schemas, tables, or individual columns. Used by JDBC metadata methods like getTablePrivileges() and getColumnPrivileges() to provide structured access to privilege information.
Grant hierarchy levels:
The adminOption indicates whether the grantee can further grant this privilege to others (equivalent to "WITH GRANT OPTION" in SQL).
| Constructor and Description |
|---|
ShowGrantsInfo(String databaseName,
String schemaName,
String objectName,
String tableName,
String columnName,
String grantor,
String identityName,
String privilegeType,
boolean adminOption) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAdminOption() |
String |
getColumnName() |
String |
getDatabaseName() |
String |
getGrantor() |
String |
getIdentityName() |
String |
getObjectName() |
String |
getPrivilegeType() |
String |
getSchemaName() |
String |
getTableName() |
public String getDatabaseName()
public String getSchemaName()
public String getObjectName()
public String getTableName()
public String getColumnName()
public String getGrantor()
public String getIdentityName()
public String getPrivilegeType()
public boolean getAdminOption()
Copyright © 2025 Amazon.com Inc.. All rights reserved.