org.apache.ddlutils.task
Class WriteSchemaToFileCommand

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

public class WriteSchemaToFileCommand
extends Object
implements Command

Command for writing the database schema to a file.

Version:
$Revision: 289996 $
Author:
Thomas Dudziak

Constructor Summary
WriteSchemaToFileCommand()
           
 
Method Summary
 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.
 void setOutputFile(File outputFile)
          Sets the file to output the schema to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteSchemaToFileCommand

public WriteSchemaToFileCommand()
Method Detail

setOutputFile

public void setOutputFile(File outputFile)
Sets the file to output the schema to.

Parameters:
outputFile - The output file

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
Returns:
true if this command requires a model

execute

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

Specified by:
execute in interface Command
Parameters:
task - The executing task
model - The database model
Throws:
org.apache.tools.ant.BuildException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.