Class TablePrivilegesNode
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.TablePrivilegesNode
- All Implemented Interfaces:
Visitable
This class represents a set of privileges on one table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean[]
private FormatableBitSet[]
private ResultColumnList[]
private TableDescriptor
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addAction
(int action, ResultColumnList privilegeColumnList) Add one action to the privileges for this table(package private) void
addAll()
Add all actions(package private) void
bind
(TableDescriptor td, boolean isGrant) Bind.private void
Retrieve all the underlying stored dependencies such as table(s), view(s) and routine(s) descriptors which the view depends on.(package private) PrivilegeInfo
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, acceptChildren, 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, verifyClassExist
-
Field Details
-
actionAllowed
private boolean[] actionAllowed -
columnLists
-
columnBitSets
-
td
-
descriptorList
-
-
Constructor Details
-
TablePrivilegesNode
TablePrivilegesNode(ContextManager cm)
-
-
Method Details
-
addAll
void addAll()Add all actions -
addAction
Add one action to the privileges for this table- Parameters:
action
- The action typeprivilegeColumnList
- The set of privilege columns. Null for all columns- Throws:
StandardException
- standard error policy.
-
bind
Bind.- Parameters:
td
- The table descriptorisGrant
- grant if true; revoke if false- Throws:
StandardException
-
makePrivilegeInfo
PrivilegeInfo makePrivilegeInfo()- Returns:
- PrivilegeInfo for this node
-
bindPrivilegesForView
Retrieve all the underlying stored dependencies such as table(s), view(s) and routine(s) descriptors which the view depends on. This information is then passed to the runtime to determine if the privilege is grantable to the grantees by this grantor at execution time. Go through the providers regardless who the grantor is since the statement cache may be in effect.- Parameters:
td
- the TableDescriptor to check- Throws:
StandardException
- standard error policy.
-