org.dbunit.operation
Class DatabaseOperation

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

public abstract class DatabaseOperation
extends Object

Defines the interface contract for operations performed on the database.

Since:
Feb 18, 2002
Version:
$Revision$
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
static DatabaseOperation CLOSE_CONNECTION(DatabaseOperation operation)
           
abstract  void execute(IDatabaseConnection connection, IDataSet dataSet)
          Executes this operation on the specified database using the specified dataset contents.
static DatabaseOperation TRANSACTION(DatabaseOperation operation)
           
 
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

TRANSACTION

public static final DatabaseOperation TRANSACTION(DatabaseOperation operation)

CLOSE_CONNECTION

public static final DatabaseOperation CLOSE_CONNECTION(DatabaseOperation operation)

execute

public abstract void execute(IDatabaseConnection connection,
                             IDataSet dataSet)
                      throws DatabaseUnitException,
                             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
SQLException


Copyright © 2002–2014. All rights reserved.