org.apache.ddlutils.task
Class WriteDataToDatabaseCommand

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

public class WriteDataToDatabaseCommand
extends ConvertingDatabaseCommand

Command for inserting data into a database.

Version:
$Revision: 289996 $
Author:
Thomas Dudziak

Constructor Summary
WriteDataToDatabaseCommand()
           
 
Method Summary
 void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
          Adds a fileset.
 void execute(org.apache.tools.ant.Task task, Database model)
          Executes this command.
 void setBatchSize(int batchSize)
          Sets the maximum number of objects to insert in one batch.
 void setDataFile(File dataFile)
          Set the xml data file.
 void setUseBatchMode(boolean useBatchMode)
          Specifies whether we shall be using batch mode.
 
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

WriteDataToDatabaseCommand

public WriteDataToDatabaseCommand()
Method Detail

addConfiguredFileset

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

Parameters:
fileset - The additional input files

setDataFile

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

Parameters:
dataFile - The data file

setBatchSize

public void setBatchSize(int batchSize)
Sets the maximum number of objects to insert in one batch.

Parameters:
batchSize - The number of objects

setUseBatchMode

public void setUseBatchMode(boolean useBatchMode)
Specifies whether we shall be using batch mode.

Parameters:
useBatchMode - true if we shall use batch mode

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.