|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.ant.Command
org.apache.ojb.broker.ant.WriteDataToDatabaseCommand
public class WriteDataToDatabaseCommand
Command for inserting data XML defined in terms of the repository, 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,
org.apache.ddlutils.model.Database dbModel,
DescriptorRepository objModel)
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.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 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,
org.apache.ddlutils.model.Database dbModel,
DescriptorRepository objModel)
throws org.apache.tools.ant.BuildException
execute in class Commandtask - 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 | |||||||||