org.dbunit.operation
Class DatabaseOperation

java.lang.Object
  extended byorg.dbunit.operation.DatabaseOperation
Direct Known Subclasses:
AbstractOperation, CloseConnectionOperation, CompositeOperation, TransactionOperation

public abstract class DatabaseOperation
extends java.lang.Object

Defines the interface contract for operations performed on the database.

Since:
Feb 18, 2002
Version:
$Revision: 1.14 $
Author:
Manuel Laflamme

Field Summary
static DatabaseOperation CLEAN_INSERT
           
static DatabaseOperation DELETE
           
static DatabaseOperation DELETE_ALL
           
static DatabaseOperation INSERT
           
static DatabaseOperation NONE
           
static DatabaseOperation REFRESH
           
static DatabaseOperation TRUNCATE_TABLE
           
static DatabaseOperation UPDATE
           
 
Constructor Summary
DatabaseOperation()
           
 
Method Summary
abstract  void execute(IDatabaseConnection connection, IDataSet dataSet)
          Executes this operation on the specified database using the specified dataset contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final DatabaseOperation NONE

UPDATE

public static final DatabaseOperation UPDATE

INSERT

public static final DatabaseOperation INSERT

REFRESH

public static final DatabaseOperation REFRESH

DELETE

public static final DatabaseOperation DELETE

DELETE_ALL

public static final DatabaseOperation DELETE_ALL

TRUNCATE_TABLE

public static final DatabaseOperation TRUNCATE_TABLE

CLEAN_INSERT

public static final DatabaseOperation CLEAN_INSERT
Constructor Detail

DatabaseOperation

public DatabaseOperation()
Method Detail

execute

public abstract void execute(IDatabaseConnection connection,
                             IDataSet dataSet)
                      throws DatabaseUnitException,
                             java.sql.SQLException
Executes this operation on the specified database using the specified dataset contents.

Parameters:
connection - the database connection.
dataSet - the dataset to be used by this operation.
Throws:
DatabaseUnitException
java.sql.SQLException


Copyright © 2002-2004 DbUnit.org. All Rights Reserved.