|
||||||||||
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 String |
NULL
The Constant NULL. |
Constructor Summary | |
---|---|
SqlLoaderControlProducer(File controlFilesDir,
File tableOrderFile)
The Constructor. |
|
SqlLoaderControlProducer(File controlFilesDir,
List orderedTableNames)
The Constructor. |
|
SqlLoaderControlProducer(String controlFilesDir,
String tableOrderFile)
The Constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NULL
Constructor Detail |
---|
public SqlLoaderControlProducer(String controlFilesDir, String tableOrderFile) throws DataSetException
controlFilesDir
- the control files directorytableOrderFile
- the table order file
DataSetException
public SqlLoaderControlProducer(File controlFilesDir, File tableOrderFile) throws DataSetException
controlFilesDir
- the control files directorytableOrderFile
- the table order file
DataSetException
public SqlLoaderControlProducer(File controlFilesDir, List orderedTableNames)
controlFilesDir
- the control files directoryorderedTableNames
- a list of strings that contains the ordered table namesMethod Detail |
---|
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 list
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 |