|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.ant.Command org.apache.ojb.broker.ant.WriteDataSqlToFileCommand
public class WriteDataSqlToFileCommand
Command to write the SQL used to insert data defined in terms of the repository model into database, into an XML file.
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 |
---|
public WriteDataSqlToFileCommand()
Method Detail |
---|
public void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
fileset
- The additional input filespublic void setDataFile(File dataFile)
schemaFile
- The data xml filepublic void setOutputFile(File outputFile)
outputFile
- The output filepublic void execute(org.apache.tools.ant.Task task, org.apache.ddlutils.model.Database dbModel, DescriptorRepository objModel) throws org.apache.tools.ant.BuildException
execute
in class Command
task
- The executing taskdbModel
- The database modelobjModel
- The object model
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |