public class EntityRelationshipFilter
extends org.dbunit.database.DatabaseSequenceFilter
ITableFilter interface acts as a proxy
between the EntityDependencyGraph and the dbUnit.
This filter is able to produce a table iterator that traverses the tables in the correct order so that foreign key constraints are obeyed during insertion of data.
It is also able to filter the data from the tables corresponding to the entities by only allowing entities (and the underlying table rows) of certain primary key values to be included.
| Constructor and Description |
|---|
EntityRelationshipFilter(org.dbunit.database.IDatabaseConnection connection,
Map<Class<?>,Set<ColumnValues>> allowedPks,
DependencyInclusionResolver inclusionResolver) |
| Modifier and Type | Method and Description |
|---|---|
org.dbunit.dataset.ITableIterator |
iterator(org.dbunit.dataset.IDataSet dataSet,
boolean reversed) |
public EntityRelationshipFilter(org.dbunit.database.IDatabaseConnection connection,
Map<Class<?>,Set<ColumnValues>> allowedPks,
DependencyInclusionResolver inclusionResolver)
throws org.dbunit.dataset.DataSetException,
SQLException
org.dbunit.dataset.DataSetExceptionSQLExceptionpublic org.dbunit.dataset.ITableIterator iterator(org.dbunit.dataset.IDataSet dataSet,
boolean reversed)
throws org.dbunit.dataset.DataSetException
iterator in interface org.dbunit.dataset.filter.ITableFilteriterator in class org.dbunit.dataset.filter.SequenceTableFilterorg.dbunit.dataset.DataSetExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.