org.dbunit.operation
Class DeleteOperation

java.lang.Object
  extended by org.dbunit.operation.DatabaseOperation
      extended by org.dbunit.operation.AbstractOperation
          extended by org.dbunit.operation.AbstractBatchOperation
              extended by org.dbunit.operation.DeleteOperation

public class DeleteOperation
extends AbstractBatchOperation

Deletes only the dataset contents from the database. This operation does not delete the entire table contents but only data that are present in the dataset.

Since:
Feb 19, 2002
Version:
$Revision: 675 $
Author:
Manuel Laflamme

Field Summary
 
Fields inherited from class org.dbunit.operation.AbstractBatchOperation
_reverseRowOrder
 
Fields inherited from class org.dbunit.operation.DatabaseOperation
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE
 
Method Summary
 OperationData getOperationData(ITableMetaData metaData, BitSet ignoreMapping, IDatabaseConnection connection)
           
protected  ITableIterator iterator(IDataSet dataSet)
          Returns list of tables this operation is applied to.
 
Methods inherited from class org.dbunit.operation.AbstractBatchOperation
execute, toString
 
Methods inherited from class org.dbunit.operation.AbstractOperation
getQualifiedName
 
Methods inherited from class org.dbunit.operation.DatabaseOperation
CLOSE_CONNECTION, TRANSACTION
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

iterator

protected ITableIterator iterator(IDataSet dataSet)
                           throws DatabaseUnitException
Description copied from class: AbstractBatchOperation
Returns list of tables this operation is applied to. This method allow subclass to do filtering.

Overrides:
iterator in class AbstractBatchOperation
Throws:
DatabaseUnitException

getOperationData

public OperationData getOperationData(ITableMetaData metaData,
                                      BitSet ignoreMapping,
                                      IDatabaseConnection connection)
                               throws DataSetException
Throws:
DataSetException


Copyright © 2002-2012. All Rights Reserved.