org.dbunit.operation
Class InsertOperation

java.lang.Object
  extended byorg.dbunit.operation.DatabaseOperation
      extended byorg.dbunit.operation.AbstractOperation
          extended byorg.dbunit.operation.AbstractBatchOperation
              extended byorg.dbunit.operation.InsertOperation

public class InsertOperation
extends AbstractBatchOperation

Inserts the dataset contents into the database. This operation assumes that table data does not exist in the database and fails if this is not the case. To prevent problems with foreign keys, tables must be sequenced appropriately in dataset.

Since:
Feb 18, 2002
Version:
$Revision: 1.17 $
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
protected  boolean equalsIgnoreMapping(java.util.BitSet ignoreMapping, ITable table, int row)
           
protected  java.util.BitSet getIgnoreMapping(ITable table, int row)
           
 OperationData getOperationData(ITableMetaData metaData, java.util.BitSet ignoreMapping, IDatabaseConnection connection)
           
 
Methods inherited from class org.dbunit.operation.AbstractBatchOperation
execute, iterator
 
Methods inherited from class org.dbunit.operation.AbstractOperation
getQualifiedName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOperationData

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

getIgnoreMapping

protected java.util.BitSet getIgnoreMapping(ITable table,
                                            int row)
                                     throws DataSetException
Throws:
DataSetException

equalsIgnoreMapping

protected boolean equalsIgnoreMapping(java.util.BitSet ignoreMapping,
                                      ITable table,
                                      int row)
                               throws DataSetException
Throws:
DataSetException


Copyright © 2002-2004 DbUnit.org. All Rights Reserved.