public class MsSqlConnection extends DatabaseConnection
| Constructor and Description |
|---|
MsSqlConnection(java.sql.Connection connection)
Creates a new
MsSqlConnection. |
MsSqlConnection(java.sql.Connection connection,
java.lang.String schema)
Creates a new
MsSqlConnection. |
| Modifier and Type | Method and Description |
|---|---|
IDataSet |
createDataSet()
Creates a dataset corresponding to the entire database.
|
IDataSet |
createDataSet(java.lang.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(java.sql.Connection connection,
java.lang.String schema)
throws DatabaseUnitException
MsSqlConnection.connection - the adapted JDBC connectionschema - the database schemaDatabaseUnitExceptionpublic MsSqlConnection(java.sql.Connection connection)
throws DatabaseUnitException
MsSqlConnection.connection - the adapted JDBC connectionDatabaseUnitExceptionpublic IDataSet createDataSet() throws java.sql.SQLException
IDatabaseConnectioncreateDataSet in interface IDatabaseConnectioncreateDataSet in class AbstractDatabaseConnectionjava.sql.SQLExceptionpublic IDataSet createDataSet(java.lang.String[] tableNames) throws java.sql.SQLException, DataSetException
IDatabaseConnectioncreateDataSet in interface IDatabaseConnectioncreateDataSet in class AbstractDatabaseConnectiontableNames - The tables for which a dataset shall be createdjava.sql.SQLExceptionDataSetExceptionCopyright © 2002-2018. All Rights Reserved.