| |
|
| java.lang.Object org.dbunit.dataset.AbstractDataSet org.dbunit.database.QueryDataSet
QueryDataSet | public class QueryDataSet extends AbstractDataSet (Code) | | Holds collection of tables resulting from database query.
author: Eric Pugh since: Dec 4, 2002 version: $Revision: 554 $ |
Inner Class :static class TableEntry | |
QueryDataSet | public QueryDataSet(IDatabaseConnection connection) throws SQLException(Code) | | Create a QueryDataSet by passing in the connection to the database to use.
Parameters: connection - The connection object to the database. exception: java.sql.SQLException - Description of the Exception |
addTable | public void addTable(String tableName, String query)(Code) | | Adds a table and it's associted query to this dataset.
Parameters: tableName - The name of the table Parameters: query - The query to retrieve data with for this table |
addTable | public void addTable(String tableName)(Code) | | Adds a table with using 'SELECT * FROM tableName ' as query.
Parameters: tableName - The name of the table |
|
|
|