query

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

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)

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>

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

Author

Mario Arias

Since

5.0