Class DropRoleNode

  • All Implemented Interfaces:
    Visitable

    class DropRoleNode
    extends DDLStatementNode
    A DropRoleNode is the root of a QueryTree that represents a DROP ROLE statement.
    • Field Detail

      • roleName

        private java.lang.String roleName
    • Constructor Detail

      • DropRoleNode

        DropRoleNode​(java.lang.String roleName,
                     ContextManager cm)
              throws StandardException
        Constructor for a DropRoleNode
        Parameters:
        roleName - The name of the object being dropped
        cm - Context manager
        Throws:
        StandardException
    • Method Detail

      • bindStatement

        public void bindStatement()
                           throws StandardException
        Description copied from class: StatementNode
        Perform the binding operation statement. Binding consists of permissions checking, view resolution, datatype resolution, and creation of a dependency list (for determining whether a tree or plan is still up to date). This bindStatement() method does nothing. Each StatementNode type that can appear at the top of a tree can override this method with its own bindStatement() method that does "something".
        Overrides:
        bindStatement in class StatementNode
        Throws:
        StandardException - Thrown on error
      • toString

        public java.lang.String toString()
        Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.
        Overrides:
        toString in class DDLStatementNode
        Returns:
        This object as a String