public class SqlLoaderControlProducer extends java.lang.Object implements IDataSetProducer
IDataSet using SQLLoader style '.ctl' files.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NULL
The Constant NULL.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final java.lang.String NULL
public SqlLoaderControlProducer(java.lang.String controlFilesDir,
java.lang.String tableOrderFile)
throws DataSetException
controlFilesDir - the control files directorytableOrderFile - the table order fileDataSetExceptionpublic SqlLoaderControlProducer(java.io.File controlFilesDir,
java.io.File tableOrderFile)
throws DataSetException
controlFilesDir - the control files directorytableOrderFile - the table order fileDataSetExceptionpublic SqlLoaderControlProducer(java.io.File controlFilesDir,
java.util.List orderedTableNames)
controlFilesDir - the control files directoryorderedTableNames - a list of strings that contains the ordered table namespublic 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 listjava.io.IOException - when IO on the base URL has issues.Copyright © 2002-2018. All Rights Reserved.