Implementations do not need to concern themselves with SQLExceptions that may be thrown from operations they attempt. The JdbcTemplate class will catch and handle SQLExceptions appropriately.
A PreparedStatementCreator should also implement the SqlProvider interface if it is able to provide the SQL it uses for PreparedStatement creation. This allows for better contextual information in case of exceptions.
JdbcTemplate#execute(CallableStatementCreator, CallableStatementCallback), JdbcTemplate#call, SqlProvider
| Modifier and Type | Method and Description |
|---|---|
| public CallableStatement | Returns: a callable statementthe Connection to use to create statement con)Create a callable statement in this connection. |
| createCallableStatement | back to summary |
|---|---|
| public CallableStatement createCallableStatement(Connection con) throws SQLException Create a callable statement in this connection. Allows implementations to use CallableStatements.
| |