All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.virtdata.api.ValuesBinder Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package io.virtdata.api;

import io.virtdata.core.Bindings;

/**
 * 

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
  • *
* * @param The template type * @param The result type */ public interface ValuesBinder { /** * Using context instance of type S, AKA the template, create and bind values to * target object of type R * @param context A context object that knows how to provide an instance of type R * @param bindings A Bindings instance from which to draw the values * @param cycle The cycle for which to generate the values * @return The new result instance of R */ R bindValues(T context, Bindings bindings, long cycle); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy