org.apache.ddlutils.task
Class DropDatabaseCommand

java.lang.Object
  extended byorg.apache.ddlutils.task.DatabaseCommand
      extended byorg.apache.ddlutils.task.DropDatabaseCommand
All Implemented Interfaces:
Command

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 $

Field Summary
 
Fields inherited from class org.apache.ddlutils.task.DatabaseCommand
_log
 
Constructor Summary
DropDatabaseCommand()
           
 
Method Summary
 void execute(DatabaseTaskBase task, Database model)
          Executes this command.
 boolean isRequiringModel()
          Specifies whether this command requires a model, i.e. whether the second argument in Command.execute(DatabaseTaskBase, Database) cannot be null.
 
Methods inherited from class org.apache.ddlutils.task.DatabaseCommand
getCatalogPattern, getDatabaseType, getDataSource, getPlatform, getSchemaPattern, isFailOnError, setFailOnError, setPlatformConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropDatabaseCommand

public DropDatabaseCommand()
Method Detail

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.

Specified by:
isRequiringModel in interface Command
Overrides:
isRequiringModel in class DatabaseCommand

execute

public void execute(DatabaseTaskBase task,
                    Database model)
             throws org.apache.tools.ant.BuildException
Executes this command.

Parameters:
task - The executing task
model - The database model
Throws:
org.apache.tools.ant.BuildException


Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.