Package com.pyranid

Interface PreparedStatementBinder

All Known Implementing Classes:
DefaultPreparedStatementBinder
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.
Since:
1.0.0
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    bind(StatementContext<T> statementContext, PreparedStatement preparedStatement, List<Object> parameters)
    Binds parameters to a SQL prepared statement.
  • Method Details

    • bind

      <T> void bind(@Nonnull StatementContext<T> statementContext, @Nonnull PreparedStatement preparedStatement, @Nonnull List<Object> parameters)
      Binds parameters to a SQL prepared statement.
      Parameters:
      statementContext - current SQL context
      preparedStatement - the prepared statement to bind to
      parameters - the parameters to bind to the PreparedStatement, if any
      Throws:
      DatabaseException - if an error occurs during binding