org.dbunit.dataset.stream
Interface IDataSetConsumer

All Known Implementing Classes:
BufferedConsumer, CachedDataSet, CsvDataSet, CsvDataSetWriter, CsvURLDataSet, DefaultConsumer, FlatDtdDataSet, FlatXmlDataSet, FlatXmlWriter, SqlLoaderControlDataSet, XmlDataSet, XmlDataSetWriter

public interface IDataSetConsumer

Receive notification of the content of a dataset.

Since:
Apr 17, 2003
Version:
$Revision: 398 $
Author:
Manuel Laflamme

Method Summary
 void endDataSet()
          Receive notification of the end of a dataset.
 void endTable()
          Receive notification of the end of a table.
 void row(java.lang.Object[] values)
          Receive notification of a table row.
 void startDataSet()
          Receive notification of the beginning of a dataset.
 void startTable(ITableMetaData metaData)
          Receive notification of the beginning of a table.
 

Method Detail

startDataSet

void startDataSet()
                  throws DataSetException
Receive notification of the beginning of a dataset. This method is invoked only once, before any other methods in this interface.

Throws:
DataSetException

endDataSet

void endDataSet()
                throws DataSetException
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

void startTable(ITableMetaData metaData)
                throws DataSetException
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 corresponding endDataSet() event for every startTable event (even when the table is empty).

Parameters:
metaData - the table metadata
Throws:
DataSetException

endTable

void endTable()
              throws DataSetException
Receive notification of the end of a table.

Throws:
DataSetException

row

void row(java.lang.Object[] values)
         throws DataSetException
Receive notification of a table row. This method is invoked to report each row of a table.

Parameters:
values - The row values.
Throws:
DataSetException


Copyright © 2002-2010. All Rights Reserved.