Interface SaveBinder

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

    @FunctionalInterface
    public interface SaveBinder
    A parameter binder for INSERT, UPDATE and DELETE prepared statements
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void bind​(java.sql.PreparedStatement stmt, int index, java.lang.Object value)
      Bind a parameter to the prepared statement
    • Method Detail

      • bind

        void bind​(java.sql.PreparedStatement stmt,
                  int index,
                  java.lang.Object value)
           throws java.sql.SQLException
        Bind a parameter to the prepared statement
        Parameters:
        stmt - prepared statement
        index - parameter index (1-based)
        value - parameter value
        Throws:
        java.sql.SQLException - when anything goes wrong