class RunScheduleDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public void deleteRunSchedules(final List<Long> ids) {
        final MapSqlParameterSource[] params = ids.stream()
            .map(RunScheduleParameters::getId)
            .collect(Collectors.toList())
            .toArray(new MapSqlParameterSource[ids.size()]);
        getNamedParameterJdbcTemplate().batchUpdate(deleteRunScheduleQuery, params);
    }

}