spring-framework / org.springframework.jdbc.core / CallableStatementCreatorFactory

CallableStatementCreatorFactory

open class CallableStatementCreatorFactory

Helper class that efficiently creates multiple CallableStatementCreator objects with different parameters based on a SQL statement and a single set of parameter declarations.

Author
Rod Johnson

Author
Thomas Risberg

Author
Juergen Hoeller

Constructors

<init>

CallableStatementCreatorFactory(callString: String)

Create a new factory. Will need to add parameters via the #addParameter method or have no parameters.

CallableStatementCreatorFactory(callString: String, declaredParameters: MutableList<SqlParameter>)

Create a new factory with the given SQL and the given parameters.

Functions

addParameter

open fun addParameter(param: SqlParameter): Unit

Add a new declared parameter.

Order of parameter addition is significant.

newCallableStatementCreator

open fun newCallableStatementCreator(params: MutableMap<String, *>): CallableStatementCreator

Return a new CallableStatementCreator instance given this parameters.

open fun newCallableStatementCreator(inParamMapper: ParameterMapper): CallableStatementCreator

Return a new CallableStatementCreator instance given this parameter mapper.

setResultSetType

open fun setResultSetType(resultSetType: Int): Unit

Set whether to use prepared statements that return a specific type of ResultSet. specific type of ResultSet.

setUpdatableResults

open fun setUpdatableResults(updatableResults: Boolean): Unit

Set whether to use prepared statements capable of returning updatable ResultSets.