private class CallableStatementCreatorFactory.CallableStatementCreatorImpl extends java.lang.Object implements CallableStatementCreator, SqlProvider, ParameterDisposer
Modifier and Type | Field and Description |
---|---|
private ParameterMapper |
inParameterMapper |
private java.util.Map<java.lang.String,?> |
inParameters |
Constructor and Description |
---|
CallableStatementCreatorImpl(java.util.Map<java.lang.String,?> inParams)
Create a new CallableStatementCreatorImpl.
|
CallableStatementCreatorImpl(ParameterMapper inParamMapper)
Create a new CallableStatementCreatorImpl.
|
Modifier and Type | Method and Description |
---|---|
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() |
private ParameterMapper inParameterMapper
private java.util.Map<java.lang.String,?> inParameters
public CallableStatementCreatorImpl(ParameterMapper inParamMapper)
inParamMapper
- ParameterMapper implementation for mapping input parameterspublic CallableStatementCreatorImpl(java.util.Map<java.lang.String,?> inParams)
inParams
- list of SqlParameter objectspublic java.sql.CallableStatement createCallableStatement(java.sql.Connection con) throws java.sql.SQLException
CallableStatementCreator
createCallableStatement
in interface CallableStatementCreator
con
- Connection to use to create statementjava.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.public java.lang.String getSql()
SqlProvider
getSql
in interface SqlProvider
null
if not availablepublic void cleanupParameters()
ParameterDisposer
cleanupParameters
in interface ParameterDisposer
DisposableSqlTypeValue.cleanup()
,
SqlLobValue.cleanup()
public java.lang.String toString()
toString
in class java.lang.Object