Package org.dbunit.dataset.stream
Interface IDataSetConsumer
- All Known Implementing Classes:
BufferedConsumer,CachedDataSet,CsvDataSet,CsvDataSetWriter,CsvURLDataSet,DefaultConsumer,FlatDtdDataSet,FlatXmlDataSet,FlatXmlWriter,SqlLoaderControlDataSet,XmlDataSet,XmlDataSetWriter,YamlDataSet
public interface IDataSetConsumer
Receive notification of the content of a dataset.
- Since:
- Apr 17, 2003
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Method Summary
Modifier and TypeMethodDescriptionvoidReceive notification of the end of a dataset.voidendTable()Receive notification of the end of a table.voidReceive notification of a table row.voidReceive notification of the beginning of a dataset.voidstartTable(ITableMetaData metaData) Receive notification of the beginning of a table.
-
Method Details
-
startDataSet
Receive notification of the beginning of a dataset. This method is invoked only once, before any other methods in this interface.- Throws:
DataSetException
-
endDataSet
Receive notification of the end of a dataset. This method is invoked only once, and it will be the last method invoked in this interface.- Throws:
DataSetException
-
startTable
Receive notification of the beginning of a table. This method is invoked at the beginning of every table in the dataset; there will be a correspondingendDataSet()event for everystartTableevent (even when the table is empty).- Parameters:
metaData- the table metadata- Throws:
DataSetException
-
endTable
Receive notification of the end of a table.- Throws:
DataSetException
-
row
Receive notification of a table row. This method is invoked to report each row of a table.- Parameters:
values- The row values.- Throws:
DataSetException
-