Skip to content

NamedParameterJdbcTemplate and JdbcTemplate: consider deprecating queryFor* methods [SPR-10257] #14890

Closed

Description

@spring-projects-issues

Michael Isvy opened SPR-10257 and commented

Those methods were mostly relevant prior to Java 5. Thanks to Generics, we now can use query(...) methods instead in all cases that I can think of.


No further details from SPR-10257

Activity

  1. spring-projects-issues commented on Mar 25, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Paul Middelkoop commented

    queryForInt is still mentioned in the documentation: http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/jdbc.html#jdbc-JdbcTemplate

    Also tell in the Javadoc @Deprecated which method should be used now: queryForObject.

  2. spring-projects-issues commented on Apr 30, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Good catch! I've updated the reference docs accordingly.

    Note that the deprecation markers in the JdbcOperations interface do refer to the queryForObject method. We're just not repeating those javadoc links in the JdbcTemplate class itself.

    Juergen

  3. added this to the 3.2.2 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions