Interface StatementBinder

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Incubating @FunctionalInterface public interface StatementBinder

Binds one row worth of values to a JDBC statement.

This is the single-statement counterpart to JdbcValueBindings.beforeStatement(...). The batch implementation prepares and owns the statement, then invokes the binder for each row just before adding that row to the JDBC batch.

A binder should not execute, close, clear, or retain the statement. It should only bind parameter values for the current row. Any SQLException raised while binding is handled by the owning batch and converted through the session's JDBC services.

Since:
8.0
See Also: