|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.filter.AbstractTableFilter
public abstract class AbstractTableFilter
This class provides a skeletal implementation of the ITableFilter
interface to minimize the effort required to implement a filter. Subclasses
are only required to implement the isValidName(java.lang.String)
method.
Constructor Summary | |
---|---|
AbstractTableFilter()
|
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. |
abstract boolean |
isValidName(java.lang.String tableName)
Returns true if specified table is allowed by this filter. |
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 AbstractTableFilter()
Method Detail |
---|
public abstract boolean isValidName(java.lang.String tableName) throws DataSetException
true
if specified table is allowed by this filter.
This legacy method, now replaced by accept, still exist for compatibily
with older environment
DataSetException
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 |