public class DropDatabaseCommand extends DatabaseCommand
Sub task for dropping the target database. Note that this is only supported on some database platforms. See the database support documentation for details on which platforms support this.
This sub task does not require schema files. Therefore the fileset subelement and the schemaFile attribute of the enclosing task can be omitted.
Version:
$Revision: 289996 $
  • Constructor Details

    • DropDatabaseCommand

      public DropDatabaseCommand()
  • Method Details

    • isRequiringModel

      public boolean isRequiringModel()
      Specifies whether this command requires a model, i.e. whether the second argument in Command.execute(DatabaseTaskBase, Database) cannot be null.
      Overrides:
      isRequiringModel in class DatabaseCommand
      Returns:
      true if this command requires a model
    • execute

      public void execute(DatabaseTaskBase task, Database model) throws org.apache.tools.ant.BuildException
      Executes this command.
      Specified by:
      execute in class Command
      Parameters:
      task - The executing task
      model - The database model
      Throws:
      org.apache.tools.ant.BuildException