public class FilteredDataSet extends AbstractDataSet
ITableFilter,
SequenceTableFilter,
DefaultTableFilter_orderedTableNameMap| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
createTableNameMap, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toStringpublic FilteredDataSet(String[] tableNames, IDataSet dataSet) throws AmbiguousTableNameException
SequenceTableFilter as
filtering strategy.AmbiguousTableNameException - If the given tableNames array contains ambiguous namespublic FilteredDataSet(ITableFilter filter, IDataSet dataSet)
dataSet - the filtered datasetfilter - the filtering strategyprotected ITableIterator createIterator(boolean reversed) throws DataSetException
AbstractDataSetcreateIterator in class AbstractDataSetreversed - Whether the created iterator should be a reversed one or notITableIteratorDataSetExceptionpublic String[] getTableNames() throws DataSetException
IDataSetgetTableNames in interface IDataSetgetTableNames in class AbstractDataSetDataSetExceptionpublic ITableMetaData getTableMetaData(String tableName) throws DataSetException
IDataSetgetTableMetaData in interface IDataSetgetTableMetaData in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
tableDataSetExceptionpublic ITable getTable(String tableName) throws DataSetException
IDataSetgetTable in interface IDataSetgetTable in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
tableDataSetExceptionCopyright © 2002-2017. All Rights Reserved.