Interface RowMapperFactory

    • Method Detail

      • build

        java.util.Optional<RowMapper<?>> build​(java.lang.reflect.Type type,
                                               ConfigRegistry config)
        Supplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.
        Parameters:
        type - the target type to map to
        config - the config registry, for composition
        Returns:
        a row mapper for the given type if this factory supports it; Optional.empty() otherwise.
        See Also:
        for composition
      • of

        static RowMapperFactory of​(java.lang.reflect.Type type,
                                   RowMapper<?> mapper)
        Create a RowMapperFactory from a given RowMapper that matches a Type exactly.
        Parameters:
        type - the type to match with equals.
        mapper - the mapper to return
        Returns:
        the factory