Visitable
class SetRoleNode extends MiscellaneousStatementNode
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
name |
|
private int |
type |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
EMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION
Constructor | Description |
---|---|
SetRoleNode(java.lang.String roleName,
int type,
ContextManager cm) |
Modifier and Type | Method | Description |
---|---|---|
(package private) int |
activationKind() |
Override: Returns the type of activation this class
generates.
|
(package private) void |
generate(ActivationClassBuilder acb,
MethodBuilder mb) |
Override: Generate code, need to push parameters
|
private void |
generateParameterValueSet(ActivationClassBuilder acb) |
Generate the code to create the ParameterValueSet, if necessary,
when constructing the activation.
|
boolean |
isAtomic() |
Override to allow committing of reading SYSROLES,
cf.
|
ConstantAction |
makeConstantAction() |
Create the Constant information that will drive the guts of
Execution.
|
java.lang.String |
statementToString() |
|
java.lang.String |
toString() |
Convert this object to a String.
|
needsSavepoint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, acceptChildren, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
bindStatement, executeSchemaName, executeStatementName, generate, getCursorInfo, getSPSName, lockTableForCompilation, makeResultDescription, optimizeStatement, updateIndexStatisticsFor
SetRoleNode(java.lang.String roleName, int type, ContextManager cm) throws StandardException
roleName
- The name of the new role, null if NONE specifiedtype
- Type of role name could be USER or dynamic parametercm
- Context managerStandardException
public java.lang.String toString()
toString
in class StatementNode
public java.lang.String statementToString()
statementToString
in class StatementNode
public ConstantAction makeConstantAction() throws StandardException
makeConstantAction
in class QueryTreeNode
StandardException
- Thrown on failurevoid generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException
generate
in class MiscellaneousStatementNode
acb
- The ActivationClassBuilder for the class being builtmb
- the method for the execute() method to be builtStandardException
- Thrown on errorprivate void generateParameterValueSet(ActivationClassBuilder acb) throws StandardException
acb
- The ActivationClassBuilder for the class we're buildingStandardException
- Thrown on errorint activationKind()
activationKind
in class MiscellaneousStatementNode
public boolean isAtomic()
isAtomic
in class StatementNode
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.