org.dbunit.dataset.filter
Interface ITableFilter

All Known Implementing Classes:
AbstractTableFilter, DatabaseSequenceFilter, DefaultTableFilter, ExcludeTableFilter, IncludeTableFilter, PrimaryKeyFilter, SequenceTableFilter

public interface ITableFilter

Represents a strategy used by FilteredDataSet to exposes only some tables from a dataset.

Since:
Mar 7, 2003
Version:
$Revision: 435 $
Author:
Manuel Laflamme

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.
 

Method Detail

accept

boolean accept(java.lang.String tableName)
               throws DataSetException
Returns true if specified table is allowed by this filter.

Throws:
DataSetException

getTableNames

java.lang.String[] getTableNames(IDataSet dataSet)
                                 throws DataSetException
Returns the table names allowed by this filter from the specified dataset.

Parameters:
dataSet - the filtered dataset
Throws:
DataSetException

iterator

ITableIterator iterator(IDataSet dataSet,
                        boolean reversed)
                        throws DataSetException
Returns iterator of tables allowed by this filter from the specified dataset.

Parameters:
dataSet - the filtered dataset
Throws:
DataSetException


Copyright © 2002-2008. All Rights Reserved.