Package org.dbunit.dataset.csv
Class CsvDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.CachedDataSet
org.dbunit.dataset.csv.CsvDataSet
- All Implemented Interfaces:
IDataSet,IDataSetConsumer
This class constructs an IDataSet given a directory containing CSV
files. It handles translations of "null"(the string), into null.
- Since:
- Sep 12, 2004 (pre 2.3)
- Version:
- $Revision$ $Date$
- Author:
- Lenny Marks (lenny@aps.org), Last changed by: $Author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the file listing the tables in load order.Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap -
Constructor Summary
ConstructorsConstructorDescriptionCsvDataSet(File dir) Creates a dataset from the CSV files in the given directory. -
Method Summary
Methods inherited from class org.dbunit.dataset.CachedDataSet
createIterator, endDataSet, endTable, row, startDataSet, startTableMethods inherited from class org.dbunit.dataset.AbstractDataSet
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, initialize, isCaseSensitiveTableNames, iterator, reverseIterator, toString
-
Field Details
-
TABLE_ORDERING_FILE
Name of the file listing the tables in load order.- See Also:
-
-
Constructor Details
-
CsvDataSet
Creates a dataset from the CSV files in the given directory.- Parameters:
dir- the directory containing the CSV files.- Throws:
DataSetException- if reading the CSV files fails.
-