org.springframework.jdbc.core
Class CallableStatementCreatorFactory.CallableStatementCreatorImpl

java.lang.Object
  extended by org.springframework.jdbc.core.CallableStatementCreatorFactory.CallableStatementCreatorImpl
All Implemented Interfaces:
CallableStatementCreator, ParameterDisposer, SqlProvider
Enclosing class:
CallableStatementCreatorFactory

private class CallableStatementCreatorFactory.CallableStatementCreatorImpl
extends java.lang.Object
implements CallableStatementCreator, SqlProvider, ParameterDisposer

CallableStatementCreator implementation returned by this class.


Field Summary
private  ParameterMapper inParameterMapper
           
private  java.util.Map<java.lang.String,?> inParameters
           
 
Constructor Summary
CallableStatementCreatorFactory.CallableStatementCreatorImpl(java.util.Map<java.lang.String,?> inParams)
          Create a new CallableStatementCreatorImpl.
CallableStatementCreatorFactory.CallableStatementCreatorImpl(ParameterMapper inParamMapper)
          Create a new CallableStatementCreatorImpl.
 
Method Summary
 void cleanupParameters()
          Close the resources allocated by parameters that the implementing object holds, for example in case of a DisposableSqlTypeValue (like a SqlLobValue).
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inParameterMapper

private ParameterMapper inParameterMapper

inParameters

private java.util.Map<java.lang.String,?> inParameters
Constructor Detail

CallableStatementCreatorFactory.CallableStatementCreatorImpl

public CallableStatementCreatorFactory.CallableStatementCreatorImpl(ParameterMapper inParamMapper)
Create a new CallableStatementCreatorImpl.

Parameters:
inParamMapper - ParameterMapper implementation for mapping input parameters

CallableStatementCreatorFactory.CallableStatementCreatorImpl

public CallableStatementCreatorFactory.CallableStatementCreatorImpl(java.util.Map<java.lang.String,?> inParams)
Create a new CallableStatementCreatorImpl.

Parameters:
inParams - list of SqlParameter objects
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, i.e. typically the SQL used for creating statements.

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

cleanupParameters

public void cleanupParameters()
Description copied from interface: ParameterDisposer
Close the resources allocated by parameters that the implementing object holds, for example in case of a DisposableSqlTypeValue (like a SqlLobValue).

Specified by:
cleanupParameters in interface ParameterDisposer
See Also:
DisposableSqlTypeValue.cleanup(), SqlLobValue.cleanup()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object