StatementColumnPermissionpublic class StatementTablePermission extends StatementPermission
| Modifier and Type | Field | Description |
|---|---|---|
(package private) int |
privType |
|
(package private) UUID |
tableUUID |
| Constructor | Description |
|---|---|
StatementTablePermission(UUID tableUUID,
int privType) |
Constructor for StatementTablePermission.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
check(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation) |
|
boolean |
equals(java.lang.Object obj) |
Routine to check if another instance of access descriptor matches this.
|
PermissionsDescriptor |
getPermissionDescriptor(java.lang.String authid,
DataDictionary dd) |
Get the PermissionsDescriptor for the passed authorization id for this
object.
|
java.lang.String |
getPrivName() |
Return privilege needed for this access as string
|
int |
getPrivType() |
Return privilege access requested for this access descriptor
|
protected TableDescriptor |
getTableDescriptor(DataDictionary dd) |
|
UUID |
getTableUUID() |
Return table UUID for this access descriptor
|
int |
hashCode() |
Return hash code for this instance
|
protected boolean |
hasPermissionOnTable(LanguageConnectionContext lcc,
Activation activation,
boolean forGrant,
ExecPreparedStatement ps) |
Check if current session has permission on the table (current user,
PUBLIC or role) and, if applicable, register a dependency of ps on the
current role.
|
protected boolean |
oneAuthHasPermissionOnTable(DataDictionary dd,
java.lang.String authorizationId,
boolean forGrant) |
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgenericCheck, getObjectType, getPrivilegedObject, isCorrectPermissionUUID tableUUID
int privType
public StatementTablePermission(UUID tableUUID, int privType)
tableUUID - UUID of the tableprivType - Access privilege requestedpublic int getPrivType()
public UUID getTableUUID()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Another instance of StatementPermissionpublic int hashCode()
hashCode in class java.lang.Objectpublic void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException
check in class StatementPermissionlcc - LanguageConnectionContextactivation - activation for statement needing checkStandardException - if the permission has not been grantedStatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, boolean, org.apache.derby.iapi.sql.Activation)protected TableDescriptor getTableDescriptor(DataDictionary dd) throws StandardException
StandardExceptionprotected boolean hasPermissionOnTable(LanguageConnectionContext lcc, Activation activation, boolean forGrant, ExecPreparedStatement ps) throws StandardException
lcc - the current language connection contextactivation - the activation of psforGrant - true if FOR GRANT is requiredps - the prepared statement for which we are checking necessary
privilegesStandardExceptionprotected boolean oneAuthHasPermissionOnTable(DataDictionary dd, java.lang.String authorizationId, boolean forGrant) throws StandardException
StandardExceptionpublic PermissionsDescriptor getPermissionDescriptor(java.lang.String authid, DataDictionary dd) throws StandardException
StatementPermissiongetPermissionDescriptor in class StatementPermissionauthid - AuthorizationIddd - DataDictionaryStandardExceptionStatementPermission.getPermissionDescriptor(java.lang.String, org.apache.derby.iapi.sql.dictionary.DataDictionary)public java.lang.String getPrivName()
public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.