Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10435

BatchSqlUpdate support for named parameters

    XMLWordPrintable

    Details

    • Last commented by a User:
      true

      Description

      The BatchSqlUpdate class doesn't override the updateByNamedParam(Map<String,?> paramMap) method. It would be useful to override this so that named parameters would be supported when performing batch updates and the same map could be reused to pass the parameters around (simple and with minimal space overhead).

      NamedParameterJdbcTemplate has the batchUpdate(String sql, Map<String,?>[] batchValues) method to do this but, besides having a different interface, it requires an array of maps, with increased overhead, code bloating and complication reusing the maps (http://stackoverflow.com/questions/15277584/spring-batchsqlupdate-vs-namedparameterjdbctemplate-using-named-parameters).

      Thanks
      Giovanni

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            giovannibotta Giovanni Botta
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              3 years, 31 weeks, 3 days ago