Class StatementSchemaPermission
java.lang.Object
org.apache.derby.iapi.sql.dictionary.StatementPermission
org.apache.derby.iapi.sql.dictionary.StatementSchemaPermission
This class describes a schema permission required by a statement.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(LanguageConnectionContext lcc, boolean forGrant, Activation activation) getPermissionDescriptor(String authid, DataDictionary dd) 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 nullprivate StringtoString()Methods inherited from class StatementPermission
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission
-
Field Details
-
schemaName
The schema name -
aid
Authorization id -
privType
private int privTypeOne of Authorizer.CREATE_SCHEMA_PRIV, MODIFY_SCHEMA_PRIV, DROP_SCHEMA_PRIV, etc.
-
-
Constructor Details
-
StatementSchemaPermission
-
-
Method Details
-
check
public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException - Specified by:
checkin classStatementPermission- Parameters:
lcc- LanguageConnectionContextforGrant-activation- activation for statement needing check- Throws:
StandardException- if the permission has not been granted- See Also:
-
getPermissionDescriptor
public PermissionsDescriptor getPermissionDescriptor(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:
getPermissionDescriptorin classStatementPermission- Parameters:
authid- AuthorizationIddd- DataDictionary- Returns:
- PermissionsDescriptor The PermissionsDescriptor for the passed authorization id on this object
- Throws:
StandardException- See Also:
-
getPrivName
-
toString
-