db9010 / com.jovial.db9010 / SelectQuery / setFromLambda

setFromLambda

fun <T> setFromLambda(p: Parameter<in T>, setter: (Int, PreparedStatement) -> Unit): Unit

Set the given parameter p, using a code block that operates on a JDBC PreparedStatement using the provided value index.

fun <T> setFromLambda(c: TableColumn<in T>, body: (ResultSet, Int) -> Unit): Unit

Update the column c with a new value, using a code body that takes a ResultSet and a column index. The update is written to the database with update. The query must have been marked as FOR UPDATE with Builder.forUpdate