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-projects-issues opened this issue Feb 4, 2013 · 2 comments
type: enhancement A general enhancement


Copy link

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

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

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
type: enhancement A general enhancement
None yet

No branches or pull requests

2 participants