|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.operation.DatabaseOperation
org.dbunit.operation.TransactionOperation
Decorates an operation and executes within the context of a transaction.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionOperation(DatabaseOperation operation)
Method Detail |
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, java.sql.SQLException
DatabaseOperation
execute
in class DatabaseOperation
connection
- the database connection.dataSet
- the dataset to be used by this operation.
DatabaseUnitException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |