org.dbunit.dataset.stream
Interface IDataSetConsumer

All Known Implementing Classes:
CachedDataSet, CsvDataSetWriter, DefaultConsumer, FlatDtdDataSet, FlatXmlWriter, XmlDataSetWriter

public interface IDataSetConsumer

Receive notification of the content of a dataset.

Since:
Apr 17, 2003
Version:
$Revision: 1.2 $
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

public 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

public 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

public 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

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

Throws:
DataSetException

row

public 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-2004 DbUnit.org. All Rights Reserved.