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.TruncateTableOperationCLEAN_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() |
getQualifiedNameCLOSE_CONNECTION, TRANSACTIONprotected String getDeleteAllCommand()
public void execute(IDatabaseConnection connection, IDataSet dataSet) throws DatabaseUnitException, SQLException
DatabaseOperationexecute in class DatabaseOperationconnection - the database connection.dataSet - the dataset to be used by this operation.DatabaseUnitExceptionSQLExceptionCopyright © 2002–2025. All rights reserved.