Top Description Fields Constructors Methods
org.apache.derby.iapi.sql.dictionary

public Class StatementRolePermission

extends StatementPermission
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.conn.Authorizer, .LanguageConnectionContext, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.Activation

This class describes a role permission required by a statement.

Field Summary

Modifier and TypeField and Description
private int
private String

Constructor Summary

AccessConstructor and Description
public
StatementRolePermission(String
The role name involved in the operation
roleName
,
int
One of Authorizer.CREATE_ROLE_PRIV, DROP_ROLE_PRIV.
privType
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public void
check(LanguageConnectionContext
LanguageConnectionContext
lcc
,
boolean forGrant, Activation
activation for statement needing check
activation
)

Implements abstract org.apache.derby.iapi.sql.dictionary.StatementPermission.check.

public PermissionsDescriptor
getPermissionDescriptor(String
AuthorizationId
authid
,
DataDictionary
DataDictionary
dd
)

Implements abstract org.apache.derby.iapi.sql.dictionary.StatementPermission.getPermissionDescriptor.

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

private String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.derby.iapi.sql.dictionary.StatementPermission:
genericCheckgetObjectTypegetPrivilegedObjectisCorrectPermission

Field Detail

privTypeback to summary
private int privType
roleNameback to summary
private String roleName

Constructor Detail

StatementRolePermissionback to summary
public StatementRolePermission(String roleName, int privType)

Constructor

Parameters
roleName:String

The role name involved in the operation

privType:int

One of Authorizer.CREATE_ROLE_PRIV, DROP_ROLE_PRIV.

Method Detail

checkback to summary
public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.StatementPermission.check.

Parameters
lcc:LanguageConnectionContext

Doc from org.apache.derby.iapi.sql.dictionary.StatementPermission.check.

LanguageConnectionContext

activation:Activation

Doc from org.apache.derby.iapi.sql.dictionary.StatementPermission.check.

activation for statement needing check

Exceptions
StandardException:

Doc from org.apache.derby.iapi.sql.dictionary.StatementPermission.check.

if the permission has not been granted

See Also
StatementPermission#check
getPermissionDescriptorback to summary
public PermissionsDescriptor getPermissionDescriptor(String authid, DataDictionary dd) throws StandardException

Implements abstract org.apache.derby.iapi.sql.dictionary.StatementPermission.getPermissionDescriptor.

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

Parameters
authid:String

Doc from org.apache.derby.iapi.sql.dictionary.StatementPermission.getPermissionDescriptor.

AuthorizationId

dd:DataDictionary

Doc from org.apache.derby.iapi.sql.dictionary.StatementPermission.getPermissionDescriptor.

DataDictionary

Returns:PermissionsDescriptor

Doc from org.apache.derby.iapi.sql.dictionary.StatementPermission.getPermissionDescriptor.

PermissionsDescriptor The PermissionsDescriptor for the passed authorization id on this object

See Also
StatementPermission#check
getPrivNameback to summary
private String getPrivName()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object