org.dbunit.operation.mssqlserver
Class InsertIdentityOperation

java.lang.Object
  extended byorg.dbunit.operation.DatabaseOperation
      extended byorg.dbunit.operation.AbstractOperation
          extended byorg.dbunit.ext.mssql.InsertIdentityOperation
              extended byorg.dbunit.operation.mssqlserver.InsertIdentityOperation

Deprecated. Replaced by InsertIdentityOperation. Be warned, this class will eventually be removed.

public class InsertIdentityOperation
extends InsertIdentityOperation

This class disable the MS SQL Server automatic identifier generation for the execution of inserts.

If you are using the Microsoft driver (i.e. com.microsoft.jdbc.sqlserver.SQLServerDriver), you'll need to use the SelectMethod=cursor parameter in the JDBC connection string. Your databaseUrl would look something like the following:

jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb;SelectMethod=cursor

Thanks to Jeremy Stein who have submited multiple patches.

Since:
Apr 9, 2002
Version:
$Revision: 1.22 $
Author:
Manuel Laflamme, Eric Pugh

Field Summary
 
Fields inherited from class org.dbunit.ext.mssql.InsertIdentityOperation
CLEAN_INSERT, INSERT, PROPERTY_IDENTITY_COLUMN_FILTER, REFRESH
 
Fields inherited from class org.dbunit.operation.DatabaseOperation
DELETE, DELETE_ALL, NONE, TRUNCATE_TABLE, UPDATE
 
Constructor Summary
InsertIdentityOperation(DatabaseOperation operation)
          Deprecated. Creates a new InsertIdentityOperation object that decorates the specified operation.
 
Methods inherited from class org.dbunit.ext.mssql.InsertIdentityOperation
execute
 
Methods inherited from class org.dbunit.operation.AbstractOperation
getQualifiedName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertIdentityOperation

public InsertIdentityOperation(DatabaseOperation operation)
Deprecated. 
Creates a new InsertIdentityOperation object that decorates the specified operation.



Copyright © 2002-2004 DbUnit.org. All Rights Reserved.