Class IntervalConverter

java.lang.Object
io.github.zero88.jooqx.spi.pg.datatype.IntervalConverter
All Implemented Interfaces:
BridgeConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>, ConverterRepr<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>, JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>, Serializable, org.jooq.ContextConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>, org.jooq.Converter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>

public final class IntervalConverter extends Object implements JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
The Interval data type converter that converts between Vert.x treats as Interval and jOOQ treats as YearToSecond
Since:
1.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jooq.types.YearToSecond
    from(io.vertx.pgclient.data.Interval vertxObject)
    Convert the Vert.x object to jOOQ object
    @NotNull Class<io.vertx.pgclient.data.Interval>
     
    io.vertx.pgclient.data.Interval
    to(org.jooq.types.YearToSecond jooqObject)
    Convert the jOOQ object to Vert.x object
    @NotNull Class<org.jooq.types.YearToSecond>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.zero88.jooqx.datatype.BridgeConverter

    from, to

    Methods inherited from interface org.jooq.ContextConverter

    andThen, forArrays

    Methods inherited from interface io.github.zero88.jooqx.datatype.ConverterRepr

    repr

    Methods inherited from interface io.github.zero88.jooqx.datatype.JooqxConverter

    inverse
  • Constructor Details

    • IntervalConverter

      public IntervalConverter()
  • Method Details

    • from

      public org.jooq.types.YearToSecond from(io.vertx.pgclient.data.Interval vertxObject)
      Description copied from interface: JooqxConverter
      Convert the Vert.x object to jOOQ object
      Specified by:
      from in interface BridgeConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      from in interface org.jooq.ContextConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      from in interface org.jooq.Converter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      from in interface JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Parameters:
      vertxObject - the vert.x object
      Returns:
      the user object
    • to

      public io.vertx.pgclient.data.Interval to(org.jooq.types.YearToSecond jooqObject)
      Description copied from interface: JooqxConverter
      Convert the jOOQ object to Vert.x object
      Specified by:
      to in interface BridgeConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      to in interface org.jooq.ContextConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      to in interface org.jooq.Converter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      to in interface JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Parameters:
      jooqObject - the jOOQ object
      Returns:
      the Vert.x object
    • fromType

      @NotNull public @NotNull Class<io.vertx.pgclient.data.Interval> fromType()
      Specified by:
      fromType in interface org.jooq.Converter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      fromType in interface JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Returns:
      the Vert.x data type
    • toType

      @NotNull public @NotNull Class<org.jooq.types.YearToSecond> toType()
      Specified by:
      toType in interface org.jooq.Converter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Specified by:
      toType in interface JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond>
      Returns:
      the jOOQ data type