|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.database.AbstractDatabaseConnection
public abstract class AbstractDatabaseConnection
| Constructor Summary | |
|---|---|
AbstractDatabaseConnection()
|
|
| Method Summary | |
|---|---|
IDataSet |
createDataSet()
Creates a dataset corresponding to the entire database. |
IDataSet |
createDataSet(String[] tableNames)
Creates a dataset containing only the specified tables from the database. |
ITable |
createQueryTable(String resultName,
String sql)
Creates a table with the result of the specified SQL statement. |
DatabaseConfig |
getConfig()
Returns this connection database configuration |
int |
getRowCount(String tableName)
Returns the specified table row count. |
int |
getRowCount(String tableName,
String whereClause)
Returns the specified table row count according specified where clause. |
IStatementFactory |
getStatementFactory()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.dbunit.database.IDatabaseConnection |
|---|
close, getConnection, getSchema |
| Constructor Detail |
|---|
public AbstractDatabaseConnection()
| Method Detail |
|---|
public IDataSet createDataSet()
throws SQLException
IDatabaseConnection
createDataSet in interface IDatabaseConnectionSQLException
public IDataSet createDataSet(String[] tableNames)
throws SQLException
IDatabaseConnection
createDataSet in interface IDatabaseConnectionSQLException
public ITable createQueryTable(String resultName,
String sql)
throws DataSetException,
SQLException
IDatabaseConnection
createQueryTable in interface IDatabaseConnectionresultName - The name to be returned by ITableMetaData.getTableName().sql - The SQL SELECT statement
DataSetException
SQLException
public int getRowCount(String tableName)
throws SQLException
IDatabaseConnection
getRowCount in interface IDatabaseConnectiontableName - the table name
SQLException
public int getRowCount(String tableName,
String whereClause)
throws SQLException
IDatabaseConnection
getRowCount in interface IDatabaseConnectiontableName - the table namewhereClause - the where clause
SQLExceptionpublic DatabaseConfig getConfig()
IDatabaseConnection
getConfig in interface IDatabaseConnectionpublic IStatementFactory getStatementFactory()
getStatementFactory in interface IDatabaseConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||