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
See Also:
DummyOperation

UPDATE

public static final DatabaseOperation UPDATE
See Also:
UpdateOperation

INSERT

public static final DatabaseOperation INSERT
See Also:
InsertOperation

REFRESH

public static final DatabaseOperation REFRESH
See Also:
RefreshOperation

DELETE

public static final DatabaseOperation DELETE
See Also:
DeleteOperation

DELETE_ALL

public static final DatabaseOperation DELETE_ALL
See Also:
DeleteAllOperation

TRUNCATE_TABLE

public static final DatabaseOperation TRUNCATE_TABLE
See Also:
TruncateTableOperation

CLEAN_INSERT

public static final DatabaseOperation CLEAN_INSERT
See Also:
DeleteAllOperation, InsertOperation, CompositeOperation
Constructor Detail

DatabaseOperation

public DatabaseOperation()
Method Detail

TRANSACTION

public static final DatabaseOperation TRANSACTION(DatabaseOperation operation)
See Also:
TransactionOperation

CLOSE_CONNECTION

public static final DatabaseOperation CLOSE_CONNECTION(DatabaseOperation operation)
See Also:
CloseConnectionOperation

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.