|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dbunit.operation.DatabaseOperation
org.dbunit.operation.AbstractOperation
org.dbunit.operation.DeleteAllOperation
Deletes all rows of tables present in the specified dataset. If the dataset does not contains a particular table, but that table exists in the database, the database table is not affected. Table are truncated in reverse sequence.
This operation has the same effect of asTruncateTableOperation.
TruncateTableOperation is faster, and it is non-logged, meaning it cannot be
rollback. DeleteAllOperation is more portable because not all database vendor
support TRUNCATE_TABLE TABLE statement.
TruncateTableOperation| Field Summary |
| Fields inherited from class org.dbunit.operation.DatabaseOperation |
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE |
| Method Summary | |
void |
execute(IDatabaseConnection connection,
IDataSet dataSet)
Executes this operation on the specified database using the specified dataset contents. |
protected java.lang.String |
getDeleteAllCommand()
|
| 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 |
protected java.lang.String getDeleteAllCommand()
public void execute(IDatabaseConnection connection,
IDataSet dataSet)
throws DatabaseUnitException,
java.sql.SQLException
DatabaseOperation
execute in class DatabaseOperationconnection - the database connection.dataSet - the dataset to be used by this operation.
DatabaseUnitException
java.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||