org.apache.ddlutils.task
Class WriteDataToFileCommand

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

public class WriteDataToFileCommand
extends ConvertingDatabaseCommand

Command to dump data from the database into an XML file.

Version:
$Revision: 289996 $
Author:
Thomas Dudziak

Constructor Summary
WriteDataToFileCommand()
           
 
Method Summary
 void execute(org.apache.tools.ant.Task task, Database model)
          Executes this command.
 void setEncoding(String encoding)
          Sets the output encoding.
 void setOutputFile(File outputFile)
          Sets the file to output the data to.
 
Methods inherited from class org.apache.ddlutils.task.ConvertingDatabaseCommand
addConfiguredConverter, registerConverters
 
Methods inherited from class org.apache.ddlutils.task.DatabaseCommand
getDatabaseType, getDataSource, getPlatform, isFailOnError, isRequiringModel, setFailOnError, setPlatformConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDataToFileCommand

public WriteDataToFileCommand()
Method Detail

setOutputFile

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

Parameters:
outputFile - The output file

setEncoding

public void setEncoding(String encoding)
Sets the output encoding.

Parameters:
encoding - The encoding

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.