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 Type
    Method
    Description
    void
    Receive notification of the end of a dataset.
    void
    Receive notification of the end of a table.
    void
    row(Object[] values)
    Receive notification of a table row.
    void
    Receive notification of the beginning of a dataset.
    void
    Receive notification of the beginning of a table.
  • Method Details

    • 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(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