| java.lang.Object org.apache.ojb.broker.ant.DdlUtilsDataHandling
DdlUtilsDataHandling | public class DdlUtilsDataHandling (Code) | | Provides data input and output via DdlUtils.
author: Thomas Dudziak |
Inner Class :public class DataRuleSet extends RuleSetBase | |
Method Summary | |
public void | getDataDTD(Writer output) Writes a DTD that can be used for data XML files matching the current model to the given writer. | public void | getInsertDataSql(Reader input, Writer output) Returns the sql necessary to add the data XML contained in the given input stream. | public void | insertData(Reader input, int batchSize) Returns the sql necessary to add the data XML contained in the given input stream. | public void | setModel(Database databaseModel, DescriptorRepository objModel) Sets the model that the handling works on. | public void | setPlatform(Platform platform) Sets the (connected) database platform to work against. |
DdlUtilsDataHandling | public DdlUtilsDataHandling()(Code) | | Creates a new data handling object.
|
getDataDTD | public void getDataDTD(Writer output) throws DataTaskException(Code) | | Writes a DTD that can be used for data XML files matching the current model to the given writer.
Parameters: output - The writer to write the DTD to |
getInsertDataSql | public void getInsertDataSql(Reader input, Writer output) throws DataTaskException(Code) | | Returns the sql necessary to add the data XML contained in the given input stream.
Note that the data is expected to match the repository metadata (not the table schema).
Also note that you should not use the reader after passing it to this method except closing
it (which is not done automatically).
Parameters: input - A reader returning the content of the data file Parameters: output - The writer to write the sql to |
insertData | public void insertData(Reader input, int batchSize) throws DataTaskException(Code) | | Returns the sql necessary to add the data XML contained in the given input stream.
Note that the data is expected to match the repository metadata (not the table schema).
Also note that you should not use the reader after passing it to this method except closing
it (which is not done automatically).
Parameters: input - A reader returning the content of the data file Parameters: batchSize - The batch size; use 1 for not batch insertion |
setModel | public void setModel(Database databaseModel, DescriptorRepository objModel)(Code) | | Sets the model that the handling works on.
Parameters: databaseModel - The database model Parameters: objModel - The object model |
setPlatform | public void setPlatform(Platform platform)(Code) | | Sets the (connected) database platform to work against.
Parameters: platform - The platform |
|
|