public class MsSqlConnection extends DatabaseConnection
| Constructor and Description |
|---|
MsSqlConnection(Connection connection)
Creates a new
MsSqlConnection. |
MsSqlConnection(Connection connection,
String schema)
Creates a new
MsSqlConnection. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
close, getConnection, getSchema, toStringcreateQueryTable, createTable, createTable, getConfig, getRowCount, getRowCount, getStatementFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateQueryTable, createTable, createTable, getConfig, getRowCount, getRowCount, getStatementFactorypublic MsSqlConnection(Connection connection, String schema) throws DatabaseUnitException
MsSqlConnection.connection - the adapted JDBC connectionschema - the database schemaDatabaseUnitExceptionpublic MsSqlConnection(Connection connection) throws DatabaseUnitException
MsSqlConnection.connection - the adapted JDBC connectionDatabaseUnitExceptionpublic IDataSet createDataSet() throws SQLException
IDatabaseConnectioncreateDataSet in interface IDatabaseConnectioncreateDataSet in class AbstractDatabaseConnectionSQLExceptionpublic IDataSet createDataSet(String[] tableNames) throws SQLException, DataSetException
IDatabaseConnectioncreateDataSet in interface IDatabaseConnectioncreateDataSet in class AbstractDatabaseConnectiontableNames - The tables for which a dataset shall be createdSQLExceptionDataSetExceptionCopyright © 2002-2017. All Rights Reserved.