1 /* 2 * 3 * The DbUnit Database Testing Framework 4 * Copyright (C)2002-2004, DbUnit.org 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 */ 20 21 package org.dbunit.operation.mssqlserver; 22 import org.dbunit.operation.DatabaseOperation; 23 24 /** 25 * This class disable the MS SQL Server automatic identifier generation for 26 * the execution of inserts. 27 * <p> 28 * If you are using the Microsoft driver (i.e. 29 * <code>com.microsoft.jdbc.sqlserver.SQLServerDriver</code>), you'll need to 30 * use the <code>SelectMethod=cursor</code> parameter in the JDBC connection 31 * string. Your databaseUrl would look something like the following: 32 * <p> 33 * <code>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb;SelectMethod=cursor</code> 34 * <p> 35 * Thanks to Jeremy Stein who have submited multiple patches. 36 * 37 * @author Manuel Laflamme 38 * @author Eric Pugh 39 * @version $Revision: 1.22 $ 40 * @since Apr 9, 2002 41 * @deprecated Replaced by {@link org.dbunit.ext.mssql.InsertIdentityOperation}. Be warned, this class will eventually be removed. 42 */ 43 public class InsertIdentityOperation extends org.dbunit.ext.mssql.InsertIdentityOperation 44 { 45 /** 46 * Creates a new InsertIdentityOperation object that decorates the 47 * specified operation. 48 */ 49 public InsertIdentityOperation(DatabaseOperation operation) 50 { 51 super(operation); 52 } 53 } 54 55 56 57 58 59 60