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 Details

    • dropBehavior

      private int dropBehavior
    • schemaName

      private String schemaName
  • Constructor Details

    • DropSchemaNode

      DropSchemaNode(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 Details

    • 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 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
    • statementToString

      String statementToString()
      Specified by:
      statementToString in class StatementNode
    • makeConstantAction

      public ConstantAction makeConstantAction() throws StandardException
      Create the Constant information that will drive the guts of Execution.
      Overrides:
      makeConstantAction in class QueryTreeNode
      Throws:
      StandardException - Thrown on failure