java.lang.Object
org.jooq.impl.AbstractConverter<T,U>
org.jooq.impl.AbstractContextConverter<T,U>
org.jooq.impl.AutoConverter<T,U>
- All Implemented Interfaces:
Serializable
,ContextConverter<T,
,U> Converter<T,
U>
A base class for automatic conversion using
Configuration.converterProvider()
.- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(T t, ConverterContext ctx) Read and convert a database object to a user object.to
(U u, ConverterContext ctx) Convert and write a user object to a database object.toString()
Methods inherited from class org.jooq.impl.AbstractConverter
fromType, toType
-
Constructor Details
-
AutoConverter
-
-
Method Details
-
from
Description copied from interface:ContextConverter
Read and convert a database object to a user object.- Parameters:
t
- The database object.ctx
- The context of this conversion.- Returns:
- The user object.
-
to
Description copied from interface:ContextConverter
Convert and write a user object to a database object.- Parameters:
u
- The user object.ctx
- The context of this conversion.- Returns:
- The database object.
-
toString
- Overrides:
toString
in classAbstractContextConverter<T,
U>
-