class GrantRoleConstantAction extends DDLConstantAction
Modifier and Type | Field and Description |
---|---|
private java.util.List |
grantees |
private java.util.List |
roleNames |
private boolean |
withAdminOption |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor and Description |
---|
GrantRoleConstantAction(java.util.List roleNames,
java.util.List grantees)
Make the ConstantAction for a CREATE ROLE statement.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkCircularity(java.lang.String role,
java.lang.String grantee,
java.lang.String grantor,
TransactionController tc,
DataDictionary dd)
Check that allowing this grant to go ahead does nto create a
circularity in the GRANT role relation graph, cf.
|
void |
executeConstantAction(Activation activation)
This is the guts of the Execution-time logic for GRANT role.
|
java.lang.String |
toString() |
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
private java.util.List roleNames
private java.util.List grantees
private final boolean withAdminOption
public GrantRoleConstantAction(java.util.List roleNames, java.util.List grantees)
roleNames
- List of the names of the roles being grantedgrantees
- List of the authorization ids granted to rolepublic void executeConstantAction(Activation activation) throws StandardException
activation
- The execution environment for this constant action.StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
private void checkCircularity(java.lang.String role, java.lang.String grantee, java.lang.String grantor, TransactionController tc, DataDictionary dd) throws StandardException
role
- The role about to be grantedgrantee
- The role to which role
is to be grantedgrantor
- Who does the grantingStandardException
- normal error policy. Throws
AUTH_ROLE_GRANT_CIRCULARITY if a
circularity is detected.public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.