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 TypeMethodDescriptionChain a converter to this converter.Binding.converter()
A converter that can convert between the database type and the custom type.Converter.forArrays()
Turn this converter into a converter for arrays.static <T, U> Converter<T[],U[]>
static <T, U> @NotNull Converter<T,U>
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.DataType.getConverter()
Get the converter associated with this data type.Typed.getConverter()
The object's underlyingConverter
.static <T> @NotNull Converter<T,T>
Create an identity converter.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>
Converters.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 Converter<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 Converter<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 Converter<T,U>
Chain two converters.static <T, U> @NotNull Converter<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 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.<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>
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 TypeMethodDescriptionChain 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> BindingGetResultSetContext<T>
Create a new context from this one using a converter.<T> BindingGetSQLInputContext<T>
Create a new context from this one using a converter.<T> BindingGetStatementContext<T>
Create a new context from this one using a converter.<T> BindingRegisterContext<T>
Create a new context from this one using a converter.<T> BindingSetSQLOutputContext<T>
Create a new context from this one using a converter.<T> BindingSetStatementContext<T>
Create a new context from this one using a converter.<T> BindingSQLContext<T>
Create a new context from this one using a converter.<U> @NotNull Field<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.<T, U> @NotNull List<U>
Execute the query and return all values for a field from the generated result.<U> @NotNull List<U>
Execute the query and return all values for a field name from the generated result.<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.<T, U> U
Execute the query and return at most one resulting value for a field from the generated result.<U> U
Execute the query and return at most one resulting value for a field name from the generated result.<U> @NotNull U[]
ResultQuery.fetchArray(int fieldIndex, Converter<?,? extends U> converter)
Execute the query and return all values for a field index from the generated result.<U> @NotNull U[]
ResultQuery.fetchArray(String fieldName, Converter<?,? extends U> converter)
Execute the query and return all values for a field name from the generated result.<T, U> @NotNull U[]
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.<U> @NotNull U[]
ResultQuery.fetchArray(Name fieldName, Converter<?,? extends U> converter)
Execute the query and return all values for a field name from the generated result.<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.<T, U> U
Execute the query and return at most one resulting value for a field from the generated result.<U> U
Execute the query and return at most one resulting value for a field name from the generated result.<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.<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.<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.<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.<T, U> @NotNull Set<U>
Execute the query and return all values for a field from the generated result.<U> @NotNull Set<U>
Execute the query and return all values for a field name from the generated result.<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.<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.<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.static <T, U> Converter<T[],U[]>
<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.<T, U> U
Get a converted value from this Record, providing a field.<U> U
Get a converted value from this Record, providing a field name.<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.<T, U> U
Get a converted value from this Record, providing a field.<U> U
Get a converted value from this Record, providing a field name.<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> @NotNull U[]
Return all values for a field index from the result.<U> @NotNull U[]
Return all values for a field name from the result.<T, U> @NotNull U[]
Return all values for a field from the result.<U> @NotNull U[]
Return all values for a field name from the result.<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.<T, U> @NotNull Set<U>
Return all values for a field from the result.<U> @NotNull Set<U>
Return all values for a field name from the result.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 Converter<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 Converter<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 Converter<T,U>
Chain two converters.static <T, U> @NotNull Converter<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.<T, U> void
Set a value into this record.<T, U> void
Set a value into this record.<T, U> R
<T, U> R
<T, U> @NotNull Record
Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.<T, U> @NotNull Record17<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>
Set a value into this record.<T, U> @NotNull Record18<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>
Set a value into this record.<T, U> @NotNull Record19<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>
Set a value into this record.Set a value into this record.<T, U> @NotNull Record20<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>
Set a value into this record.<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.<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.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record.Set a value into this record. -
Uses of Converter in org.jooq.impl
Modifier and TypeClassDescriptionclass
AbstractConverter<T,U>
class
Deprecated.- 3.15.0 - [#11505] - UseofNullable(Class, Class, java.util.function.Function, java.util.function.Function)
instead, e.g.class
DelegatingConverter<T,U>
class
EnumConverter<T,U extends Enum<U>>
A base class for enum conversion.class
class
JPAConverter<T,U>
A converter that delegates data type conversions to a JPAAttributeConverter
.class
Deprecated.- 3.15.0 - [#11505] - UseofNullable(Class, Class, java.util.function.Function, java.util.function.Function)
instead, e.g.class
Deprecated.- 3.15.0 - [#11505] - UseofNullable(Class, Class, java.util.function.Function, java.util.function.Function)
instead, e.g.Modifier and TypeMethodDescriptionAbstractXMLasObjectBinding.converter()
Converter<byte[],byte[]>
BlobBinding.converter()
ClobBinding.converter()
DateAsTimestampBinding.converter()
DefaultBinding.converter()
LocalDateAsLocalDateTimeBinding.converter()
NClobBinding.converter()
XMLasDOMBinding.converter()
<T, U> @Nullable Converter<T,U>
Modifier and TypeMethodDescriptionstatic <T, U> Binding<T,U>
Get the internal default binding for aConverter
.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 <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 <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 <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 <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 <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 <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.<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 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.DelegatingConverter(Converter<T,U> delegate)
-
Uses of Converter in org.jooq.tools
Modifier and TypeMethodDescriptionstatic <U> U
Deprecated, for removal: This API element is subject to removal in a future version.Convert an object to a type.static <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 <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