org.apache.derby.impl.sql.compile
Class TablePrivilegesNode
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.TablePrivilegesNode
- All Implemented Interfaces:
- Visitable
public class TablePrivilegesNode
- extends QueryTreeNode
This class represents a set of privileges on one table.
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, 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, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
actionAllowed
private boolean[] actionAllowed
columnLists
private ResultColumnList[] columnLists
columnBitSets
private FormatableBitSet[] columnBitSets
td
private TableDescriptor td
descriptorList
private java.util.List descriptorList
TablePrivilegesNode
public TablePrivilegesNode()
addAll
public void addAll()
- Add all actions
addAction
public 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
public void bind(TableDescriptor td,
boolean isGrant)
throws StandardException
- Bind.
- Parameters:
td
- The table descriptorisGrant
- grant if true; revoke if false
- Throws:
StandardException
makePrivilegeInfo
public 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.
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.