open class PreparedStatementCreatorFactory
Helper class that efficiently creates multiple PreparedStatementCreator 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
PreparedStatementCreatorFactory(sql: String)
Create a new factory. Will need to add parameters via the PreparedStatementCreatorFactory(sql: String, vararg types: Int)
Create a new factory with the given SQL and JDBC types. PreparedStatementCreatorFactory(sql: String, declaredParameters: MutableList<SqlParameter>)
Create a new factory with the given SQL and parameters. |
open fun addParameter(param: SqlParameter): Unit
Add a new declared parameter. Order of parameter addition is significant. |
|
open fun newPreparedStatementCreator(params: MutableList<*>): PreparedStatementCreator open fun newPreparedStatementCreator(params: Array<Any>): PreparedStatementCreator open fun newPreparedStatementCreator(sqlToUse: String, params: Array<Any>): PreparedStatementCreator
Return a new PreparedStatementCreator for the given parameters. |
|
open fun newPreparedStatementSetter(params: MutableList<*>): PreparedStatementSetter open fun newPreparedStatementSetter(params: Array<Any>): PreparedStatementSetter
Return a new PreparedStatementSetter for the given parameters. |
|
open fun setGeneratedKeysColumnNames(vararg names: String): Unit
Set the column names of the auto-generated keys. |
|
open fun setResultSetType(resultSetType: Int): Unit
Set whether to use prepared statements that return a specific type of ResultSet. |
|
open fun setReturnGeneratedKeys(returnGeneratedKeys: Boolean): Unit
Set whether prepared statements should be capable of returning auto-generated keys. |
|
open fun setUpdatableResults(updatableResults: Boolean): Unit
Set whether to use prepared statements capable of returning updatable ResultSets. |