Package io.vertx.sqlclient.templates
Interface TupleMapper<T>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TupleMapper<T>
Map an arbitraryTobject to aTuple.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TupleMapper<JsonObject>jsonObject()Map aJsonObjectto aTuple.Tuplemap(Function<Integer,String> mapping, int size, T params)The internal mapper contract that builds a tuple.static <T> TupleMapper<T>mapper(Function<T,Map<String,Object>> fn)Create a mapper that associates a parameters object to a map of named parameters to their respective value.
-
-
-
Method Detail
-
mapper
static <T> TupleMapper<T> mapper(Function<T,Map<String,Object>> fn)
Create a mapper that associates a parameters object to a map of named parameters to their respective value.- Parameters:
fn- the function turning a parameters object into a map- Returns:
- the mapper
-
jsonObject
static TupleMapper<JsonObject> jsonObject()
Map aJsonObjectto aTuple.
-
-