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
-
Method Summary
Modifier and TypeMethodDescriptionorg.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>
fromType()
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>
toType()
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 interfaceBridgeConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
from
in interfaceorg.jooq.ContextConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
from
in interfaceorg.jooq.Converter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
from
in interfaceJooqxConverter<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 interfaceBridgeConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
to
in interfaceorg.jooq.ContextConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
to
in interfaceorg.jooq.Converter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
to
in interfaceJooqxConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Parameters:
jooqObject
- the jOOQ object- Returns:
- the Vert.x object
-
fromType
- Specified by:
fromType
in interfaceorg.jooq.Converter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
fromType
in interfaceJooqxConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Returns:
- the Vert.x data type
-
toType
- Specified by:
toType
in interfaceorg.jooq.Converter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Specified by:
toType
in interfaceJooqxConverter<io.vertx.pgclient.data.Interval,
org.jooq.types.YearToSecond> - Returns:
- the jOOQ data type
-