|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.ant.DataSet
public class DataSet
Encapsulates the data objects read by Digester.
| Constructor Summary | |
|---|---|
DataSet()
|
|
| Method Summary | |
|---|---|
void |
add(org.apache.commons.beanutils.DynaBean bean)
Adds a data object. |
void |
createInsertionSql(org.apache.ddlutils.model.Database model,
org.apache.ddlutils.Platform platform,
Writer writer)
Generates and writes the sql for inserting the currently contained data objects. |
void |
insert(org.apache.ddlutils.Platform platform,
org.apache.ddlutils.model.Database model,
int batchSize)
Inserts the currently contained data objects into the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSet()
| Method Detail |
|---|
public void add(org.apache.commons.beanutils.DynaBean bean)
bean - The data object
public void createInsertionSql(org.apache.ddlutils.model.Database model,
org.apache.ddlutils.Platform platform,
Writer writer)
throws IOException
model - The database modelplatform - The platformwriter - The output stream
IOException
public void insert(org.apache.ddlutils.Platform platform,
org.apache.ddlutils.model.Database model,
int batchSize)
throws SQLException
platform - The (connected) database platform for inserting datamodel - The database modelbatchSize - The batch size; use 1 for not using batch mode
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||