Class DurationConverter

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

public final class DurationConverter extends Object implements DataTypeMapper<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond,Duration>
See Also:
  • Constructor Details

    • DurationConverter

      public DurationConverter()
  • Method Details

    • jooqxConverter

      public JooqxConverter<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond> jooqxConverter()
      Description copied from interface: DataTypeMapper
      Defines jooqx converter between Vert.x data type as database data type and jOOQ data type as intermediate type is used in record
      Specified by:
      jooqxConverter in interface DataTypeMapper<io.vertx.pgclient.data.Interval,org.jooq.types.YearToSecond,Duration>
      Returns:
      jooqx converter
      See Also:
    • from

      public Duration from(org.jooq.types.YearToSecond databaseObject)
      Specified by:
      from in interface BridgeConverter<org.jooq.types.YearToSecond,Duration>
      Specified by:
      from in interface org.jooq.ContextConverter<org.jooq.types.YearToSecond,Duration>
      Specified by:
      from in interface org.jooq.Converter<org.jooq.types.YearToSecond,Duration>
    • to

      public org.jooq.types.YearToSecond to(Duration userObject)
      Specified by:
      to in interface BridgeConverter<org.jooq.types.YearToSecond,Duration>
      Specified by:
      to in interface org.jooq.ContextConverter<org.jooq.types.YearToSecond,Duration>
      Specified by:
      to in interface org.jooq.Converter<org.jooq.types.YearToSecond,Duration>
    • fromType

      @NotNull public @NotNull Class<org.jooq.types.YearToSecond> fromType()
      Specified by:
      fromType in interface org.jooq.Converter<org.jooq.types.YearToSecond,Duration>
    • toType

      @NotNull public @NotNull Class<Duration> toType()
      Specified by:
      toType in interface org.jooq.Converter<org.jooq.types.YearToSecond,Duration>