Package org.springframework.jdbc.core
Functions
query
Link copied to clipboard
Extension for JdbcOperations.query providing a ResultSetExtractor-like function variant:
query<Foo>("...", arg1, argN){ rs -> }
.Extension for JdbcOperations.query providing a RowCallbackHandler-like function variant:
query("...", arg1, argN){ rs -> }
.queryForList
Link copied to clipboard
inline fun <T> JdbcOperations.queryForList(sql: String, args: Array<out Any>): List<T>
Content copied to clipboard
Extension for JdbcOperations.queryForList providing a
queryForList<Foo>("...", arrayOf(arg1, argN))
variant.inline fun <T> JdbcOperations.queryForList(sql: String, args: Array<out Any>, argTypes: IntArray): List<T>
Content copied to clipboard
Extension for JdbcOperations.queryForList providing a
queryForList<Foo>("...", arrayOf(arg1, argN), intArray(type1, typeN))
variant.queryForObject
Link copied to clipboard
inline fun <T> JdbcOperations.queryForObject(sql: String, args: Array<out Any>): T?
Content copied to clipboard
Extension for JdbcOperations.queryForObject providing a
queryForObject<Foo>("...", arrayOf(arg1, argN))
variant.inline fun <T> JdbcOperations.queryForObject(sql: String, vararg args: Any, crossinline function: (ResultSet, Int) -> T): T
Content copied to clipboard
Extensions for JdbcOperations.queryForObject providing a RowMapper-like function variant:
queryForObject("...", arg1, argN){ rs, i -> }
.inline fun <T> JdbcOperations.queryForObject(sql: String, args: Array<out Any>, argTypes: IntArray): T?
Content copied to clipboard
Extension for JdbcOperations.queryForObject providing a
queryForObject<Foo>("...", arrayOf(arg1, argN), intArray(type1, typeN))
variant.