|
||||||||||
| 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
public class FilteredDataSet
Decorates a dataset and exposes only some tables from it. Can be used with different filtering strategies.
ITableFilter,
SequenceTableFilter,
DefaultTableFilter| Field Summary |
|---|
| Fields inherited from class org.dbunit.dataset.AbstractDataSet |
|---|
_orderedTableNameMap |
| 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(String[] tableNames,
IDataSet dataSet)
Creates a FilteredDataSet that decorates the specified dataset and exposes only the specified tables using SequenceTableFilter as
filtering strategy. |
|
| Method Summary | |
|---|---|
protected ITableIterator |
createIterator(boolean reversed)
Creates an iterator which provides access to all tables of this dataset |
ITable |
getTable(String tableName)
Returns the specified table. |
ITableMetaData |
getTableMetaData(String tableName)
Returns the specified table metadata. |
String[] |
getTableNames()
Returns names of tables in this dataset in proper sequence. |
| Methods inherited from class org.dbunit.dataset.AbstractDataSet |
|---|
createTableNameMap, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilteredDataSet(String[] tableNames,
IDataSet dataSet)
throws AmbiguousTableNameException
SequenceTableFilter as
filtering strategy.
AmbiguousTableNameException - If the given tableNames array contains ambiguous names
public FilteredDataSet(ITableFilter filter,
IDataSet dataSet)
dataSet - the filtered datasetfilter - the filtering strategy| Method Detail |
|---|
protected ITableIterator createIterator(boolean reversed)
throws DataSetException
AbstractDataSet
createIterator in class AbstractDataSetreversed - Whether the created iterator should be a reversed one or not
ITableIterator
DataSetException
public String[] getTableNames()
throws DataSetException
IDataSet
getTableNames in interface IDataSetgetTableNames in class AbstractDataSetDataSetException
public ITableMetaData getTableMetaData(String tableName)
throws DataSetException
IDataSet
getTableMetaData in interface IDataSetgetTableMetaData in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
table
DataSetException
public ITable getTable(String tableName)
throws DataSetException
IDataSet
getTable in interface IDataSetgetTable in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
table
DataSetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||