Package org.dbunit.operation
Class InsertOperation
java.lang.Object
org.dbunit.operation.DatabaseOperation
org.dbunit.operation.AbstractOperation
org.dbunit.operation.AbstractBatchOperation
org.dbunit.operation.InsertOperation
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$
- Author:
- Manuel Laflamme
-
Field Summary
Fields inherited from class org.dbunit.operation.AbstractBatchOperation
_reverseRowOrderFields inherited from class org.dbunit.operation.DatabaseOperation
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanequalsIgnoreMapping(BitSet ignoreMapping, ITable table, int row) protected BitSetgetIgnoreMapping(ITable table, int row) getOperationData(ITableMetaData metaData, BitSet ignoreMapping, IDatabaseConnection connection) Methods inherited from class org.dbunit.operation.AbstractBatchOperation
execute, handleColumnHasNoValue, iterator, toStringMethods inherited from class org.dbunit.operation.AbstractOperation
getQualifiedNameMethods inherited from class org.dbunit.operation.DatabaseOperation
CLOSE_CONNECTION, TRANSACTION
-
Method Details
-
getOperationData
public OperationData getOperationData(ITableMetaData metaData, BitSet ignoreMapping, IDatabaseConnection connection) throws DataSetException - Throws:
DataSetException
-
getIgnoreMapping
- Throws:
DataSetException
-
equalsIgnoreMapping
protected boolean equalsIgnoreMapping(BitSet ignoreMapping, ITable table, int row) throws DataSetException - Throws:
DataSetException
-