Uses of Interface
org.jooq.Converter
Package
Description
This package contains jOOQ's public API.
This package contains jOOQ's implementation classes.
This package contains jOOQ's public utilities.
-
Uses of Converter in org.jooq
Modifier and TypeInterfaceDescriptioninterface
ContextConverter<T,
U> A special type ofConverter
with alternativeContextConverter.from(Object, ConverterContext)
andContextConverter.to(Object, ConverterContext)
methods.Modifier and TypeMethodDescriptionChain a converter to this converter.Binding.converter()
A converter that can convert between the database type and the custom type.static <T,
U> Converter<T, U> Converters.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> Converters.forArrayComponents
(Converter<T[], U[]> converter) Create a converter that can convert component types based on the argument converter, which converts array types.Converter.forArrays()
Turn this converter into a converter for arrays.static <T,
U> Converter<T[], U[]> Create a converter that can convert arrays with the component types being the argument converter's types.static <T,
U> @NotNull Converter<T, U> Construct a new read-only converter from a function.static <T,
U> @NotNull Converter<T, U> ContextConverter.fromNullable
(Class<T> fromType, Class<U> toType, BiFunction<? super T, ? super ConverterContext, ? extends U> from) Construct a new read-only converter from a function.static <T,
U> @NotNull Converter<T, U> Converter.fromNullable
(Class<T> fromType, Class<U> toType, Function<? super T, ? extends U> from) Construct a new read-only converter from a function.Converter.inverse()
Inverse this converter.static <T,
U> Converter<U, T> Inverse a converter.static <T,
U> @NotNull Converter<T, U> Converter.of
(Class<T> fromType, Class<U> toType, Function<? super T, ? extends U> from, Function<? super U, ? extends T> to) Construct a new converter from functions.static <T,
U> @NotNull Converter<T, U> Converter.of
(Class<T> fromType, Class<U> toType, Function<? super T, ? extends U> from, Function<? super U, ? extends T> to, boolean fromSupported, boolean toSupported) Construct a new converter from functions.static <T,
U> @NotNull Converter<T, U> Converter.ofNullable
(Class<T> fromType, Class<U> toType, Function<? super T, ? extends U> from, Function<? super U, ? extends T> to) Construct a new converter from functions.static <T,
U> @NotNull Converter<T, U> Converter.ofNullable
(Class<T> fromType, Class<U> toType, Function<? super T, ? extends U> from, Function<? super U, ? extends T> to, boolean fromSupported, boolean toSupported) Construct a new converter from functions.<T,
U> @Nullable Converter<T, U> Provide a converter that can convert between<T>
and<U>
types.static <T,
U> @NotNull Converter<T, U> Construct a new write-only converter from a function.static <T,
U> @NotNull Converter<T, U> ContextConverter.toNullable
(Class<T> fromType, Class<U> toType, BiFunction<? super U, ? super ConverterContext, ? extends T> to) Construct a new write-only converter from a function.static <T,
U> @NotNull Converter<T, U> Converter.toNullable
(Class<T> fromType, Class<U> toType, Function<? super U, ? extends T> to) Construct a new write-only converter from a function.Modifier and TypeMethodDescriptiondefault <X> @NotNull ContextConverter<T,
X> Chain a converter to this converter.Chain a converter to this converter.<U> @NotNull DataType<U>
DataType.asConvertedDataType
(Converter<? super T, U> converter) Retrieve the data type for a given converter.<T> @NotNull BindingGetResultSetContext<T>
Create a new context from this one using a converter.<T> @NotNull BindingGetSQLInputContext<T>
Create a new context from this one using a converter.<T> @NotNull BindingGetStatementContext<T>
Create a new context from this one using a converter.<T> @NotNull BindingRegisterContext<T>
Create a new context from this one using a converter.<T> @NotNull BindingSetSQLOutputContext<T>
Create a new context from this one using a converter.<T> @NotNull BindingSetStatementContext<T>
Create a new context from this one using a converter.<T> @NotNull BindingSQLContext<T>
Create a new context from this one using a converter.<U> @NotNull Field<U>
<U> @NotNull SelectField<U>
Apply an ad-hoc data typeConverter
to this field expression.<U> @NotNull List<U>
Execute the query and return all values for a field index from the generated result.<U> @NotNull List<U>
Execute the query and return all values for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> @NotNull List<U> Execute the query and return all values for a field from the generated result, usingFields.field(Field)
for lookup.<U> @NotNull List<U>
Execute the query and return all values for a field name from the generated result, usingFields.field(Name)
for lookup.<U> U
Execute the query and return at most one resulting value for a field index from the generated result.<U> U
Execute the query and return at most one resulting value for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> U Execute the query and return at most one resulting value for a field from the generated result, usingFields.field(Field)
for lookup.<U> U
Execute the query and return at most one resulting value for a field name from the generated result, usingFields.field(Name)
for lookup.<U> U @NotNull []
ResultQuery.fetchArray
(int fieldIndex, Converter<?, ? extends U> converter) Execute the query and return all values for a field index from the generated result.<U> U @NotNull []
ResultQuery.fetchArray
(String fieldName, Converter<?, ? extends U> converter) Execute the query and return all values for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> U @NotNull [] ResultQuery.fetchArray
(Field<T> field, Converter<? super T, ? extends U> converter) Execute the query and return all values for a field from the generated result, usingFields.field(Field)
for lookup.<U> U @NotNull []
ResultQuery.fetchArray
(Name fieldName, Converter<?, ? extends U> converter) Execute the query and return all values for a field name from the generated result, usingFields.field(Name)
for lookup.<U> U
Execute the query and return at most one resulting value for a field index from the generated result.<U> U
Execute the query and return at most one resulting value for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> U Execute the query and return at most one resulting value for a field from the generated result, usingFields.field(Field)
for lookup.<U> U
Execute the query and return at most one resulting value for a field name from the generated result, usingFields.field(Name)
for lookup.<U> @NotNull Optional<U>
ResultQuery.fetchOptional
(int fieldIndex, Converter<?, ? extends U> converter) Execute the query and return at most one resulting value for a field index from the generated result.<U> @NotNull Optional<U>
ResultQuery.fetchOptional
(String fieldName, Converter<?, ? extends U> converter) Execute the query and return at most one resulting value for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> @NotNull Optional<U> ResultQuery.fetchOptional
(Field<T> field, Converter<? super T, ? extends U> converter) Execute the query and return at most one resulting value for a field from the generated result, usingFields.field(Field)
for lookup.<U> @NotNull Optional<U>
ResultQuery.fetchOptional
(Name fieldName, Converter<?, ? extends U> converter) Execute the query and return at most one resulting value for a field name from the generated result, usingFields.field(Name)
for lookup.<U> @NotNull Set<U>
Execute the query and return all values for a field index from the generated result.<U> @NotNull Set<U>
Execute the query and return all values for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> @NotNull Set<U> Execute the query and return all values for a field from the generated result, usingFields.field(Field)
for lookup.<U> @NotNull Set<U>
Execute the query and return all values for a field name from the generated result, usingFields.field(Name)
for lookup.<U> U
ResultQuery.fetchSingle
(int fieldIndex, Converter<?, ? extends U> converter) Execute the query and return exactly one resulting value for a field index from the generated result.<U> U
ResultQuery.fetchSingle
(String fieldName, Converter<?, ? extends U> converter) Execute the query and return exactly one resulting value for a field name from the generated result, usingFields.field(String)
for lookup.<T,
U> U ResultQuery.fetchSingle
(Field<T> field, Converter<? super T, ? extends U> converter) Execute the query and return exactly one resulting value for a field from the generated result, usingFields.field(Field)
for lookup.<U> U
ResultQuery.fetchSingle
(Name fieldName, Converter<?, ? extends U> converter) Execute the query and return exactly one resulting value for a field name from the generated result, usingFields.field(Name)
for lookup.static <T,
U> Converter<T, U> Converters.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> Converter<T[], U[]> Create a converter that can convert arrays with the component types being the argument converter's types.<U> U
Get a converted value from this record, providing a field index.<U> U
Get a converted value from this Record, providing a field name, usingFields.field(String)
for lookup.<T,
U> U Get a converted value from this Record, providing a field, usingFields.field(Field)
for lookup.<U> U
Get a converted value from this Record, providing a field name, usingFields.field(Name)
for lookup.<U> U
Get a converted value from this record, providing a field index.<U> U
Get a converted value from this Record, providing a field name, usingFields.field(String)
for lookup.<T,
U> U Get a converted value from this Record, providing a field, usingFields.field(Field)
for lookup.<U> U
Get a converted value from this Record, providing a field name, usingFields.field(Name)
for lookup.<U> @NotNull List<U>
Convenience method to fetch all values for a given field.<U> @NotNull List<U>
Convenience method to fetch all values for a given field.<T,
U> @NotNull List<U> Convenience method to fetch all values for a given field.<U> @NotNull List<U>
Convenience method to fetch all values for a given field.<U> U @NotNull []
Return all values for a field index from the result.<U> U @NotNull []
Return all values for a field name from the result, usingFields.field(String)
for lookup.<T,
U> U @NotNull [] Return all values for a field from the result, usingFields.field(Field)
for lookup.<U> U @NotNull []
Return all values for a field name from the result, usingFields.field(Name)
for lookup.<U> @NotNull Set<U>
Return all values for a field index from the result.<U> @NotNull Set<U>
Return all values for a field name from the result, usingFields.field(String)
for lookup.<T,
U> @NotNull Set<U> Return all values for a field from the result, usingFields.field(Field)
for lookup.<U> @NotNull Set<U>
Return all values for a field name from the result, usingFields.field(Name)
for lookup.static <T,
U> Converter<U, T> Inverse a converter.static <T,
U> @NotNull Binding<T, U> Binding.of
(Converter<T, U> converter, Consumer<? super BindingSQLContext<U>> sqlContext, Consumer<? super BindingGetResultSetContext<U>> getResultSetContext, Consumer<? super BindingSetStatementContext<U>> setStatementContext) Construct a binding from functions.static <T,
U> @NotNull Binding<T, U> Binding.of
(Converter<T, U> converter, Consumer<? super BindingSQLContext<U>> sqlContext, Consumer<? super BindingGetResultSetContext<U>> getResultSetContext, Consumer<? super BindingSetStatementContext<U>> setStatementContext, Consumer<? super BindingRegisterContext<U>> registerContext, Consumer<? super BindingGetStatementContext<U>> getStatementContext) Construct a binding from functions.static <T,
U> @NotNull Binding<T, U> Binding.of
(Converter<T, U> converter, Consumer<? super BindingSQLContext<U>> sqlContext, Consumer<? super BindingGetResultSetContext<U>> getResultSetContext, Consumer<? super BindingSetStatementContext<U>> setStatementContext, Consumer<? super BindingRegisterContext<U>> registerContext, Consumer<? super BindingGetStatementContext<U>> getStatementContext, Consumer<? super BindingGetSQLInputContext<U>> getSqlInputContext, Consumer<? super BindingSetSQLOutputContext<U>> setSqlOutputContext) Construct a binding from functions.static <T,
X1, X2, X3, U>
@NotNull ContextConverter<T,U> Converters.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> Converters.of
(Converter<T, ? extends X1> c1, Converter<? super X1, ? extends X2> c2, Converter<? super X2, U> c3) 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.static <T,
U> @NotNull ContextConverter<T, U> Turn aConverter
into aContextConverter
.<T,
U> void Set a value into this record, usingFields.field(Field)
for lookup.<T,
U> void Set a value into this record, usingFields.field(Field)
for lookup.<T,
U> R <T,
U> R <T,
U> @NotNull Record Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.<T,
U> @NotNull Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> Set a value into this record, usingFields.field(Field)
for lookup.<T,
U> @NotNull Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup.Set a value into this record, usingFields.field(Field)
for lookup. -
Uses of Converter in org.jooq.impl
Modifier and TypeClassDescriptionclass
class
AbstractConverter<T,
U> class
AutoConverter<T,
U> A base class for automatic conversion usingConfiguration.converterProvider()
.final class
Deprecated.- 3.15.0 - [#11505] - UseofNullable(Class, Class, Function, Function)
instead, e.g.class
DelegatingConverter<T,
U> class
EnumConverter<T,
U extends Enum<U>> A base class for enum conversion.final class
A converter that doesn't convert anything.final class
JPAConverter<T,
U> A converter that delegates data type conversions to a JPAAttributeConverter
.final class
Deprecated.- 3.15.0 - [#11505] - UseofNullable(Class, Class, Function, Function)
instead, e.g.final class
Deprecated.- 3.15.0 - [#11505] - UseofNullable(Class, Class, Function, Function)
instead, e.g.class
A base class forXML
to JAXB POJO conversion.Modifier and TypeMethodDescriptionAbstractXMLasObjectBinding.converter()
final Converter<byte[],
byte[]> BlobBinding.converter()
ClobBinding.converter()
DateAsTimestampBinding.converter()
DefaultBinding.converter()
final Converter<LocalDateTime,
LocalDateTime> LocalDateAsLocalDateTimeBinding.converter()
NClobBinding.converter()
XMLasDOMBinding.converter()
final <T,
U> @Nullable Converter<T, U> Modifier and TypeMethodDescriptionstatic final <T,
U> Binding<T, U> Get the internal default binding for aConverter
.static final <U> U
Deprecated, for removal: This API element is subject to removal in a future version.static final <U> List<U>
Internal.convert
(Collection<?> collection, Converter<?, ? extends U> converter) Deprecated, for removal: This API element is subject to removal in a future version.static final <U> U[]
Internal.convertArray
(Object[] from, Converter<?, ? extends U> converter) Deprecated, for removal: This API element is subject to removal in a future version.static final <T,
U> @NotNull Domain<U> Internal.createDomain
(Schema schema, Name name, DataType<T> type, Converter<T, U> converter, Check<?>... checks) Factory method for domain specifications.static final <T,
X, U> @NotNull Domain<U> Internal.createDomain
(Schema schema, Name name, DataType<T> type, Converter<X, U> converter, Binding<T, X> binding, Check<?>... checks) Factory method for domain specifications.UDTImpl.createField
(String name, DataType<T> type, UDT<R> udt, String comment, Converter<T, U> converter) Deprecated.- 3.12.0 - [#8000] - UseUDTImpl.createField(Name, DataType, UDT, String, Converter)
instead.UDTImpl.createField
(String name, DataType<T> type, UDT<R> udt, String comment, Converter<X, U> converter, Binding<T, X> binding) Deprecated.- 3.12.0 - [#8000] - UseUDTImpl.createField(Name, DataType, UDT, String, Converter, Binding)
instead.UDTImpl.createField
(Name name, DataType<T> type, UDT<R> udt, String comment, Converter<T, U> converter) Subclasses may call this method to createUDTField
objects that are linked to this table.UDTImpl.createField
(Name name, DataType<T> type, UDT<R> udt, String comment, Converter<X, U> converter, Binding<T, X> binding) Subclasses may call this method to createUDTField
objects that are linked to this table.protected static final <T,
U> Parameter<U> AbstractRoutine.createParameter
(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<T, U> converter) Deprecated.- Please, re-generate your routine code.protected static final <T,
X, U> Parameter<U> AbstractRoutine.createParameter
(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<X, U> converter, Binding<T, X> binding) Deprecated.- Please, re-generate your routine code.protected static final <T,
U> Parameter<U> AbstractRoutine.createParameter
(String name, DataType<T> type, boolean isDefaulted, Converter<T, U> converter) Deprecated.- Please, re-generate your routine code.protected static final <T,
X, U> Parameter<U> AbstractRoutine.createParameter
(String name, DataType<T> type, boolean isDefaulted, Converter<X, U> converter, Binding<T, X> binding) Deprecated.- Please, re-generate your routine code.static final <T,
U> @NotNull Parameter<U> Internal.createParameter
(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<T, U> converter) Factory method for parameters.static final <T,
X, U> @NotNull Parameter<U> Internal.createParameter
(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<X, U> converter, Binding<T, X> binding) Factory method for parameters.final <T,
U> R ModifierConstructorDescriptionprotected
protected
AbstractRoutine
(String name, Schema schema, DataType<X> type, Converter<Y, T> converter, Binding<X, Y> binding) protected
AbstractRoutine
(String name, Schema schema, Package pkg, DataType<X> type, Converter<X, T> converter) protected
AbstractRoutine
(String name, Schema schema, Package pkg, DataType<X> type, Converter<Y, T> converter, Binding<X, Y> binding) protected
Create an empty array recordprotected
ArrayRecordImpl
(Schema schema, String name, DataType<X> type, Converter<Y, T> converter, Binding<X, Y> binding) Create an empty array recordprotected
ArrayRecordImpl
(Schema schema, Package pkg, String name, DataType<X> type, Converter<X, T> converter) Create an empty array recordprotected
ArrayRecordImpl
(Schema schema, Package pkg, String name, DataType<X> type, Converter<Y, T> converter, Binding<X, Y> binding) Create an empty array recordprotected
AssociativeArrayRecordImpl
(Schema schema, String name, DataType<X> type, DataType<K> indexDataType, Converter<X, V> converter) Create an empty array recordprotected
AssociativeArrayRecordImpl
(Schema schema, String name, DataType<X> type, DataType<K> indexDataType, Converter<Y, V> converter, Binding<X, Y> binding) Create an empty array recordprotected
AssociativeArrayRecordImpl
(Schema schema, Package pkg, String name, DataType<X> type, DataType<K> indexDataType, Converter<X, V> converter) Create an empty array recordprotected
AssociativeArrayRecordImpl
(Schema schema, Package pkg, String name, DataType<X> type, DataType<K> indexDataType, Converter<Y, V> converter, Binding<X, Y> binding) Create an empty array recordDefaultBinding
(Converter<T, U> converter) Deprecated, for removal: This API element is subject to removal in a future version.- 3.11 - [#6631] - UseDefaultBinding.binding(Converter)
instead. -
Uses of Converter in org.jooq.tools
Modifier and TypeMethodDescriptionstatic final <U> U
Deprecated, for removal: This API element is subject to removal in a future version.Convert an object to a type.static final <U> List<U>
Convert.convert
(Collection<?> collection, Converter<?, ? extends U> converter) Deprecated, for removal: This API element is subject to removal in a future version.Convert a collection of objects to a list ofT
, usingConvert.convert(Object, Converter)
static final <U> U[]
Convert.convertArray
(Object[] from, Converter<?, ? extends U> converter) Deprecated, for removal: This API element is subject to removal in a future version.Convert an array into another one using a converter