org.unitils.dbunit.datasetloadstrategy.impl
Class InsertLoadStrategy
java.lang.Object
  
org.unitils.dbunit.datasetloadstrategy.impl.BaseDataSetLoadStrategy
      
org.unitils.dbunit.datasetloadstrategy.impl.InsertLoadStrategy
- All Implemented Interfaces: 
 - DataSetLoadStrategy
 
public class InsertLoadStrategy
- extends BaseDataSetLoadStrategy
 
DataSetLoadStrategy that inserts the contents of the dataset into the database.
- Author:
 
  - Filip Neven, Tim Ducheyne
 
- See Also:
 DatabaseOperation.INSERT
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
InsertLoadStrategy
public InsertLoadStrategy()
doExecute
public void doExecute(DbUnitDatabaseConnection dbUnitDatabaseConnection,
                      org.dbunit.dataset.IDataSet dataSet)
               throws org.dbunit.DatabaseUnitException,
                      SQLException
- Executes this DataSetLoadStrategy. This means the given dataset is inserted in the database using the given dbUnit
 database connection object.
- Specified by:
 doExecute in class BaseDataSetLoadStrategy
 
- Parameters:
 dbUnitDatabaseConnection - DbUnit class providing access to the databasedataSet - The dbunit dataset
- Throws:
 org.dbunit.DatabaseUnitException - Exception thown by dbunit
SQLException - Exception thown by dbunit
 
 
Copyright © 2011. All Rights Reserved.