public class DeleteAllOperation extends AbstractOperation
TruncateTableOperation
.
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
CLEAN_INSERT, DELETE, DELETE_ALL, INSERT, NONE, REFRESH, TRUNCATE_TABLE, UPDATE
Modifier and Type | Method and Description |
---|---|
void |
execute(IDatabaseConnection connection,
IDataSet dataSet)
Executes this operation on the specified database using the specified
dataset contents.
|
protected String |
getDeleteAllCommand() |
getQualifiedName
CLOSE_CONNECTION, TRANSACTION
protected String getDeleteAllCommand()
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, SQLException
DatabaseOperation
execute
in class DatabaseOperation
connection
- the database connection.dataSet
- the dataset to be used by this operation.DatabaseUnitException
SQLException
Copyright © 2002–2024. All rights reserved.