Package org.dbunit.operation
Class CompositeOperation
java.lang.Object
org.dbunit.operation.DatabaseOperation
org.dbunit.operation.CompositeOperation
This class is a composite that combines multiple database operation in a
single one.
- Since:
- Feb 18, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
Fields inherited from class org.dbunit.operation.DatabaseOperation
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionCompositeOperation(DatabaseOperation[] actions) Creates a new composite operation combining the specified operations.CompositeOperation(DatabaseOperation action1, DatabaseOperation action2) Creates a new composite operation combining the two specified operations. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(IDatabaseConnection connection, IDataSet dataSet) Executes this operation on the specified database using the specified dataset contents.toString()Methods inherited from class org.dbunit.operation.DatabaseOperation
CLOSE_CONNECTION, TRANSACTION
-
Constructor Details
-
CompositeOperation
Creates a new composite operation combining the two specified operations. -
CompositeOperation
Creates a new composite operation combining the specified operations.
-
-
Method Details
-
execute
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, SQLException Description copied from class:DatabaseOperationExecutes this operation on the specified database using the specified dataset contents.- Specified by:
executein classDatabaseOperation- Parameters:
connection- the database connection.dataSet- the dataset to be used by this operation.- Throws:
DatabaseUnitExceptionSQLException
-
toString
-