|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.dataset.sqlloader.SqlLoaderControlProducer
public class SqlLoaderControlProducer
Producer that creates an IDataSet using SQLLoader style '.ctl' files.
| Field Summary | |
|---|---|
static java.lang.String |
NULL
The Constant NULL. |
| Constructor Summary | |
|---|---|
SqlLoaderControlProducer(java.io.File controlFilesDir,
java.io.File tableOrderFile)
The Constructor. |
|
SqlLoaderControlProducer(java.io.File controlFilesDir,
java.util.List orderedTableNames)
The Constructor. |
|
SqlLoaderControlProducer(java.lang.String controlFilesDir,
java.lang.String tableOrderFile)
The Constructor. |
|
| Method Summary | |
|---|---|
static java.util.List |
getTables(java.io.File controlFilesDir,
java.io.File tableList)
Get a list of tables that this producer will create. |
void |
produce()
Process this dataset source. |
void |
setConsumer(IDataSetConsumer consumer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NULL
| Constructor Detail |
|---|
public SqlLoaderControlProducer(java.lang.String controlFilesDir,
java.lang.String tableOrderFile)
throws DataSetException
controlFilesDir - the control files directorytableOrderFile - the table order file
DataSetException
public SqlLoaderControlProducer(java.io.File controlFilesDir,
java.io.File tableOrderFile)
throws DataSetException
controlFilesDir - the control files directorytableOrderFile - the table order file
DataSetException
public SqlLoaderControlProducer(java.io.File controlFilesDir,
java.util.List orderedTableNames)
controlFilesDir - the control files directoryorderedTableNames - a list of strings that contains the ordered table names| Method Detail |
|---|
public void setConsumer(IDataSetConsumer consumer)
throws DataSetException
setConsumer in interface IDataSetProducerDataSetExceptionIDataSetProducer.setConsumer(org.dbunit.dataset.stream.IDataSetConsumer)
public void produce()
throws DataSetException
IDataSetProducerThis method is synchronous: it will not return until processing has ended. If a client application wants to terminate parsing early, it should throw an exception from the listener.
produce in interface IDataSetProducerDataSetExceptionIDataSetProducer.produce()
public static java.util.List getTables(java.io.File controlFilesDir,
java.io.File tableList)
throws java.io.IOException
controlFilesDir - the base directorytableList - the table list
java.io.IOException - when IO on the base URL has issues.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||