Class TablePrivilegesNode
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.QueryTreeNode
-
- org.apache.derby.impl.sql.compile.TablePrivilegesNode
-
- All Implemented Interfaces:
Visitable
class TablePrivilegesNode extends QueryTreeNode
This class represents a set of privileges on one table.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean[]
actionAllowed
private FormatableBitSet[]
columnBitSets
private ResultColumnList[]
columnLists
private java.util.List<Provider>
descriptorList
private TableDescriptor
td
-
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 Constructor Description TablePrivilegesNode(ContextManager cm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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
bindPrivilegesForView(TableDescriptor td)
Retrieve all the underlying stored dependencies such as table(s), view(s) and routine(s) descriptors which the view depends on.(package private) PrivilegeInfo
makePrivilegeInfo()
-
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 Detail
-
actionAllowed
private boolean[] actionAllowed
-
columnLists
private ResultColumnList[] columnLists
-
columnBitSets
private FormatableBitSet[] columnBitSets
-
td
private TableDescriptor td
-
descriptorList
private java.util.List<Provider> descriptorList
-
-
Constructor Detail
-
TablePrivilegesNode
TablePrivilegesNode(ContextManager cm)
-
-
Method Detail
-
addAll
void addAll()
Add all actions
-
addAction
void addAction(int action, ResultColumnList privilegeColumnList)
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
void bind(TableDescriptor td, boolean isGrant) throws StandardException
Bind.- Parameters:
td
- The table descriptorisGrant
- grant if true; revoke if false- Throws:
StandardException
-
makePrivilegeInfo
PrivilegeInfo makePrivilegeInfo()
- Returns:
- PrivilegeInfo for this node
-
bindPrivilegesForView
private void bindPrivilegesForView(TableDescriptor td) throws StandardException
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.
-
-