Interface ValuesMapBinder<T,R>

Type Parameters:
T - The template type
R - The result type

public interface ValuesMapBinder<T,R>

ValuesMapBinder provides a way to apply an map of named object values to a template object of type T to yield a new object instance of type R. The object array is a positional argument list. There is no named-argument facility.

Parameter Examples:

  • T: prepared Statement, R: bound statement
  • T: string template, R: interpolated string value
  • Method Summary

    Modifier and Type
    Method
    Description
    bindValues(T context, Map<String,Object> values)
    Using context instance of type S, AKA the template, create and bind values to target object of type R
  • Method Details

    • bindValues

      R bindValues(T context, Map<String,Object> values)
      Using context instance of type S, AKA the template, create and bind values to target object of type R
      Parameters:
      context - A context object that knows how to provide an instance of type R
      values - An array of values which should be bound to the new R instance
      Returns:
      The new result instance of R