Package org.dbunit.dataset.filter
Class SequenceTableFilter
java.lang.Object
org.dbunit.dataset.filter.SequenceTableFilter
- All Implemented Interfaces:
ITableFilter,ITableFilterSimple
- Direct Known Subclasses:
DatabaseSequenceFilter
This filter expose a specified table sequence and can be used to reorder
tables in a dataset. This implementation does not support duplicate table names.
Thus you cannot specify the same table name more than once in this filter
and the filtered dataset must not contains duplicate table names. This is
the default filter used by the
FilteredDataSet.- Since:
- Mar 7, 2003
- Version:
- $Revision$ $Date$
- Author:
- Manuel Laflamme, Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceTableFilter(String[] tableNames) Creates a new SequenceTableFilter with specified table names sequence.SequenceTableFilter(String[] tableNames, boolean caseSensitiveTableNames) Creates a new SequenceTableFilter with specified table names sequence. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif specified table is allowed by this filter.String[]getTableNames(IDataSet dataSet) Returns the table names allowed by this filter from the specified dataset.Returns iterator of tables allowed by this filter from the specified dataset.toString()
-
Constructor Details
-
SequenceTableFilter
Creates a new SequenceTableFilter with specified table names sequence.- Throws:
AmbiguousTableNameException- If the given array contains ambiguous names
-
SequenceTableFilter
public SequenceTableFilter(String[] tableNames, boolean caseSensitiveTableNames) throws AmbiguousTableNameException Creates a new SequenceTableFilter with specified table names sequence.- Parameters:
tableNames-caseSensitiveTableNames-- Throws:
AmbiguousTableNameException- If the given array contains ambiguous names- Since:
- 2.4.2
-
-
Method Details
-
accept
Description copied from interface:ITableFilterSimpleReturnstrueif specified table is allowed by this filter.- Specified by:
acceptin interfaceITableFilterSimple- Throws:
DataSetException
-
getTableNames
Description copied from interface:ITableFilterReturns the table names allowed by this filter from the specified dataset.- Specified by:
getTableNamesin interfaceITableFilter- Parameters:
dataSet- the filtered dataset- Throws:
DataSetException
-
iterator
Description copied from interface:ITableFilterReturns iterator of tables allowed by this filter from the specified dataset.- Specified by:
iteratorin interfaceITableFilter- Parameters:
dataSet- the filtered dataset- Throws:
DataSetException
-
toString
-