Class DatabaseSequenceFilter

java.lang.Object
org.dbunit.dataset.filter.SequenceTableFilter
org.dbunit.database.DatabaseSequenceFilter
All Implemented Interfaces:
ITableFilter, ITableFilterSimple

public class DatabaseSequenceFilter extends SequenceTableFilter
This filter orders tables using dependency information provided by DatabaseMetaData.getExportedKeys(java.lang.String, java.lang.String, java.lang.String). Note that this class name is a bit misleading since it is not at all related to database sequences. It just brings database tables in a specific order.

A foreign-key dependency cycle among the ordered tables is rejected with CyclicTablesDependencyException by default. Enable DatabaseConfig.FEATURE_SKIP_CYCLE_CHECK to opt out of that check for schemas whose cyclic references are handled another way (e.g. nullable FK columns populated in a later operation, or database-side deferred constraint checking); tables outside the cycle are still correctly ordered relative to it, and only the relative order of the cyclic tables themselves is left as-supplied (see sort(java.lang.String[], java.lang.String[], java.util.Map)).

Since:
1.5.1 (Mar 23, 2003)
Version:
$Revision$ $Date$
Author:
Manuel Laflamme, Erik Price, Last changed by: $Author$