org.dbunit.operation
Class InsertOperation
java.lang.Object
org.dbunit.operation.DatabaseOperation
org.dbunit.operation.AbstractOperation
org.dbunit.operation.AbstractBatchOperation
org.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: 727 $
- Author:
- Manuel Laflamme
getOperationData
public OperationData getOperationData(ITableMetaData metaData,
BitSet ignoreMapping,
IDatabaseConnection connection)
throws DataSetException
- Throws:
DataSetException
getIgnoreMapping
protected BitSet getIgnoreMapping(ITable table,
int row)
throws DataSetException
- Description copied from class:
AbstractBatchOperation
- Returns mapping of columns to ignore by this operation. Each bit set represent
a column to ignore.
- Throws:
DataSetException
equalsIgnoreMapping
protected boolean equalsIgnoreMapping(BitSet ignoreMapping,
ITable table,
int row)
throws DataSetException
- Description copied from class:
AbstractBatchOperation
- Returns false if the specified table row have a different ignore mapping
than the specified mapping.
- Throws:
DataSetException
Copyright © 2002-2012. All Rights Reserved.