|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.FilteredDataSet
Decorates a dataset and exposes only some tables from it. Can be used with different filtering strategies.
ITableFilter
,
SequenceTableFilter
,
DefaultTableFilter
Constructor Summary | |
FilteredDataSet(ITableFilter filter,
IDataSet dataSet)
Creates a FilteredDataSet that decorates the specified dataset and exposes only the tables allowed by the specified filter. |
|
FilteredDataSet(java.lang.String[] tableNames,
IDataSet dataSet)
Creates a FilteredDataSet that decorates the specified dataset and exposes only the specified tables using SequenceTableFilter as
filtering startegy. |
Method Summary | |
protected ITableIterator |
createIterator(boolean reversed)
|
ITable |
getTable(java.lang.String tableName)
Returns the specified table. |
ITableMetaData |
getTableMetaData(java.lang.String tableName)
Returns the specified table metadata. |
java.lang.String[] |
getTableNames()
Returns names of tables in this dataset in proper sequence. |
Methods inherited from class org.dbunit.dataset.AbstractDataSet |
cloneTables, getTables, iterator, reverseIterator, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FilteredDataSet(java.lang.String[] tableNames, IDataSet dataSet)
SequenceTableFilter
as
filtering startegy.
public FilteredDataSet(ITableFilter filter, IDataSet dataSet)
dataSet
- the filtered datasetfilter
- the filtering strategyMethod Detail |
protected ITableIterator createIterator(boolean reversed) throws DataSetException
createIterator
in class AbstractDataSet
DataSetException
public java.lang.String[] getTableNames() throws DataSetException
IDataSet
getTableNames
in interface IDataSet
getTableNames
in class AbstractDataSet
DataSetException
public ITableMetaData getTableMetaData(java.lang.String tableName) throws DataSetException
IDataSet
getTableMetaData
in interface IDataSet
getTableMetaData
in class AbstractDataSet
DataSetException
public ITable getTable(java.lang.String tableName) throws DataSetException
IDataSet
getTable
in interface IDataSet
getTable
in class AbstractDataSet
DataSetException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |