org.dbunit.ext.mssql
Class MsSqlConnection

java.lang.Object
  extended by org.dbunit.database.AbstractDatabaseConnection
      extended by org.dbunit.database.DatabaseConnection
          extended by org.dbunit.ext.mssql.MsSqlConnection
All Implemented Interfaces:
IDatabaseConnection

public class MsSqlConnection
extends DatabaseConnection

Since:
May 19, 2003
Version:
$Revision: 675 $
Author:
Manuel Laflamme

Constructor Summary
MsSqlConnection(java.sql.Connection connection)
          Creates a new MsSqlConnection.
MsSqlConnection(java.sql.Connection connection, java.lang.String schema)
          Creates a new MsSqlConnection.
 
Method Summary
 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.
 
Methods inherited from class org.dbunit.database.DatabaseConnection
close, getConnection, getSchema
 
Methods inherited from class org.dbunit.database.AbstractDatabaseConnection
createQueryTable, getConfig, getRowCount, getRowCount, 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
createQueryTable, getConfig, getRowCount, getRowCount, getStatementFactory
 

Constructor Detail

MsSqlConnection

public MsSqlConnection(java.sql.Connection connection,
                       java.lang.String schema)
Creates a new MsSqlConnection.

Parameters:
connection - the adapted JDBC connection
schema - the database schema

MsSqlConnection

public MsSqlConnection(java.sql.Connection connection)
Creates a new MsSqlConnection.

Parameters:
connection - the adapted JDBC connection
Method Detail

createDataSet

public IDataSet createDataSet()
                       throws java.sql.SQLException
Description copied from interface: IDatabaseConnection
Creates a dataset corresponding to the entire database.

Specified by:
createDataSet in interface IDatabaseConnection
Overrides:
createDataSet in class AbstractDatabaseConnection
Throws:
java.sql.SQLException

createDataSet

public IDataSet createDataSet(java.lang.String[] tableNames)
                       throws java.sql.SQLException
Description copied from interface: IDatabaseConnection
Creates a dataset containing only the specified tables from the database.

Specified by:
createDataSet in interface IDatabaseConnection
Overrides:
createDataSet in class AbstractDatabaseConnection
Throws:
java.sql.SQLException


Copyright © 2002-2008. All Rights Reserved.