Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Feb 4, 2013 · 2 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

@spring-projects-issues
Copy link
Collaborator Author

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.

@spring-projects-issues
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants