Class CachedDataSet

java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.CachedDataSet
All Implemented Interfaces:
IDataSet, IDataSetConsumer
Direct Known Subclasses:
CsvDataSet, CsvURLDataSet, FlatXmlDataSet, JsonDataSet, SqlLoaderControlDataSet, XmlDataSet, YamlDataSet

public class CachedDataSet extends AbstractDataSet implements IDataSetConsumer
Hold copy of another dataset or a consumed provider content.
Since:
1.x (Apr 18, 2003)
Version:
$Revision$ $Date$
Author:
Manuel Laflamme, Last changed by: $Author$
  • Constructor Details

    • CachedDataSet

      public CachedDataSet() throws DataSetException
      Default constructor.
      Throws:
      DataSetException - if initialization fails.
    • CachedDataSet

      public CachedDataSet(IDataSet dataSet) throws DataSetException
      Creates a copy of the specified dataset.
      Parameters:
      dataSet - the dataset to copy.
      Throws:
      DataSetException - if copying the dataset fails.
    • CachedDataSet

      public CachedDataSet(IDataSetProducer producer) throws DataSetException
      Creates a CachedDataSet that synchronously consume the specified producer.
      Parameters:
      producer - the producer to consume.
      Throws:
      DataSetException - if consuming the producer fails.
    • CachedDataSet

      public CachedDataSet(IDataSetProducer producer, boolean caseSensitiveTableNames) throws DataSetException
      Creates a CachedDataSet that synchronously consume the specified producer.
      Parameters:
      producer - the producer to consume.
      caseSensitiveTableNames - Whether or not case sensitive table names should be used
      Throws:
      DataSetException - if consuming the producer fails.
  • Method Details