Interface ParamConverter<T>

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

This converts a domain object to an array of types supported by the database when inserting rows.
  • Method Summary

    Modifier and Type
    Method
    Description
    Identity parameter convert that returns object arrays unchanged.
    map(T row)
    Converts a domain object to a row that can be inserted into the database.
  • Method Details

    • map

      Object[] map(T row)
      Converts a domain object to a row that can be inserted into the database.
      Parameters:
      row - domain object to convert
      Returns:
      converted row
    • identity

      Identity parameter convert that returns object arrays unchanged.
      Returns:
      a new identity parameter converter