Package | Description |
---|---|
org.jooq |
The
org.jooq package contains jOOQ's public API. |
org.jooq.impl |
The
org.jooq.impl package contains jOOQ's implementation classes. |
org.jooq.tools |
The
org.jooq.tools package contains jOOQ's public utilities. |
Modifier and Type | Class and Description |
---|---|
class |
Converters<T,U>
A chain of converters.
|
Modifier and Type | Method and Description |
---|---|
default <X> Converter<T,X> |
Converter.andThen(Converter<? super U,X> converter)
Chain a converter to this converter.
|
Converter<T,U> |
Binding.converter()
A converter that can convert between the database type and the custom
type.
|
Converter<?,T> |
SelectField.getConverter()
The field's underlying
Converter . |
Converter<?,T> |
Parameter.getConverter()
The parameter's underlying
Converter . |
Converter<?,T> |
Field.getConverter()
The field's underlying
Converter . |
Converter<?,T> |
DataType.getConverter()
Get the converter associated with this data type.
|
static <T> Converter<T,T> |
Converters.identity(Class<T> type)
Create an identity converter.
|
default Converter<U,T> |
Converter.inverse()
Inverse this converter.
|
static <T,U> Converter<U,T> |
Converters.inverse(Converter<T,U> converter)
Inverse a converter.
|
static <T,U> Converter<T,U> |
Converters.of()
Create an identity converter.
|
static <T,U> 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,X1,X2,X3,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> |
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> Converter<T,U> |
Converters.of(Converter<T,? extends X1> c1,
Converter<? super X1,U> c2)
Chain two converters.
|
static <T,U> Converter<T,U> |
Converters.of(Converter<T,U> converter)
Create a single converter.
|
static <T,U> 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> Converter<T,U> |
ConverterProvider.provide(Class<T> tType,
Class<U> uType)
Deprecated.
Provide a converter that can convert between
<T> and
<U> types. |
Modifier and Type | Method and Description |
---|---|
default <X> Converter<T,X> |
Converter.andThen(Converter<? super U,X> converter)
Chain a converter to this converter.
|
<U> DataType<U> |
DataType.asConvertedDataType(Converter<? super T,U> converter)
Retrieve the data type for a given converter.
|
<T> BindingSQLContext<T> |
BindingSQLContext.convert(Converter<? extends T,? super U> converter)
Create a new context from this one using a converter.
|
<T> BindingSetStatementContext<T> |
BindingSetStatementContext.convert(Converter<? extends T,? super U> converter)
Create a new context from this one using a converter.
|
<T> BindingSetSQLOutputContext<T> |
BindingSetSQLOutputContext.convert(Converter<? extends T,? super U> converter)
Create a new context from this one using a converter.
|
<T> BindingRegisterContext<T> |
BindingRegisterContext.convert(Converter<? super T,? extends U> converter)
Create a new context from this one using a converter.
|
<T> BindingGetStatementContext<T> |
BindingGetStatementContext.convert(Converter<? super T,? extends U> converter)
Create a new context from this one using a converter.
|
<T> BindingGetSQLInputContext<T> |
BindingGetSQLInputContext.convert(Converter<? super T,? extends U> converter)
Create a new context from this one using a converter.
|
<T> BindingGetResultSetContext<T> |
BindingGetResultSetContext.convert(Converter<? super T,? extends U> converter)
Create a new context from this one using a converter.
|
<T,U> List<U> |
ResultQuery.fetch(Field<T> field,
Converter<? super T,? extends U> converter)
Execute the query and return all values for a field from the generated
result.
|
<U> List<U> |
ResultQuery.fetch(int fieldIndex,
Converter<?,? extends U> converter)
Execute the query and return all values for a field index from the
generated result.
|
<U> List<U> |
ResultQuery.fetch(Name fieldName,
Converter<?,? extends U> converter)
Execute the query and return all values for a field name from the
generated result.
|
<U> List<U> |
ResultQuery.fetch(String fieldName,
Converter<?,? extends U> converter)
Execute the query and return all values for a field name from the
generated result.
|
<T,U> U |
ResultQuery.fetchAny(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> U |
ResultQuery.fetchAny(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> U |
ResultQuery.fetchAny(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> U |
ResultQuery.fetchAny(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> 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> 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> 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[] |
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> U |
ResultQuery.fetchOne(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> U |
ResultQuery.fetchOne(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> U |
ResultQuery.fetchOne(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> U |
ResultQuery.fetchOne(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> 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> 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> 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> 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> Set<U> |
ResultQuery.fetchSet(Field<T> field,
Converter<? super T,? extends U> converter)
Execute the query and return all values for a field from the generated
result.
|
<U> Set<U> |
ResultQuery.fetchSet(int fieldIndex,
Converter<?,? extends U> converter)
Execute the query and return all values for a field index from the
generated result.
|
<U> Set<U> |
ResultQuery.fetchSet(Name fieldName,
Converter<?,? extends U> converter)
Execute the query and return all values for a field name from the
generated result.
|
<U> Set<U> |
ResultQuery.fetchSet(String fieldName,
Converter<?,? extends U> converter)
Execute the query and return all values 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(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(Name fieldName,
Converter<?,? extends U> converter)
Execute the query and return exactly one resulting value for a
field name 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 |
Record.get(Field<T> field,
Converter<? super T,? extends U> converter)
Get a converted value from this Record, providing a field.
|
<U> U |
Record.get(int index,
Converter<?,? extends U> converter)
Get a converted value from this record, providing a field index.
|
<U> U |
Record.get(Name fieldName,
Converter<?,? extends U> converter)
Get a converted value from this Record, providing a field name.
|
<U> U |
Record.get(String fieldName,
Converter<?,? extends U> converter)
Get a converted value from this Record, providing a field name.
|
<T,U> U |
Record.getValue(Field<T> field,
Converter<? super T,? extends U> converter)
Get a converted value from this Record, providing a field.
|
<T,U> U |
Record.getValue(Field<T> field,
Converter<? super T,? extends U> converter,
U defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
<U> U |
Record.getValue(int index,
Converter<?,? extends U> converter)
Get a converted value from this record, providing a field index.
|
<U> U |
Record.getValue(int index,
Converter<?,? extends U> converter,
U defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
<U> U |
Record.getValue(Name fieldName,
Converter<?,? extends U> converter)
Get a converted value from this Record, providing a field name.
|
<U> U |
Record.getValue(String fieldName,
Converter<?,? extends U> converter)
Get a converted value from this Record, providing a field name.
|
<U> U |
Record.getValue(String fieldName,
Converter<?,? extends U> converter,
U defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
<T,U> List<U> |
Result.getValues(Field<T> field,
Converter<? super T,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<U> List<U> |
Result.getValues(int fieldIndex,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<U> List<U> |
Result.getValues(Name fieldName,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<U> List<U> |
Result.getValues(String fieldName,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<T,U> U[] |
Result.intoArray(Field<T> field,
Converter<? super T,? extends U> converter)
Return all values for a field from the result.
|
<U> U[] |
Result.intoArray(int fieldIndex,
Converter<?,? extends U> converter)
Return all values for a field index from the result.
|
<U> U[] |
Result.intoArray(Name fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
<U> U[] |
Result.intoArray(String fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
<T,U> Set<U> |
Result.intoSet(Field<T> field,
Converter<? super T,? extends U> converter)
Return all values for a field from the result.
|
<U> Set<U> |
Result.intoSet(int fieldIndex,
Converter<?,? extends U> converter)
Return all values for a field index from the result.
|
<U> Set<U> |
Result.intoSet(Name fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
<U> Set<U> |
Result.intoSet(String fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
static <T,U> Converter<U,T> |
Converters.inverse(Converter<T,U> converter)
Inverse a converter.
|
static <T,X1,X2,X3,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,X3,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,X3,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,X3,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> |
Converters.of(Converter<T,? extends X1> c1,
Converter<? super X1,? extends X2> c2,
Converter<? super X2,U> c3)
Chain three converters.
|
static <T,X1,X2,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,X2,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> Converter<T,U> |
Converters.of(Converter<T,? extends X1> c1,
Converter<? super X1,U> c2)
Chain two converters.
|
static <T,X1,U> Converter<T,U> |
Converters.of(Converter<T,? extends X1> c1,
Converter<? super X1,U> c2)
Chain two converters.
|
static <T,U> Converter<T,U> |
Converters.of(Converter<T,U> converter)
Create a single converter.
|
static <T,U> 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> 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> 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.
|
<T,U> void |
Record.set(Field<T> field,
U value,
Converter<? extends T,? super U> converter)
Set a value into this record.
|
<T,U> void |
Record.setValue(Field<T> field,
U value,
Converter<? extends T,? super U> converter)
Set a value into this record.
|
<T,U> R |
UDTRecord.with(Field<T> field,
U value,
Converter<? extends T,? super U> converter)
Set a value into this record.
|
<T,U> R |
TableRecord.with(Field<T> field,
U value,
Converter<? extends T,? super U> converter)
Set a value into this record.
|
<T,U> Record |
Record.with(Field<T> field,
U value,
Converter<? extends T,? super U> converter)
Set a value into this record.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractConverter<T,U> |
class |
DateToLocalDateConverter |
class |
DelegatingConverter<T,U> |
class |
EnumConverter<T,U extends Enum<U>>
A base class for enum conversion.
|
class |
JPAConverter<T,U>
A converter that delegates data type conversions to a JPA
AttributeConverter . |
class |
TimestampToLocalDateTimeConverter |
class |
TimeToLocalTimeConverter |
Modifier and Type | Method and Description |
---|---|
Converter<Object,Node> |
XMLasDOMBinding.converter() |
Converter<T,U> |
DefaultBinding.converter() |
Converter<Timestamp,Timestamp> |
DateAsTimestampBinding.converter() |
Converter<String,String> |
ClobBinding.converter() |
Converter<byte[],byte[]> |
BlobBinding.converter() |
Converter<Object,T> |
AbstractXMLasObjectBinding.converter() |
Converter<?,T> |
DefaultDataType.getConverter() |
<T,U> Converter<T,U> |
DefaultConverterProvider.provide(Class<T> tType,
Class<U> uType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<U> DataType<U> |
DefaultDataType.asConvertedDataType(Converter<? super T,U> converter) |
static <T,U> Binding<T,U> |
DefaultBinding.binding(Converter<T,U> converter) |
protected static <R extends UDTRecord<R>,T,U> |
UDTImpl.createField(String name,
DataType<T> type,
UDT<R> udt,
String comment,
Converter<T,U> converter)
Subclasses may call this method to create
UDTField objects that
are linked to this table. |
protected static <R extends UDTRecord<R>,T,X,U> |
UDTImpl.createField(String name,
DataType<T> type,
UDT<R> udt,
String comment,
Converter<X,U> converter,
Binding<T,X> binding)
Subclasses may call this method to create
UDTField objects that
are linked to this table. |
static <T,U> Parameter<U> |
Internal.createParameter(String name,
DataType<T> type,
boolean isDefaulted,
boolean isUnnamed,
Converter<T,U> converter)
Factory method for parameters.
|
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.
|
static <T,X,U> 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.
|
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.
|
<T,U> R |
UDTRecordImpl.with(Field<T> field,
U value,
Converter<? extends T,? super U> converter) |
<T,U> R |
TableRecordImpl.with(Field<T> field,
U value,
Converter<? extends T,? super U> converter) |
Constructor and Description |
---|
AbstractRoutine(String name,
Schema schema,
DataType<X> type,
Converter<X,T> converter) |
AbstractRoutine(String name,
Schema schema,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding) |
AbstractRoutine(String name,
Schema schema,
Package pkg,
DataType<X> type,
Converter<X,T> converter) |
AbstractRoutine(String name,
Schema schema,
Package pkg,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding) |
ArrayRecordImpl(Schema schema,
Package pkg,
String name,
DataType<X> type,
Converter<X,T> converter)
Create an empty array record
|
ArrayRecordImpl(Schema schema,
Package pkg,
String name,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding)
Create an empty array record
|
ArrayRecordImpl(Schema schema,
String name,
DataType<X> type,
Configuration configuration,
Converter<X,T> converter)
Deprecated.
- 3.4.0 - [#3126] - Use the
ArrayRecordImpl.ArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead. |
ArrayRecordImpl(Schema schema,
String name,
DataType<X> type,
Configuration configuration,
Converter<Y,T> converter,
Binding<X,Y> binding)
Deprecated.
- 3.4.0 - [#3126] - Use the
ArrayRecordImpl.ArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead. |
ArrayRecordImpl(Schema schema,
String name,
DataType<X> type,
Converter<X,T> converter)
Create an empty array record
|
ArrayRecordImpl(Schema schema,
String name,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding)
Create an empty array record
|
DefaultBinding(Converter<T,U> converter)
Deprecated.
- 3.11 - [#6631] - Use
DefaultBinding.binding(Converter) instead. |
DelegatingConverter(Converter<T,U> delegate) |
Modifier and Type | Method and Description |
---|---|
static <U> List<U> |
Convert.convert(Collection<?> collection,
Converter<?,? extends U> converter)
Convert a collection of objects to a list of
T , using
Convert.convert(Object, Converter) |
static <U> U |
Convert.convert(Object from,
Converter<?,? extends U> converter)
Convert an object to a type.
|
static <U> U[] |
Convert.convertArray(Object[] from,
Converter<?,? extends U> converter)
Convert an array into another one using a converter
This uses
Convert.convertArray(Object[], Class) to convert the array to
an array of fromType() first, before converting that
array again to toType() |
Copyright © 2019. All rights reserved.