org.springframework.jdbc.core
Class JdbcTemplate.SimpleCallableStatementCreator
java.lang.Object
org.springframework.jdbc.core.JdbcTemplate.SimpleCallableStatementCreator
- All Implemented Interfaces:
- CallableStatementCreator, SqlProvider
- Enclosing class:
- JdbcTemplate
private static class JdbcTemplate.SimpleCallableStatementCreator
- extends java.lang.Object
- implements CallableStatementCreator, SqlProvider
Simple adapter for CallableStatementCreator, allowing to use a plain SQL statement.
Method Summary |
java.sql.CallableStatement |
createCallableStatement(java.sql.Connection con)
Create a callable statement in this connection. |
java.lang.String |
getSql()
Return the SQL string for this object, i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
callString
private final java.lang.String callString
JdbcTemplate.SimpleCallableStatementCreator
public JdbcTemplate.SimpleCallableStatementCreator(java.lang.String callString)
createCallableStatement
public java.sql.CallableStatement createCallableStatement(java.sql.Connection con)
throws java.sql.SQLException
- Description copied from interface:
CallableStatementCreator
- Create a callable statement in this connection. Allows implementations to use
CallableStatements.
- Specified by:
createCallableStatement
in interface CallableStatementCreator
- Parameters:
con
- Connection to use to create statement
- Returns:
- a callable statement
- Throws:
java.sql.SQLException
- there is no need to catch SQLExceptions
that may be thrown in the implementation of this method.
The JdbcTemplate class will handle them.
getSql
public java.lang.String getSql()
- Description copied from interface:
SqlProvider
- Return the SQL string for this object, i.e.
typically the SQL used for creating statements.
- Specified by:
getSql
in interface SqlProvider
- Returns:
- the SQL string, or
null