public abstract class AbstractDataSet extends Object implements IDataSet
createIterator(boolean)
method.Modifier and Type | Field and Description |
---|---|
protected OrderedTableNameMap |
_orderedTableNameMap |
Constructor and Description |
---|
AbstractDataSet()
Default constructor
|
AbstractDataSet(boolean caseSensitiveTableNames)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract ITableIterator |
createIterator(boolean reversed)
Creates an iterator which provides access to all tables of this dataset
|
protected OrderedTableNameMap |
createTableNameMap()
Creates and returns a new instance of the table names container.
|
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.
|
ITable[] |
getTables()
Returns tables in this dataset in proper sequence.
|
protected void |
initialize()
Initializes the tables of this dataset
|
boolean |
isCaseSensitiveTableNames()
Whether or not this dataset handles table names in a case sensitive way or not.
|
ITableIterator |
iterator()
Returns an iterator over the tables in this dataset in proper sequence.
|
ITableIterator |
reverseIterator()
Returns an iterator over the tables in this dataset in reverse sequence.
|
String |
toString() |
protected OrderedTableNameMap _orderedTableNameMap
public AbstractDataSet()
public AbstractDataSet(boolean caseSensitiveTableNames)
caseSensitiveTableNames
- Whether or not table names should be case sensitivepublic boolean isCaseSensitiveTableNames()
IDataSet
isCaseSensitiveTableNames
in interface IDataSet
true
if the case sensitivity of table names is used in this dataset.protected OrderedTableNameMap createTableNameMap()
protected void initialize() throws DataSetException
DataSetException
protected abstract ITableIterator createIterator(boolean reversed) throws DataSetException
reversed
- Whether the created iterator should be a reversed one or notITableIterator
DataSetException
public String[] getTableNames() throws DataSetException
IDataSet
getTableNames
in interface IDataSet
DataSetException
public ITableMetaData getTableMetaData(String tableName) throws DataSetException
IDataSet
getTableMetaData
in interface IDataSet
NoSuchTableException
- if dataset do not contains the specified
tableDataSetException
public ITable getTable(String tableName) throws DataSetException
IDataSet
getTable
in interface IDataSet
NoSuchTableException
- if dataset do not contains the specified
tableDataSetException
public ITable[] getTables() throws DataSetException
IDataSet
getTables
in interface IDataSet
DataSetException
public ITableIterator iterator() throws DataSetException
IDataSet
iterator
in interface IDataSet
DataSetException
public ITableIterator reverseIterator() throws DataSetException
IDataSet
reverseIterator
in interface IDataSet
DataSetException
Copyright © 2002–2024. All rights reserved.