Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class RevokeRoleConstantAction

extends DDLConstantAction
Class Inheritance
Imports
java.util.Iterator, .List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, .Authorizer, org.apache.derby.iapi.sql.depend.DependencyManager, org.apache.derby.iapi.sql.dictionary.RoleGrantDescriptor, .DataDictionary, .RoleClosureIterator, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.shared.common.sanity.SanityManager

This class performs actions that are ALWAYS performed for a REVOKE role statement at execution time.

Field Summary

Modifier and TypeField and Description
private List<E>
private List<E>
private final boolean

Constructor Summary

AccessConstructor and Description
public
RevokeRoleConstantAction(List<E>
List of the name of the role names being revoked
roleNames
,
List<E>
List of the authorization ids granted to role
grantees
)

Make the ConstantAction for a CREATE ROLE statement.

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for REVOKE role.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.derby.impl.sql.execute.DDLConstantAction:
addColumnDependenciesadjustUDTDependenciesadjustUDTDependenciesconstructToStringgetAndCheckSchemaDescriptorgetSchemaDescriptorForCreatelockTableForDDLstoreConstraintDependenciesOnPrivilegesstoreViewTriggerDependenciesOnPrivileges

Field Detail

granteesback to summary
private List<E> grantees
roleNamesback to summary
private List<E> roleNames
withAdminOptionback to summary
private final boolean withAdminOption

Constructor Detail

RevokeRoleConstantActionback to summary
public RevokeRoleConstantAction(List<E> roleNames, List<E> grantees)

Make the ConstantAction for a CREATE ROLE statement. When executed, will create a role by the given name.

Parameters
roleNames:List<E>

List of the name of the role names being revoked

grantees:List<E>

List of the authorization ids granted to role

Method Detail

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for REVOKE role.

Parameters
activation:Activation

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

The execution environment for this constant action.

Exceptions
StandardException:

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

Thrown on failure

See Also
org.apache.derby.iapi.sql.execute.ConstantAction#executeConstantAction
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