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

spring-issuemaster opened this issue Feb 4, 2013 · 2 comments


Copy link

@spring-issuemaster spring-issuemaster commented Feb 4, 2013

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

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Mar 25, 2013

Paul Middelkoop commented

queryForInt is still mentioned in the documentation:

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

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Apr 30, 2013

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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.