public class PrivilegeNode extends QueryTreeNode
Modifier and Type | Field and 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_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
Constructor and Description |
---|
PrivilegeNode() |
Modifier and Type | Method and Description |
---|---|
QueryTreeNode |
bind(java.util.HashMap dependencies,
java.util.List grantees,
boolean isGrant)
Bind this GrantNode.
|
void |
init(java.lang.Object objectType,
java.lang.Object objectOfPrivilege,
java.lang.Object specificPrivileges)
Initialize a PrivilegeNode for use against SYS.SYSTABLEPERMS and SYS.SYSROUTINEPERMS.
|
void |
init(java.lang.Object objectType,
java.lang.Object objectName,
java.lang.Object privilege,
java.lang.Object restrict)
Initialize a PrivilegeNode for use against SYS.SYSPERMS.
|
(package private) PrivilegeInfo |
makePrivilegeInfo() |
private StandardException |
unimplementedFeature()
Report an unimplemented feature
|
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, toString, treePrint, treePrint, verifyClassExist
public 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
public void init(java.lang.Object objectType, java.lang.Object objectOfPrivilege, java.lang.Object specificPrivileges) throws StandardException
init
in interface Node
init
in class QueryTreeNode
objectType
- (an Integer)objectOfPrivilege
- (a TableName or RoutineDesignator)specificPrivileges
- null for routines and usageStandardException
- Thrown on errorpublic void init(java.lang.Object objectType, java.lang.Object objectName, java.lang.Object privilege, java.lang.Object restrict)
init
in interface Node
init
in class QueryTreeNode
objectType
- E.g., SEQUENCEobjectName
- A possibles schema-qualified nameprivilege
- A PermDescriptor privilege, e.g. PermDescriptor.USAGE_PRIVrestrict
- True if this is a REVOKE...RESTRICT actionpublic QueryTreeNode bind(java.util.HashMap dependencies, java.util.List 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
StandardException
private StandardException unimplementedFeature()
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.