queryForObject

inline fun <T> JdbcOperations.queryForObject(sql: String): T

Extension for JdbcOperations.queryForObject providing a queryForObject<Foo>("...") variant.

Author

Mario Arias

Since

5.0


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

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

Author

Mario Arias

Since

5.0


inline fun <T> JdbcOperations.queryForObject(sql: String, args: Array<out Any>, argTypes: IntArray): T?

Extension for JdbcOperations.queryForObject providing a queryForObject<Foo>("...", arrayOf(arg1, argN), intArray(type1, typeN)) variant.

Author

Mario Arias

Since

5.0


inline fun <T> JdbcOperations.queryForObject(sql: String, args: Array<out Any>): T?

Extension for JdbcOperations.queryForObject providing a queryForObject<Foo>("...", arrayOf(arg1, argN)) variant.

Author

Mario Arias

Since

5.0