spring-framework
5.3.39

# query

inline fun <T> JdbcOperations.query(sql: String, vararg args: Any, crossinline function: (ResultSet) -> T): T
Content copied to clipboard

Extension for JdbcOperations.query providing a ResultSetExtractor-like function variant: `query<Foo>("...", arg1, argN){ rs -> }`.

#### Author

Mario Arias

#### Since

5.0

fun JdbcOperations.query(sql: String, vararg args: Any, function: (ResultSet) -> Unit)
Content copied to clipboard

Extension for JdbcOperations.query providing a RowCallbackHandler-like function variant: `query("...", arg1, argN){ rs -> }`.

#### Author

Mario Arias

#### Since

5.0

fun <T> JdbcOperations.query(sql: String, vararg args: Any, function: (ResultSet, Int) -> T): List<T>
Content copied to clipboard

Extensions for JdbcOperations.query providing a RowMapper-like function variant: `query("...", arg1, argN){ rs, i -> }`.

#### Author

Mario Arias

#### Since

5.0