Class StatementRolePermission
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.StatementPermission
-
- org.apache.derby.iapi.sql.dictionary.StatementRolePermission
-
public class StatementRolePermission extends StatementPermission
This class describes a role permission required by a statement.
-
-
Constructor Summary
Constructors Constructor Description StatementRolePermission(java.lang.String roleName, int privType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(LanguageConnectionContext lcc, boolean forGrant, Activation activation)
PermissionsDescriptor
getPermissionDescriptor(java.lang.String authid, DataDictionary dd)
Role 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 java.lang.String
getPrivName()
java.lang.String
toString()
-
Methods inherited from class org.apache.derby.iapi.sql.dictionary.StatementPermission
genericCheck, getObjectType, getPrivilegedObject, isCorrectPermission
-
-
-
-
Method Detail
-
check
public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException
- Specified by:
check
in classStatementPermission
- 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
Role 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 classStatementPermission
- 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 classjava.lang.Object
-
-