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

pack-priv Class GrantRoleNode

extends DDLStatementNode
Class Inheritance
Imports
java.util.List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ConstantAction

This class represents a GRANT role statement.

Field Summary

Modifier and TypeField and Description
private List<String>
private List<String>
Inherited from org.apache.derby.impl.sql.compile.DDLStatementNode:
ADD_TYPEDROP_STATISTICSDROP_TYPEimplicitCreateSchemaLOCKING_TYPEMODIFY_TYPEUNKNOWN_TYPEUPDATE_STATISTICS

Constructor Summary

AccessConstructor and Description
pack-priv
GrantRoleNode(List<String>
list of strings containing role name to be granted
roles
,
List<String>
list of strings containing grantee names
grantees
,
ContextManager
context manager
cm
)

Constructor for GrantRoleNode.

Method Summary

Modifier and TypeMethod and Description
public ConstantAction
makeConstantAction()

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.makeConstantAction.

Create the Constant information that will drive the guts of Execution.

public String
public String

Returns:

This object as a String
toString
()

Overrides org.apache.derby.impl.sql.compile.DDLStatementNode.toString.

Convert this object to a String.

Inherited from org.apache.derby.impl.sql.compile.DDLStatementNode:
acceptChildrenactivationKindgenerategetFullNamegetObjectNamegetRelativeNamegetSchemaDescriptorgetSchemaDescriptorgetTableDescriptorgetTableDescriptorgetTableDescriptorgetTableDescriptorinitAndCheckisAtomicmakeFromList

Field Detail

granteesback to summary
private List<String> grantees
rolesback to summary
private List<String> roles

Constructor Detail

GrantRoleNodeback to summary
pack-priv GrantRoleNode(List<String> roles, List<String> grantees, ContextManager cm) throws StandardException

Constructor for GrantRoleNode.

Parameters
roles:List<String>

list of strings containing role name to be granted

grantees:List<String>

list of strings containing grantee names

cm:ContextManager

context manager

Method Detail

makeConstantActionback to summary
public ConstantAction makeConstantAction() throws StandardException

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.makeConstantAction.

Create the Constant information that will drive the guts of Execution.

Annotations
@Override
Exceptions
StandardException:
Standard error policy.
statementToStringback to summary
public String statementToString()

Implements abstract org.apache.derby.impl.sql.compile.StatementNode.statementToString.

toStringback to summary
public String toString()

Overrides org.apache.derby.impl.sql.compile.DDLStatementNode.toString.

Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Returns:String

This object as a String

Annotations
@Override