class RunScheduleDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.REQUIRED)
    public void updateRunSchedules(final List<RunSchedule> schedules) {
        final MapSqlParameterSource[] params = schedules.stream()
            .map(RunScheduleParameters::getParameters)
            .collect(Collectors.toList())
            .toArray(new MapSqlParameterSource[schedules.size()]);
        getNamedParameterJdbcTemplate().batchUpdate(updateRunScheduleQuery, params);
    }

}