private void addOperations(
     PreparedStatement statement, long testId, String version, MeasuredOperationList operations)
     throws SQLException {
   for (MeasuredOperation operation : operations) {
     statement.setLong(1, testId);
     statement.setString(2, version);
     statement.setBigDecimal(
         3, operation.getTotalTime().toUnits(Duration.MILLI_SECONDS).getValue());
     statement.setBigDecimal(
         4, operation.getConfigurationTime().toUnits(Duration.MILLI_SECONDS).getValue());
     statement.setBigDecimal(
         5, operation.getExecutionTime().toUnits(Duration.MILLI_SECONDS).getValue());
     statement.setBigDecimal(
         6, operation.getTotalMemoryUsed().toUnits(DataAmount.BYTES).getValue());
     statement.setBigDecimal(
         7, operation.getTotalHeapUsage().toUnits(DataAmount.BYTES).getValue());
     statement.setBigDecimal(8, operation.getMaxHeapUsage().toUnits(DataAmount.BYTES).getValue());
     statement.setBigDecimal(
         9, operation.getMaxUncollectedHeap().toUnits(DataAmount.BYTES).getValue());
     statement.setBigDecimal(
         10, operation.getMaxCommittedHeap().toUnits(DataAmount.BYTES).getValue());
     statement.execute();
   }
 }