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(java.lang.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(java.lang.Class<T> fromType,
java.lang.Class<U> toType,
java.util.function.Function<? super T,? extends U> from,
java.util.function.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(java.lang.Class<T> fromType,
java.lang.Class<U> toType,
java.util.function.Function<? super T,? extends U> from,
java.util.function.Function<? super U,? extends T> to)
Construct a new converter from functions.
|
<T,U> Converter<T,U> |
ConverterProvider.provide(java.lang.Class<T> tType,
java.lang.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> java.util.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> java.util.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> java.util.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> java.util.List<U> |
ResultQuery.fetch(java.lang.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(java.lang.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(java.lang.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(java.lang.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> java.util.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> java.util.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> java.util.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> java.util.Optional<U> |
ResultQuery.fetchOptional(java.lang.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> java.util.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> java.util.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> java.util.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> java.util.Set<U> |
ResultQuery.fetchSet(java.lang.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(java.lang.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(java.lang.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(java.lang.String fieldName,
Converter<?,? extends U> converter)
Get a converted value from this Record, providing a field name.
|
<U> U |
Record.getValue(java.lang.String fieldName,
Converter<?,? extends U> converter,
U defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
<T,U> java.util.List<U> |
Result.getValues(Field<T> field,
Converter<? super T,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<U> java.util.List<U> |
Result.getValues(int fieldIndex,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<U> java.util.List<U> |
Result.getValues(Name fieldName,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
<U> java.util.List<U> |
Result.getValues(java.lang.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(java.lang.String fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
<T,U> java.util.Set<U> |
Result.intoSet(Field<T> field,
Converter<? super T,? extends U> converter)
Return all values for a field from the result.
|
<U> java.util.Set<U> |
Result.intoSet(int fieldIndex,
Converter<?,? extends U> converter)
Return all values for a field index from the result.
|
<U> java.util.Set<U> |
Result.intoSet(Name fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
<U> java.util.Set<U> |
Result.intoSet(java.lang.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,
java.util.function.Consumer<? super BindingSQLContext<U>> sqlContext,
java.util.function.Consumer<? super BindingGetResultSetContext<U>> getResultSetContext,
java.util.function.Consumer<? super BindingSetStatementContext<U>> setStatementContext)
Construct a binding from functions.
|
static <T,U> Binding<T,U> |
Binding.of(Converter<T,U> converter,
java.util.function.Consumer<? super BindingSQLContext<U>> sqlContext,
java.util.function.Consumer<? super BindingGetResultSetContext<U>> getResultSetContext,
java.util.function.Consumer<? super BindingSetStatementContext<U>> setStatementContext,
java.util.function.Consumer<? super BindingRegisterContext<U>> registerContext,
java.util.function.Consumer<? super BindingGetStatementContext<U>> getStatementContext)
Construct a binding from functions.
|
static <T,U> Binding<T,U> |
Binding.of(Converter<T,U> converter,
java.util.function.Consumer<? super BindingSQLContext<U>> sqlContext,
java.util.function.Consumer<? super BindingGetResultSetContext<U>> getResultSetContext,
java.util.function.Consumer<? super BindingSetStatementContext<U>> setStatementContext,
java.util.function.Consumer<? super BindingRegisterContext<U>> registerContext,
java.util.function.Consumer<? super BindingGetStatementContext<U>> getStatementContext,
java.util.function.Consumer<? super BindingGetSQLInputContext<U>> getSqlInputContext,
java.util.function.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 |
DelegatingConverter<T,U> |
class |
EnumConverter<T,U extends java.lang.Enum<U>>
A base class for enum conversion.
|
class |
JPAConverter<T,U>
A converter that delegates data type conversions to a JPA
AttributeConverter . |
Modifier and Type | Method and Description |
---|---|
Converter<java.lang.Object,org.w3c.dom.Node> |
XMLasDOMBinding.converter() |
Converter<T,U> |
DefaultBinding.converter() |
Converter<java.sql.Timestamp,java.sql.Timestamp> |
DateAsTimestampBinding.converter() |
Converter<java.lang.String,java.lang.String> |
ClobBinding.converter() |
Converter<byte[],byte[]> |
BlobBinding.converter() |
Converter<java.lang.Object,T> |
AbstractXMLasObjectBinding.converter() |
Converter<?,T> |
DefaultDataType.getConverter() |
<T,U> Converter<T,U> |
DefaultConverterProvider.provide(java.lang.Class<T> tType,
java.lang.Class<U> uType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<U> DataType<U> |
DefaultDataType.asConvertedDataType(Converter<? super T,U> converter) |
protected static <R extends UDTRecord<R>,T,U> |
UDTImpl.createField(java.lang.String name,
DataType<T> type,
UDT<R> udt,
java.lang.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(java.lang.String name,
DataType<T> type,
UDT<R> udt,
java.lang.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. |
protected static <T,U> Parameter<U> |
AbstractRoutine.createParameter(java.lang.String name,
DataType<T> type,
boolean isDefaulted,
boolean isUnnamed,
Converter<T,U> converter)
Subclasses may call this method to create
UDTField objects that
are linked to this table. |
protected static <T,X,U> Parameter<U> |
AbstractRoutine.createParameter(java.lang.String name,
DataType<T> type,
boolean isDefaulted,
boolean isUnnamed,
Converter<X,U> converter,
Binding<T,X> binding)
Subclasses may call this method to create
UDTField objects that
are linked to this table. |
protected static <T,U> Parameter<U> |
AbstractRoutine.createParameter(java.lang.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(java.lang.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(java.lang.String name,
Schema schema,
DataType<X> type,
Converter<X,T> converter) |
AbstractRoutine(java.lang.String name,
Schema schema,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding) |
AbstractRoutine(java.lang.String name,
Schema schema,
Package pkg,
DataType<X> type,
Converter<X,T> converter) |
AbstractRoutine(java.lang.String name,
Schema schema,
Package pkg,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding) |
ArrayRecordImpl(Schema schema,
java.lang.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,
java.lang.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,
java.lang.String name,
DataType<X> type,
Converter<X,T> converter)
Create an empty array record
|
ArrayRecordImpl(Schema schema,
java.lang.String name,
DataType<X> type,
Converter<Y,T> converter,
Binding<X,Y> binding)
Create an empty array record
|
DefaultBinding(Converter<T,U> converter) |
DelegatingConverter(Converter<T,U> delegate) |
Modifier and Type | Method and Description |
---|---|
static <U> java.util.List<U> |
Convert.convert(java.util.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(java.lang.Object from,
Converter<?,? extends U> converter)
Convert an object to a type.
|
static <U> U[] |
Convert.convertArray(java.lang.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 © 2018. All Rights Reserved.