|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.task.DatabaseCommand
org.apache.ddlutils.task.ConvertingDatabaseCommand
org.apache.ddlutils.task.WriteDataToDatabaseCommand
Command for inserting data into a database.
| 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 |
public WriteDataToDatabaseCommand()
| Method Detail |
public void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
fileset - The additional input filespublic void setDataFile(File dataFile)
dataFile - The data filepublic void setBatchSize(int batchSize)
batchSize - The number of objectspublic void setUseBatchMode(boolean useBatchMode)
useBatchMode - true if we shall use batch mode
public void execute(org.apache.tools.ant.Task task,
Database model)
throws org.apache.tools.ant.BuildException
task - The executing taskmodel - The database model
org.apache.tools.ant.BuildException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||