Visitableclass PrivilegeNode extends QueryTreeNode
| Modifier and Type | Field | Description |
|---|---|---|
static int |
AGGREGATE_PRIVILEGES |
|
private Provider |
dependencyProvider |
|
private TableName |
objectName |
|
private int |
objectType |
|
private java.lang.String |
privilege |
|
private boolean |
restrict |
|
static int |
ROUTINE_PRIVILEGES |
|
private RoutineDesignator |
routineDesignator |
|
static int |
SEQUENCE_PRIVILEGES |
|
private TablePrivilegesNode |
specificPrivileges |
|
static int |
TABLE_PRIVILEGES |
|
static int |
UDT_PRIVILEGES |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor | Description |
|---|---|
PrivilegeNode(int objectType,
java.lang.Object objectOfPrivilege,
TablePrivilegesNode specificPrivileges,
ContextManager cm) |
Initialize a PrivilegeNode for use against SYS.SYSTABLEPERMS and SYS.SYSROUTINEPERMS.
|
PrivilegeNode(int objectType,
TableName objectName,
java.lang.String privilege,
boolean restrict,
ContextManager cm) |
Constructor a PrivilegeNode for use against SYS.SYSPERMS.
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) void |
acceptChildren(Visitor v) |
Accept a visitor on all child nodes.
|
QueryTreeNode |
bind(java.util.HashMap<Provider,Provider> dependencies,
java.util.List<java.lang.String> grantees,
boolean isGrant) |
Bind this GrantNode.
|
(package private) PrivilegeInfo |
makePrivilegeInfo() |
|
private StandardException |
unimplementedFeature() |
Report an unimplemented feature
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generate, 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, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, toString, treePrint, treePrint, verifyClassExistpublic static final int TABLE_PRIVILEGES
public static final int ROUTINE_PRIVILEGES
public static final int SEQUENCE_PRIVILEGES
public static final int UDT_PRIVILEGES
public static final int AGGREGATE_PRIVILEGES
private int objectType
private TableName objectName
private TablePrivilegesNode specificPrivileges
private RoutineDesignator routineDesignator
private java.lang.String privilege
private boolean restrict
private Provider dependencyProvider
PrivilegeNode(int objectType,
java.lang.Object objectOfPrivilege,
TablePrivilegesNode specificPrivileges,
ContextManager cm)
throws StandardException
objectType - objectOfPrivilege - (a TableName or RoutineDesignator)specificPrivileges - null for routines and usagecm - the context managerStandardExceptionPrivilegeNode(int objectType,
TableName objectName,
java.lang.String privilege,
boolean restrict,
ContextManager cm)
objectType - E.g., SEQUENCEobjectName - A possibles schema-qualified nameprivilege - A PermDescriptor privilege, e.g.
PermDescriptor.USAGE_PRIVrestrict - True if this is a REVOKE...RESTRICT actioncm - The context managerpublic QueryTreeNode bind(java.util.HashMap<Provider,Provider> dependencies, java.util.List<java.lang.String> grantees, boolean isGrant) throws StandardException
dependencies - The list of privilege objects that this statement has already seen.
If the object of this privilege is not in the list then this statement is registered
as dependent on the object.grantees - The list of granteesisGrant - grant if true; revoke if falseStandardException - Standard error policy.PrivilegeInfo makePrivilegeInfo() throws StandardException
StandardExceptionprivate StandardException unimplementedFeature()
void acceptChildren(Visitor v) throws StandardException
QueryTreeNodeaccept(v) on all visitable fields, as well as
super.acceptChildren(v) to make sure all visitable fields
defined by the super-class are accepted too.acceptChildren in class QueryTreeNodev - the visitorStandardException - on errors raised by the visitorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.