org.dbunit.operation
Class CompositeOperation

java.lang.Object
  extended by org.dbunit.operation.DatabaseOperation
      extended by org.dbunit.operation.CompositeOperation

public class CompositeOperation
extends DatabaseOperation

This class is a composite that combines multiple database operation in a single one.

Since:
Feb 18, 2002
Version:
$Revision: 720 $
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
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.
 
Method Summary
 void execute(IDatabaseConnection connection, IDataSet dataSet)
          Executes this operation on the specified database using the specified dataset contents.
 String toString()
           
 
Methods inherited from class org.dbunit.operation.DatabaseOperation
CLOSE_CONNECTION, TRANSACTION
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeOperation

public CompositeOperation(DatabaseOperation action1,
                          DatabaseOperation action2)
Creates a new composite operation combining the two specified operations.


CompositeOperation

public CompositeOperation(DatabaseOperation[] actions)
Creates a new composite operation combining the specified operations.

Method Detail

execute

public void execute(IDatabaseConnection connection,
                    IDataSet dataSet)
             throws DatabaseUnitException,
                    SQLException
Description copied from class: DatabaseOperation
Executes this operation on the specified database using the specified dataset contents.

Specified by:
execute in class DatabaseOperation
Parameters:
connection - the database connection.
dataSet - the dataset to be used by this operation.
Throws:
DatabaseUnitException
SQLException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012. All Rights Reserved.