Package org.dbunit.operation
Class AbstractBatchOperation
java.lang.Object
org.dbunit.operation.DatabaseOperation
org.dbunit.operation.AbstractOperation
org.dbunit.operation.AbstractBatchOperation
- Direct Known Subclasses:
DeleteOperation,InsertOperation,UpdateOperation
Base implementation for database operation that are executed in batch.
- Since:
- Feb 19, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
FieldsFields inherited from class org.dbunit.operation.DatabaseOperation
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(IDatabaseConnection connection, IDataSet dataSet) Executes this operation on the specified database using the specified dataset contents.protected voidhandleColumnHasNoValue(String tableName, String columnName) protected ITableIteratorReturns list of tables this operation is applied to.toString()Methods inherited from class org.dbunit.operation.AbstractOperation
getQualifiedNameMethods inherited from class org.dbunit.operation.DatabaseOperation
CLOSE_CONNECTION, TRANSACTION
-
Field Details
-
_reverseRowOrder
protected boolean _reverseRowOrder
-
-
Constructor Details
-
AbstractBatchOperation
public AbstractBatchOperation()
-
-
Method Details
-
iterator
Returns list of tables this operation is applied to. This method allow subclass to do filtering.- Throws:
DatabaseUnitException
-
execute
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, SQLException Description copied from class:DatabaseOperationExecutes this operation on the specified database using the specified dataset contents.- Specified by:
executein classDatabaseOperation- Parameters:
connection- the database connection.dataSet- the dataset to be used by this operation.- Throws:
DatabaseUnitExceptionSQLException
-
handleColumnHasNoValue
-
toString
-