Interface AdapterMapping<T>

Type Parameters:
T - the type of object to be adapted
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 AdapterMapping<T>
The AdapterMapping interface represents a functional interface used to map Java objects to a specific SQL data type and perform the necessary conversions when binding the objects to a PreparedStatement.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(PreparedStatement stmt, int index, T value)
    Applies the given value to a PreparedStatement at the specified index using the provided mapping.
  • Method Details

    • apply

      void apply(PreparedStatement stmt, int index, T value) throws SQLException
      Applies the given value to a PreparedStatement at the specified index using the provided mapping.
      Parameters:
      stmt - the PreparedStatement to apply the value to
      index - the index at which to apply the value
      value - the value to be applied
      Throws:
      SQLException - if a database access error occurs