org.apache.derby.impl.sql.compile
Class TablePrivilegesNode

java.lang.Object
  extended by org.apache.derby.impl.sql.compile.QueryTreeNode
      extended by 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.


Field Summary
private  boolean[] actionAllowed
           
private  FormatableBitSet[] columnBitSets
           
private  ResultColumnList[] columnLists
           
private  java.util.List descriptorList
           
private  TableDescriptor td
           
 
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
 
Constructor Summary
TablePrivilegesNode()
           
 
Method Summary
 void addAction(int action, ResultColumnList privilegeColumnList)
          Add one action to the privileges for this table
 void addAll()
          Add all actions
 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.
 PrivilegeInfo makePrivilegeInfo()
           
 
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
 

Field Detail

actionAllowed

private boolean[] actionAllowed

columnLists

private ResultColumnList[] columnLists

columnBitSets

private FormatableBitSet[] columnBitSets

td

private TableDescriptor td

descriptorList

private java.util.List descriptorList
Constructor Detail

TablePrivilegesNode

public TablePrivilegesNode()
Method Detail

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 type
privilegeColumnList - 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 descriptor
isGrant - 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.

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.