java.lang.Object
org.jooq.impl.AbstractConverter<T,U>
 
org.jooq.impl.AbstractContextConverter<T,U>
 
org.jooq.Converters<T,U> 
- Type Parameters:
- T- The database type - i.e. any type available from- SQLDataType
- U- The user type
- All Implemented Interfaces:
- Serializable,- ContextConverter<T,,- U> - Converter<T,- U> 
A chain of converters.
- Author:
- Lukas Eder
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classAn unknown type that is used when users do not provide any explicit user typeClassreference e.g.
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T,U> Converter<T, U> forArrayComponents(ContextConverter<T[], U[]> converter) Create a converter that can convert component types based on the argument converter, which converts array types.static <T,U> Converter<T, U> forArrayComponents(Converter<T[], U[]> converter) Create a converter that can convert component types based on the argument converter, which converts array types.static <T,U> ContextConverter<T[], U[]> forArrays(ContextConverter<T, U> converter) Create a converter that can convert arrays with the component types being the argument converter's types.static <T,U> Converter<T[], U[]> Create a converter that can convert arrays with the component types being the argument converter's types.final Ufrom(T t, ConverterContext scope) Read and convert a database object to a user object.final booleanWhether this is a write only converter.static <T> @NotNull ContextConverter<T,T> Create an identity converter.static <T,U> ContextConverter<U, T> inverse(ContextConverter<T, U> converter) Inverse a converter.static <T,U> Converter<U, T> Inverse a converter.static <T,U> @NotNull ContextConverter<T, U> of()Deprecated, for removal: This API element is subject to removal in a future version.- [#10689] - 3.14.0 - This converter does not work.static <T,X1, X2, X3, U> 
 @NotNull ContextConverter<T,U> of(Converter<T, ? extends X1> c1, Converter<? super X1, ? extends X2> c2, Converter<? super X2, ? extends X3> c3, Converter<? super X3, U> c4) Chain four converters.static <T,X1, X2, U> 
 @NotNull ContextConverter<T,U> Chain three converters.static <T,X1, U> @NotNull ContextConverter<T, U> Chain two converters.static <T,U> @NotNull ContextConverter<T, U> Deprecated, for removal: This API element is subject to removal in a future version.- [#10689] - 3.14.0 - This method does not provide any useful functionality and will be removed in the future.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.AbstractConverterfromType, toType
- 
Method Details- 
identityCreate an identity converter.
- 
of@Deprecated(forRemoval=true, since="3.14") @NotNull public static <T,U> @NotNull ContextConverter<T,U> of()Deprecated, for removal: This API element is subject to removal in a future version.- [#10689] - 3.14.0 - This converter does not work. Do not use this method, useidentity(Class)instead.Create an identity converter.
- 
of@Deprecated(forRemoval=true, since="3.14") @NotNull public static <T,U> @NotNull ContextConverter<T,U> of(Converter<T, U> converter) Deprecated, for removal: This API element is subject to removal in a future version.- [#10689] - 3.14.0 - This method does not provide any useful functionality and will be removed in the future.Create a single converter.
- 
of@NotNull public static <T,X1, @NotNull ContextConverter<T,U> U> of(Converter<T, ? extends X1> c1, Converter<? super X1, U> c2) Chain two converters.
- 
of@NotNull public static <T,X1, @NotNull ContextConverter<T,X2, U> U> of(Converter<T, ? extends X1> c1, Converter<? super X1, ? extends X2> c2, Converter<? super X2, U> c3) Chain three converters.
- 
of@NotNull public static <T,X1, @NotNull ContextConverter<T,X2, X3, U> U> of(Converter<T, ? extends X1> c1, Converter<? super X1, ? extends X2> c2, Converter<? super X2, ? extends X3> c3, Converter<? super X3, U> c4) Chain four converters.
- 
inverseInverse a converter.
- 
inverseInverse a converter.
- 
forArraysCreate a converter that can convert arrays with the component types being the argument converter's types.
- 
forArraysCreate a converter that can convert arrays with the component types being the argument converter's types.
- 
forArrayComponentsCreate a converter that can convert component types based on the argument converter, which converts array types.
- 
forArrayComponentsCreate a converter that can convert component types based on the argument converter, which converts array types.
- 
fromDescription 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.
 
- 
toDescription 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.
 
- 
fromSupportedpublic 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).
- 
toSupportedpublic 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).
- 
toString- Overrides:
- toStringin class- AbstractContextConverter<T,- U> 
 
 
-