BatchStatement statement = connection.createBatchStatment();
BatchStatement statement = connection.createBatchStatement();
    public void execute(DatabaseConnection connection, IDataSet dataSet)            throws DatabaseUnitException, SQLException    {        // this dataset is used to get metadata from database        IDataSet databaseDataSet = connection.createDataSet();        BatchStatement statement = connection.createBatchStatment();        try        {            String[] tableNames = getTableNames(dataSet);            for (int i = 0; i < tableNames.length; i++)            {                String name = tableNames[i];                // use database metadata                ITableMetaData metaData = databaseDataSet.getTableMetaData(name);                ITable table = new CompositeTable(metaData, dataSet.getTable(name));                String[] sql = getOperationStatements(connection.getSchema(), table);                for (int j = 0; j < sql.length; j++)                {                    statement.add(sql[j]);                }                statement.execute();                statement.clear();            }        }        finally        {            statement.close();        }    }