Interface DatabaseMapping.Binder<T>

  • Type Parameters:
    T - the record type for this Binder
    Enclosing interface:
    DatabaseMapping<T>
    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 static interface DatabaseMapping.Binder<T>
    A Binder that can bind a record to a PreparedStatement object
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void bind​(T record, java.sql.PreparedStatement stmt)
      Binds the record provided to the PreparedStatement
    • Method Detail

      • bind

        void bind​(T record,
                  java.sql.PreparedStatement stmt)
           throws java.sql.SQLException
        Binds the record provided to the PreparedStatement
        Parameters:
        record - the record to bind to statement
        stmt - the statement to bind to
        Throws:
        java.sql.SQLException - if fails to bind record