spring-framework / org.springframework.jdbc.core / PreparedStatementCreatorFactory / newPreparedStatementCreator

newPreparedStatementCreator

open fun newPreparedStatementCreator(@Nullable params: MutableList<*>): PreparedStatementCreator

Return a new PreparedStatementCreator for the given parameters.

Parameters

params - list of parameters (may be null)

open fun newPreparedStatementCreator(@Nullable params: Array<Any>): PreparedStatementCreator

Return a new PreparedStatementCreator for the given parameters.

Parameters

params - the parameter array (may be null)

open fun newPreparedStatementCreator(sqlToUse: String, @Nullable params: Array<Any>): PreparedStatementCreator

Return a new PreparedStatementCreator for the given parameters.

Parameters

sqlToUse - the actual SQL statement to use (if different from the factory's, for example because of named parameter expanding)

params - the parameter array (may be null)