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 Details

  • Constructor Details

  • Method Details

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