Class DropSchemaNode

  • All Implemented Interfaces:
    Visitable

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

      • dropBehavior

        private int dropBehavior
      • schemaName

        private java.lang.String schemaName
    • Constructor Detail

      • DropSchemaNode

        DropSchemaNode​(java.lang.String schemaName,
                       int dropBehavior,
                       ContextManager cm)
        Constructor for a DropSchemaNode
        Parameters:
        schemaName - The name of the object being dropped
        dropBehavior - Drop behavior (RESTRICT | CASCADE)
        cm - Context Manager
    • 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