|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.ant.DdlUtilsDataHandling
public class DdlUtilsDataHandling
Provides data input and output via DdlUtils.
| Nested Class Summary | |
|---|---|
class |
DdlUtilsDataHandling.DataRuleSet
|
| Constructor Summary | |
|---|---|
DdlUtilsDataHandling()
Creates a new data handling object. |
|
| Method Summary | |
|---|---|
void |
getDataDTD(Writer output)
Writes a DTD that can be used for data XML files matching the current model to the given writer. |
void |
getInsertDataSql(Reader input,
Writer output)
Returns the sql necessary to add the data XML contained in the given input stream. |
void |
insertData(Reader input,
int batchSize)
Returns the sql necessary to add the data XML contained in the given input stream. |
void |
setModel(org.apache.ddlutils.model.Database databaseModel,
DescriptorRepository objModel)
Sets the model that the handling works on. |
void |
setPlatform(org.apache.ddlutils.Platform platform)
Sets the (connected) database platform to work against. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DdlUtilsDataHandling()
| Method Detail |
|---|
public void setModel(org.apache.ddlutils.model.Database databaseModel,
DescriptorRepository objModel)
databaseModel - The database modelobjModel - The object modelpublic void setPlatform(org.apache.ddlutils.Platform platform)
platform - The platform
public void getDataDTD(Writer output)
throws DataTaskException
output - The writer to write the DTD to
DataTaskException
public void getInsertDataSql(Reader input,
Writer output)
throws DataTaskException
input - A reader returning the content of the data fileoutput - The writer to write the sql to
DataTaskException
public void insertData(Reader input,
int batchSize)
throws DataTaskException
input - A reader returning the content of the data filebatchSize - The batch size; use 1 for not batch insertion
DataTaskException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||