Class TupleMapper<T>

java.lang.Object
io.vertx.mutiny.sqlclient.templates.TupleMapper<T>
All Implemented Interfaces:
MutinyDelegate

public class TupleMapper<T> extends Object implements MutinyDelegate
Map an arbitrary T object to a Tuple.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • TupleMapper
  • Field Details

  • Constructor Details

    • TupleMapper

      public TupleMapper(io.vertx.sqlclient.templates.TupleMapper<T> delegate)
      Create a new instance of TupleMapper delegating to the given (non-null) instance of TupleMapper.
    • TupleMapper

      public TupleMapper(io.vertx.sqlclient.templates.TupleMapper<T> delegate, TypeArg<T> typeArg_0)
    • TupleMapper

      public TupleMapper(Object delegate, TypeArg<T> typeArg_0)
  • Method Details

    • getDelegate

      public io.vertx.sqlclient.templates.TupleMapper<T> getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • 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<io.vertx.core.json.JsonObject> jsonObject()
      Map a JsonObject to a Tuple.
    • 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 name
      size - the tuple size
      params - the parameters object
      Returns:
      the tuple
    • newInstance

      public static <T> TupleMapper<T> newInstance(io.vertx.sqlclient.templates.TupleMapper<T> delegate)
      Creates a new instance of the TupleMapper.
    • newInstance

      public static <T> TupleMapper<T> newInstance(io.vertx.sqlclient.templates.TupleMapper<T> delegate, TypeArg<T> typeArg_0)
      Creates a new instance of the TupleMapper.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object