public class CompositeOperation extends DatabaseOperation
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE
Constructor and Description |
---|
CompositeOperation(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.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(IDatabaseConnection connection,
IDataSet dataSet)
Executes this operation on the specified database using the specified
dataset contents.
|
String |
toString() |
CLOSE_CONNECTION, TRANSACTION
public CompositeOperation(DatabaseOperation action1, DatabaseOperation action2)
public CompositeOperation(DatabaseOperation[] actions)
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, SQLException
DatabaseOperation
execute
in class DatabaseOperation
connection
- the database connection.dataSet
- the dataset to be used by this operation.DatabaseUnitException
SQLException
Copyright © 2002-2012. All Rights Reserved.