There are a number of ways to call stored procedures in Spring using JdbcTemplate.
Calling stored procedures using JdbcTemplate has different approaches
- Using CallableStatementCreator based approach
- Extended abstract class StoredProcedure
- Using CallableStatement
May be other approaches also available but I know about these three only.
My questions is : What approach I should adopt and why should I adopt that i.e why that approach is better than other approaches, what are the advantages/disadvantages over other approaches.
I went through this Spring JDBC Template for calling Stored Procedures question but here users did not mentioned/explained why they followed a specific approach.
I want some comparison among different available approaches of JdbcTemplate for calling stored procedure so that I can choose the most efficient approach. Please guide me.