org.dbunit.operation
Class TransactionOperation

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

public class TransactionOperation
extends DatabaseOperation

Decorates an operation and executes within the context of a transaction.

Since:
Feb 21, 2002
Version:
$Revision: 675 $
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
TransactionOperation(DatabaseOperation operation)
          Creates a TransactionOperation that decorates the specified operation.
 
Method Summary
 void execute(IDatabaseConnection connection, IDataSet dataSet)
          Executes this operation on the specified database using the specified dataset contents.
 
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, toString, wait, wait, wait
 

Constructor Detail

TransactionOperation

public TransactionOperation(DatabaseOperation operation)
Creates a TransactionOperation that decorates the specified operation.

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


Copyright © 2002-2012. All Rights Reserved.