|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.AbstractDataSet
public abstract class AbstractDataSet
This abstract class provides the basic implementation of the IDataSet
interface. Subclass are only required to implement the createIterator(boolean)
method.
Field Summary | |
---|---|
protected OrderedTableNameMap |
_orderedTableNameMap
|
Constructor Summary | |
---|---|
AbstractDataSet()
Default constructor |
|
AbstractDataSet(boolean caseSensitiveTableNames)
Constructor |
Method Summary | |
---|---|
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(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. |
ITable[] |
getTables()
Returns tables in this dataset in proper sequence. |
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected OrderedTableNameMap _orderedTableNameMap
Constructor Detail |
---|
public AbstractDataSet()
public AbstractDataSet(boolean caseSensitiveTableNames)
caseSensitiveTableNames
- Whether or not table names should be case sensitiveMethod Detail |
---|
public boolean isCaseSensitiveTableNames()
IDataSet
isCaseSensitiveTableNames
in interface IDataSet
true
if the case sensitivity of table names is used in this dataset.protected OrderedTableNameMap createTableNameMap()
protected abstract ITableIterator createIterator(boolean reversed) throws DataSetException
reversed
- Whether the created iterator should be a reversed one or not
ITableIterator
DataSetException
public java.lang.String[] getTableNames() throws DataSetException
IDataSet
getTableNames
in interface IDataSet
DataSetException
public ITableMetaData getTableMetaData(java.lang.String tableName) throws DataSetException
IDataSet
getTableMetaData
in interface IDataSet
NoSuchTableException
- if dataset do not contains the specified
table
DataSetException
public ITable getTable(java.lang.String tableName) throws DataSetException
IDataSet
getTable
in interface IDataSet
NoSuchTableException
- if dataset do not contains the specified
table
DataSetException
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
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |