public class SqlLoaderControlProducer extends Object implements IDataSetProducer
IDataSet using SQLLoader style '.ctl' files.| Constructor and Description |
|---|
SqlLoaderControlProducer(File controlFilesDir,
File tableOrderFile)
The Constructor.
|
SqlLoaderControlProducer(File controlFilesDir,
List orderedTableNames)
The Constructor.
|
SqlLoaderControlProducer(String controlFilesDir,
String tableOrderFile)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static List |
getTables(File controlFilesDir,
File tableList)
Get a list of tables that this producer will create.
|
void |
produce()
Process this dataset source.
|
void |
setConsumer(IDataSetConsumer consumer) |
public static final String NULL
public SqlLoaderControlProducer(String controlFilesDir, String tableOrderFile) throws DataSetException
controlFilesDir - the control files directorytableOrderFile - the table order fileDataSetExceptionpublic SqlLoaderControlProducer(File controlFilesDir, File tableOrderFile) throws DataSetException
controlFilesDir - the control files directorytableOrderFile - the table order fileDataSetExceptionpublic 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 List getTables(File controlFilesDir, File tableList) throws IOException
controlFilesDir - the base directorytableList - the table listIOException - when IO on the base URL has issues.Copyright © 2002-2017. All Rights Reserved.