org.springframework.jdbc.core
Class JdbcTemplate.SimpleCallableStatementCreator

java.lang.Object
  extended byorg.springframework.jdbc.core.JdbcTemplate.SimpleCallableStatementCreator
All Implemented Interfaces:
CallableStatementCreator, SqlProvider
Enclosing class:
JdbcTemplate

protected static final class JdbcTemplate.SimpleCallableStatementCreator
extends java.lang.Object
implements CallableStatementCreator, SqlProvider

Simple adapter for CallableStatementCreator, allowing to use a plain SQL statement.


Constructor Summary
JdbcTemplate.SimpleCallableStatementCreator(java.lang.String callString)
           
 
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, typically the SQL used for creating statements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcTemplate.SimpleCallableStatementCreator

public JdbcTemplate.SimpleCallableStatementCreator(java.lang.String callString)
Method Detail

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, typically the SQL used for creating statements.

Specified by:
getSql in interface SqlProvider
Returns:
the SQL string, or null


Copyright (C) 2003-2004 The Spring Framework Project.