org.apache.derby.iapi.sql.dictionary
Class StatementSchemaPermission
java.lang.Object
org.apache.derby.iapi.sql.dictionary.StatementPermission
org.apache.derby.iapi.sql.dictionary.StatementSchemaPermission
public class StatementSchemaPermission
- extends StatementPermission
This class describes a schema permission required by a statement.
|
Field Summary |
private java.lang.String |
aid
Authorization id |
private int |
privType
One of Authorizer.CREATE_SCHEMA_PRIV, MODIFY_SCHEMA_PRIV,
DROP_SCHEMA_PRIV, etc. |
private java.lang.String |
schemaName
The schema name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
schemaName
private java.lang.String schemaName
- The schema name
aid
private java.lang.String aid
- Authorization id
privType
private int privType
- One of Authorizer.CREATE_SCHEMA_PRIV, MODIFY_SCHEMA_PRIV,
DROP_SCHEMA_PRIV, etc.
StatementSchemaPermission
public StatementSchemaPermission(java.lang.String schemaName,
java.lang.String aid,
int privType)
check
public void check(LanguageConnectionContext lcc,
boolean forGrant,
Activation activation)
throws StandardException
- Specified by:
check in class StatementPermission
- Parameters:
lcc - LanguageConnectionContextactivation - activation for statement needing check
- Throws:
StandardException - if the permission has not been granted- See Also:
StatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, boolean, org.apache.derby.iapi.sql.Activation)
getPermissionDescriptor
public PermissionsDescriptor getPermissionDescriptor(java.lang.String authid,
DataDictionary dd)
throws StandardException
- Schema level permission is never required as list of privileges required
for triggers/constraints/views and hence we don't do any work here, but
simply return null
- Specified by:
getPermissionDescriptor in class StatementPermission
- Parameters:
authid - AuthorizationIddd - DataDictionary
- Returns:
- PermissionsDescriptor The PermissionsDescriptor for the passed
authorization id on this object
- Throws:
StandardException- See Also:
StatementPermission.check(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, boolean, org.apache.derby.iapi.sql.Activation)
getPrivName
private java.lang.String getPrivName()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.