What is called PreparedStatementCreator?
PreparedStatementCreator
is one of the most commonly used interfaces for writing data to the database. createPreparedStateme
nt() is a method that can be used to create and return PreparedStatement from the Connection argument, and exception handling is automatically taken care of. When this interface is implemented, a different interface SqlProvider
can also be implemented which has a method called getSql()
. This method is useful for providing sql strings to the JdbcTemplate. It does not handle SQLExceptions
.