Class TupleMapper<T>
- java.lang.Object
-
- io.vertx.rxjava3.sqlclient.templates.TupleMapper<T>
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<TupleMapper>__TYPE_ARGio.vertx.lang.rx.TypeArg<T>__typeArg_0
-
Constructor Summary
Constructors Constructor Description TupleMapper(TupleMapper delegate)TupleMapper(Object delegate, io.vertx.lang.rx.TypeArg<T> typeArg_0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)TupleMappergetDelegate()inthashCode()static TupleMapper<JsonObject>jsonObject()Map a to a .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.static <T> TupleMapper<T>newInstance(TupleMapper arg)static <T> TupleMapper<T>newInstance(TupleMapper arg, io.vertx.lang.rx.TypeArg<T> __typeArg_T)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<TupleMapper> __TYPE_ARG
-
__typeArg_0
public final io.vertx.lang.rx.TypeArg<T> __typeArg_0
-
-
Constructor Detail
-
TupleMapper
public TupleMapper(TupleMapper delegate)
-
-
Method Detail
-
getDelegate
public TupleMapper getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
mapper
public 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
public static TupleMapper<JsonObject> jsonObject()
Map a to a .- Returns:
-
map
public Tuple map(Function<Integer,String> mapping, int size, T params)
The internal mapper contract that builds a tuple.- Parameters:
mapping- associates an index to template parameter namesize- the tuple sizeparams- the parameters object- Returns:
- the tuple
-
newInstance
public static <T> TupleMapper<T> newInstance(TupleMapper arg)
-
newInstance
public static <T> TupleMapper<T> newInstance(TupleMapper arg, io.vertx.lang.rx.TypeArg<T> __typeArg_T)
-
-