org.apache.ojb.broker.ant
Class WriteDataSqlToFileCommand

java.lang.Object
  extended by org.apache.ojb.broker.ant.Command
      extended by org.apache.ojb.broker.ant.WriteDataSqlToFileCommand

public class WriteDataSqlToFileCommand
extends Command

Command to write the SQL used to insert data defined in terms of the repository model into database, into an XML file.

Version:
$Revision: 1.1 $
Author:
Thomas Dudziak

Constructor Summary
WriteDataSqlToFileCommand()
           
 
Method Summary
 void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
          Adds a fileset specifying data files.
 void execute(org.apache.tools.ant.Task task, org.apache.ddlutils.model.Database dbModel, DescriptorRepository objModel)
          Executes this command.
 void setDataFile(File dataFile)
          Set the xml file containing the data.
 void setOutputFile(File outputFile)
          Sets the file to output the data to.
 
Methods inherited from class org.apache.ojb.broker.ant.Command
getDatabaseType, getPlatform, isFailOnError, setFailOnError, setPlatform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDataSqlToFileCommand

public WriteDataSqlToFileCommand()
Method Detail

addConfiguredFileset

public void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
Adds a fileset specifying data files.

Parameters:
fileset - The additional input files

setDataFile

public void setDataFile(File dataFile)
Set the xml file containing the data.

Parameters:
schemaFile - The data xml file

setOutputFile

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

Parameters:
outputFile - The output file

execute

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

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


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.