Class DropTable


public class DropTable extends DefineCommand
This class represents the statement DROP TABLE
  • Field Details

  • Constructor Details

  • Method Details

    • setIfExists

      public void setIfExists(boolean b)
    • addTable

      public void addTable(Schema schema, String tableName)
      Add a table to drop.
      Parameters:
      schema - the schema
      tableName - the table name
    • prepareDrop

      private boolean prepareDrop()
    • executeDrop

      private void executeDrop()
    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • setDropAction

      public void setDropAction(ConstraintActionType dropAction)
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type