| java.lang.Object org.apache.ojb.broker.ant.DataSet
DataSet | public class DataSet (Code) | | Encapsulates the data objects read by Digester.
author: Thomas Dudziak |
Method Summary | |
public void | add(DynaBean bean) Adds a data object. | public void | createInsertionSql(Database model, Platform platform, Writer writer) Generates and writes the sql for inserting the currently contained data objects. | public void | insert(Platform platform, Database model, int batchSize) Inserts the currently contained data objects into the database. |
add | public void add(DynaBean bean)(Code) | | Adds a data object.
Parameters: bean - The data object |
createInsertionSql | public void createInsertionSql(Database model, Platform platform, Writer writer) throws IOException(Code) | | Generates and writes the sql for inserting the currently contained data objects.
Parameters: model - The database model Parameters: platform - The platform Parameters: writer - The output stream |
insert | public void insert(Platform platform, Database model, int batchSize) throws SQLException(Code) | | Inserts the currently contained data objects into the database.
Parameters: platform - The (connected) database platform for inserting data Parameters: model - The database model Parameters: batchSize - The batch size; use 1 for not using batch mode |
|
|