org.apache.ddlutils.task
Class CreateDatabaseCommand

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

public class CreateDatabaseCommand
extends DatabaseCommand

Command for creating a database.

Version:
$Revision: 231306 $
Author:
Thomas Dudziak

Constructor Summary
CreateDatabaseCommand()
           
 
Method Summary
 void addConfiguredParameter(Parameter param)
          Adds a parameter which is a name-value pair.
 void execute(org.apache.tools.ant.Task task, Database model)
          Executes this command.
 boolean isRequiringModel()
          Specifies whether this command requires a model, i.e. whether the second argument in Command.execute(Task, Database) cannot be null.
 
Methods inherited from class org.apache.ddlutils.task.DatabaseCommand
getDatabaseType, getDataSource, getPlatform, isFailOnError, setFailOnError, setPlatformConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDatabaseCommand

public CreateDatabaseCommand()
Method Detail

addConfiguredParameter

public void addConfiguredParameter(Parameter param)
Adds a parameter which is a name-value pair.

Parameters:
param - The parameter

isRequiringModel

public boolean isRequiringModel()
Specifies whether this command requires a model, i.e. whether the second argument in Command.execute(Task, Database) cannot be null.

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

execute

public void execute(org.apache.tools.ant.Task 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 Apache Software Foundation. All Rights Reserved.