Core Components
A class-by-class index of dbUnit’s core abstractions, grouped by area. If you already
know which task you’re doing, use the rest of Using DbUnit instead — those pages are
organized around workflows ("how do I load a CSV dataset," "how do I run an operation").
This page is for the other direction: you already have a class in hand — from JavaDoc, a
stack trace, or someone else’s code — and want to know what it is and where it’s covered.
Most classes below link straight to the topic page that already covers them in depth.
A few — ITable, VerifyTableDefinition, IOperationListener, and
Assertion/DbUnitAssert — didn’t have a page anywhere else, so they get one here.
Connections & Configuration
Datasets & Tables
| Class |
Covered |
IDataSet, DefaultDataSet, DataSetBuilder |
Datasets — a named collection of `ITable`s, and the fluent builder for constructing one in code. |
ITable, ITableMetaData, Column, Columns, ITableIterator |
New: ITable & Table Metadata — one table’s contract, schema, and cell access. |
FlatXmlDataSet |
Flat XML — one XML element per row, the most commonly used file format. |
XmlDataSet |
XML — the original, more verbose XML format. |
CsvDataSet |
CSV — one CSV file per table, plus a table-ordering.txt manifest. |
XlsDataSet |
Excel (XLS) — one sheet per table. |
JsonDataSet |
JSON — one top-level key per table, values as row-object arrays. |
YamlDataSet |
YAML — one top-level key per table. |
SqlLoaderControlDataSet |
SQL*Loader — builds a dataset from Oracle SQL*Loader control files. |
QueryDataSet |
Query-Based — tables populated from arbitrary SQL queries. |
StreamingDataSet |
Streaming Datasets — forward-only, low-memory access over a producer. |
DataFileLoader and implementations |
Data File Loader — loads a dataset file from the classpath, with ReplacementDataSet substitution built in. |
CompositeDataSet, ReplacementDataSet, TableDecoratorDataSet, SortedDataSet/SortedTable, CachedDataSet |
Decorators — wrap an existing IDataSet/ITable to add behavior. |
FilteredDataSet |
Decorators for the SequenceTableFilter ordering strategy; Filters for DatabaseSequenceFilter, IncludeTableFilter, and ExcludeTableFilter. |
Data Comparisons & Assertions
Filters
| Class |
Covered |
ITableFilter/ITableFilterSimple, IncludeTableFilter, ExcludeTableFilter, SequenceTableFilter, DatabaseSequenceFilter, PrimaryKeyFilter |
Filters — which tables (and in what order) participate in an operation or comparison. |
IColumnFilter, DefaultColumnFilter, GeneratedColumnFilter |
Filters — which columns participate. |
IRowFilter, RowFilterTable |
Filters — which rows participate. |
Data Types
| Class |
Covered |
DataType, IDataTypeFactory, DefaultDataTypeFactory |
Data Types — maps SQL types to Java types; register a vendor-specific factory via DatabaseConfig.PROPERTY_DATATYPE_FACTORY. |