I'm trying to translate the Performing an asynchronous query to use NamedParameterJdbcTemplate.
I haven't found any method calls (or chains of method calls) accessible from NamedParameterJdbcTemplate
which have an unwrap()
function. This means the underlying Snowflake JDBC classes cannot be accessed, which means I can't initiate the asynchronous behaviours demonstrated in the example code.
A couple of suggested I stumbled across was to manually convert the SQL ?
placeholders, or to manually replace the named placeholders with the values, but this seems ripe for bugs and sql injection vulnerabilities.
Has anyone managed to get get this example working using NamedParameterJdbcTemplate
and is willing to share their code?