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 fileDataSetException
public SqlLoaderControlProducer(File controlFilesDir, File tableOrderFile) throws DataSetException
controlFilesDir
- the control files directorytableOrderFile
- the table order fileDataSetException
public void setConsumer(IDataSetConsumer consumer) throws DataSetException
setConsumer
in interface IDataSetProducer
DataSetException
IDataSetProducer.setConsumer(org.dbunit.dataset.stream.IDataSetConsumer)
public void produce() throws DataSetException
IDataSetProducer
This 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 IDataSetProducer
DataSetException
IDataSetProducer.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-2016. All Rights Reserved.