public class UpdateLoadStrategy extends BaseDataSetLoadStrategy
DataSetLoadStrategy that updates the contents of the database with the contents of the dataset. This means
that data of existing rows is updated. Fails if the dataset contains records that are not in the database (i.e. a records having the same value for the
primary key column).DatabaseOperation.UPDATE| Constructor and Description |
|---|
UpdateLoadStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(DbUnitDatabaseConnection dbUnitDatabaseConnection,
org.dbunit.dataset.IDataSet dataSet)
Executes this DataSetLoadStrategy.
|
executeprotected void doExecute(DbUnitDatabaseConnection dbUnitDatabaseConnection, org.dbunit.dataset.IDataSet dataSet) throws org.dbunit.DatabaseUnitException, SQLException
BaseDataSetLoadStrategydoExecute in class BaseDataSetLoadStrategydbUnitDatabaseConnection - DbUnit class providing access to the databasedataSet - The dbunit datasetorg.dbunit.DatabaseUnitException - Exception thown by dbunitSQLException - Exception thown by dbunitCopyright © 2017. All rights reserved.