|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.filter.SequenceTableFilter
public class SequenceTableFilter
This filter expose a specified table sequence and can be used to reorder
tables in a dataset. This implementation do 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
.
Constructor Summary | |
---|---|
SequenceTableFilter(java.lang.String[] tableNames)
Creates a new SequenceTableFilter with specified table names sequence. |
Method Summary | |
---|---|
boolean |
accept(java.lang.String tableName)
Returns true if specified table is allowed by this filter. |
java.lang.String[] |
getTableNames(IDataSet dataSet)
Returns the table names allowed by this filter from the specified dataset. |
ITableIterator |
iterator(IDataSet dataSet,
boolean reversed)
Returns iterator of tables allowed by this filter from the specified dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceTableFilter(java.lang.String[] tableNames)
Method Detail |
---|
public boolean accept(java.lang.String tableName) throws DataSetException
ITableFilter
true
if specified table is allowed by this filter.
accept
in interface ITableFilter
DataSetException
public java.lang.String[] getTableNames(IDataSet dataSet) throws DataSetException
ITableFilter
getTableNames
in interface ITableFilter
dataSet
- the filtered dataset
DataSetException
public ITableIterator iterator(IDataSet dataSet, boolean reversed) throws DataSetException
ITableFilter
iterator
in interface ITableFilter
dataSet
- the filtered dataset
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |