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, toString
createQueryTable, createTable, createTable, getConfig, getRowCount, getRowCount, getStatementFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createQueryTable, createTable, createTable, getConfig, getRowCount, getRowCount, getStatementFactory
public MsSqlConnection(Connection connection, String schema) throws DatabaseUnitException
MsSqlConnection
.connection
- the adapted JDBC connectionschema
- the database schemaDatabaseUnitException
public MsSqlConnection(Connection connection) throws DatabaseUnitException
MsSqlConnection
.connection
- the adapted JDBC connectionDatabaseUnitException
public IDataSet createDataSet() throws SQLException
IDatabaseConnection
createDataSet
in interface IDatabaseConnection
createDataSet
in class AbstractDatabaseConnection
SQLException
public IDataSet createDataSet(String[] tableNames) throws SQLException, DataSetException
IDatabaseConnection
createDataSet
in interface IDatabaseConnection
createDataSet
in class AbstractDatabaseConnection
tableNames
- The tables for which a dataset shall be createdSQLException
DataSetException
Copyright © 2002-2016. All Rights Reserved.