|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.AbstractDataSet org.dbunit.database.DatabaseDataSet
public class DatabaseDataSet
Provides access to a database instance as a IDataSet
.
Field Summary |
---|
Fields inherited from class org.dbunit.dataset.AbstractDataSet |
---|
_orderedTableNameMap |
Constructor Summary | |
---|---|
DatabaseDataSet(IDatabaseConnection connection,
boolean caseSensitiveTableNames)
Creates a new database data set |
|
DatabaseDataSet(IDatabaseConnection connection,
boolean caseSensitiveTableNames,
ITableFilterSimple tableFilter)
Creates a new database data set |
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 DatabaseDataSet(IDatabaseConnection connection, boolean caseSensitiveTableNames) throws SQLException
connection
- The database connectioncaseSensitiveTableNames
- Whether or not this dataset should use case sensitive table names
SQLException
public DatabaseDataSet(IDatabaseConnection connection, boolean caseSensitiveTableNames, ITableFilterSimple tableFilter) throws SQLException
connection
- The database connectioncaseSensitiveTableNames
- Whether or not this dataset should use case sensitive table namestableFilter
- Table filter to specify tables to be omitted in this dataset. Can be null
.
SQLException
Method Detail |
---|
protected ITableIterator createIterator(boolean reversed) throws DataSetException
AbstractDataSet
createIterator
in class AbstractDataSet
reversed
- Whether the created iterator should be a reversed one or not
ITableIterator
DataSetException
public String[] getTableNames() throws DataSetException
IDataSet
getTableNames
in interface IDataSet
getTableNames
in class AbstractDataSet
DataSetException
public ITableMetaData getTableMetaData(String tableName) throws DataSetException
IDataSet
getTableMetaData
in interface IDataSet
getTableMetaData
in class AbstractDataSet
NoSuchTableException
- if dataset do not contains the specified
table
DataSetException
public ITable getTable(String tableName) throws DataSetException
IDataSet
getTable
in interface IDataSet
getTable
in class AbstractDataSet
NoSuchTableException
- 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 |