You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've extracted a common getPreparedStatementCreator variant with an optional Consumer<PreparedStatementCreatorFactory> argument. We're using that internally not only from the query but also from the update operations now where we need to customize the generated key handling via PreparedStatementCreatorFactory. In custom operations like yours, you may call that same getPreparedStatementCreator variant with a customizer lambda expression that adapts the result set type.
diego lovison opened SPR-16050 and commented
I would like to create a streamable query using spring jdbc.
My method is delegating a call to getPreparedStatementCreator in the class NamedParameterJdbcTemplate to avoid copying and pasting the following code:
My project is using DB2 and I need to change the resultSetType parameter value in the class PreparedStatementCreatorFactory.
Today I can only do that copying and past the entire method.
The idea about stream query come from: https://github.com/APNIC-net/spring-jdbctemplate-streams
Issue Links:
The text was updated successfully, but these errors were encountered: