org.springframework.jdbc.core
Interface CallableStatementCreator
- public interface CallableStatementCreator
One of the three central callback interfaces used by the JdbcTemplate class.
This interface creates a CallableStatement given a connection, provided
by the JdbcTemplate class. Implementations are responsible for providing
SQL and any necessary parameters.
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.
- Author:
- Rod Johnson, Thomas Risberg
| Method Summary |
CallableStatement | createCallableStatement(Connection con) Create a callable statement in this connection. |
createCallableStatement
public CallableStatement createCallableStatement(Connection con)
throws java.sql.SQLException
- Create a callable statement in this connection. Allows implementations to use
CallableStatements.
- Parameters:
- con - Connection to use to create statement
- Returns: a callable statement
- Throws:
- SQLException - there is no need to catch SQLExceptions
that may be thrown in the implementation of this method.
The JdbcTemplate class will handle them.