Class TablePrivilegesNode

  • All Implemented Interfaces:
    Visitable

    class TablePrivilegesNode
    extends QueryTreeNode
    This class represents a set of privileges on one table.
    • Constructor Detail

    • 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 type
        privilegeColumnList - The set of privilege columns. Null for all columns
        Throws:
        StandardException - standard error policy.
      • 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.