java.lang.Object
org.jooq.impl.AbstractConverter<T,U>
org.jooq.impl.AbstractContextConverter<T,U>
org.jooq.impl.DelegatingConverter<T,U>
- All Implemented Interfaces:
Serializable,ContextConverter<T,,U> Converter<T,U>
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal URead and convert a database object to a user object.final Ufrom(T t, ConverterContext scope) Read and convert a database object to a user object.final booleanWhether this is a write only converter.final TConvert and write a user object to a database object.final Tto(U u, ConverterContext scope) Convert and write a user object to a database object.toString()final booleanWhether this is a read only converter.Methods inherited from class org.jooq.impl.AbstractConverter
fromType, toTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jooq.ContextConverter
andThen, forArrays, inverse
-
Constructor Details
-
DelegatingConverter
-
-
Method Details
-
fromSupported
public final boolean fromSupported()Description copied from interface:ConverterWhether this is a write only converter.A write only converter implements only
Converter.to(Object)but notConverter.from(Object). -
toSupported
public final boolean toSupported()Description copied from interface:ConverterWhether this is a read only converter.A read only converter implements only
Converter.from(Object)but notConverter.to(Object). -
from
Description copied from interface:ContextConverterRead and convert a database object to a user object.Implementations that don't support this conversion are expected to override
Converter.fromSupported()to indicate lack of support.- Parameters:
t- The database object.scope- The context of this conversion.- Returns:
- The user object.
-
from
Description copied from interface:ConverterRead and convert a database object to a user object.Implementations that don't support this conversion are expected to override
Converter.fromSupported()to indicate lack of support.- Parameters:
t- The database object.- Returns:
- The user object.
-
to
Description copied from interface:ContextConverterConvert and write a user object to a database object.Implementations that don't support this conversion are expected to override
Converter.toSupported()to indicate lack of support.- Parameters:
u- The user object.scope- The context of this conversion.- Returns:
- The database object.
-
to
Description copied from interface:ConverterConvert and write a user object to a database object.Implementations that don't support this conversion are expected to override
Converter.toSupported()to indicate lack of support.- Parameters:
u- The user object.- Returns:
- The database object.
-
toString
- Overrides:
toStringin classAbstractContextConverter<T,U>
-