Interface ValuesBinder<T,​R>

Type Parameters:
T - The template type
R - The result type
All Known Implementing Classes:
StringCompositor

public interface ValuesBinder<T,​R>

ValuesBinder 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. Get the values you need from the bindings in any appropriate way and apply them to your template object.

Parameter Examples:

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

    Modifier and Type Method Description
    R bindValues​(T context, Bindings bindings, long cycle)
    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, Bindings bindings, long cycle)
      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
      bindings - A Bindings instance from which to draw the values
      cycle - The cycle for which to generate the values
      Returns:
      The new result instance of R