Interface PreparedStatementBinder

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

Contract for binding parameters to SQL prepared statements.

A production-ready concrete implementation is available via the following static methods:

How to acquire an instance:
 // With out-of-the-box defaults
PreparedStatementBinder default = PreparedStatementBinder.withDefaultConfiguration();

// Customized
PreparedStatementBinder custom = PreparedStatementBinder.withCustomParameterBinders(List.of(...));
Or, implement your own:
 PreparedStatementBinder myImpl = new PreparedStatementBinder() {
  @Override
  <T> void bindParameter(
    @NonNull StatementContext<T> statementContext,
    @NonNull PreparedStatement preparedStatement,
    @NonNull Integer parameterIndex,
    @NonNull Object parameter
  ) throws SQLException {
    // Bind the parameter at the specified index to the PreparedStatement
  }
};
Since:
1.0.0
Author:
Mark Allen