Top Description Methods
org.jooq.impl

pack-priv Interface Mappable<R extends org.jooq.Record>

Known Direct Subinterfaces
org.jooq.impl.ResultQueryTrait
Known Direct Implementers
org.jooq.impl.FieldsImpl
Imports
org.jooq.Configuration, .Converter, .Field, .Name, .Record, .RecordMapper, .RecordQualifier, .Table, org.jetbrains.annotations.NotNull

A type producing records that can be mapped.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull RecordMapper<R, ?>
mapper(int fieldIndex)

Create a record mapper that extracts a value by field index.

public <U> @NotNull RecordMapper<R, U>
mapper(int fieldIndex, Configuration configuration, Class<? extends U> type)

Create a record mapper that extracts a value by field index and converts it using the Configuration#converterProvider().

public <U> @NotNull RecordMapper<R, U>
mapper(int fieldIndex, Converter<?, ? extends U> converter)

Create a record mapper that extracts a value by field index and converts it using a Converter.

public @NotNull RecordMapper<R, Record>
mapper(int[] fieldIndexes)

Create a record mapper that extracts values by field index.

public @NotNull RecordMapper<R, ?>
mapper(String fieldName)

Create a record mapper that extracts a value by field name.

public <U> @NotNull RecordMapper<R, U>
mapper(String fieldName, Configuration configuration, Class<? extends U> type)

Create a record mapper that extracts a value by field name and converts it using the Configuration#converterProvider().

public <U> @NotNull RecordMapper<R, U>
mapper(String fieldName, Converter<?, ? extends U> converter)

Create a record mapper that extracts a value by field name and converts it using a Converter.

public @NotNull RecordMapper<R, Record>
mapper(String[] fieldNames)

Create a record mapper that extracts values by field name.

public @NotNull RecordMapper<R, ?>
mapper(Name fieldName)

Create a record mapper that extracts a value by field name.

public <U> @NotNull RecordMapper<R, U>
mapper(Name fieldName, Configuration configuration, Class<? extends U> type)

Create a record mapper that extracts a value by field name and converts it using the Configuration#converterProvider().

public <U> @NotNull RecordMapper<R, U>
mapper(Name fieldName, Converter<?, ? extends U> converter)

Create a record mapper that extracts a value by field name and converts it using a Converter.

public @NotNull RecordMapper<R, Record>
mapper(Name[] fieldNames)

Create a record mapper that extracts values by field name.

public <T> @NotNull RecordMapper<R, T>
mapper(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts a value by field reference.
public <U> @NotNull RecordMapper<R, U>
mapper(Field<?> field, Configuration configuration, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts a value by field reference and converts it using the Configuration#converterProvider().
public <T, U> @NotNull RecordMapper<R, U>
mapper(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts a value by field reference and converts it using a Converter.
public @NotNull RecordMapper<R, Record>
mapper(Field<?>[] fields)

Deprecated as a consequence of Field being deprecated.
Create a record mapper that extracts values by field reference.
public <S extends Record> @NotNull RecordMapper<R, S>
mapper(Table<S> table)

Create a record mapper that maps records to a new RecordQualifier#getRecordType().

public <E> @NotNull RecordMapper<R, E>
mapper(Configuration configuration, Class<? extends E> type)

Create a record mapper that maps records to a Class using the configured Configuration#recordMapperProvider() (the DefaultRecordMapper, by default).

Method Detail

mapperback to summary
public @NotNull RecordMapper<R, ?> mapper(int fieldIndex)

Create a record mapper that extracts a value by field index.

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(int fieldIndex, Configuration configuration, Class<? extends U> type)

Create a record mapper that extracts a value by field index and converts it using the Configuration#converterProvider().

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(int fieldIndex, Converter<?, ? extends U> converter)

Create a record mapper that extracts a value by field index and converts it using a Converter.

Annotations
@NotNull
mapperback to summary
public @NotNull RecordMapper<R, Record> mapper(int[] fieldIndexes)

Create a record mapper that extracts values by field index.

Annotations
@NotNull
mapperback to summary
public @NotNull RecordMapper<R, ?> mapper(String fieldName)

Create a record mapper that extracts a value by field name.

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(String fieldName, Configuration configuration, Class<? extends U> type)

Create a record mapper that extracts a value by field name and converts it using the Configuration#converterProvider().

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(String fieldName, Converter<?, ? extends U> converter)

Create a record mapper that extracts a value by field name and converts it using a Converter.

Annotations
@NotNull
mapperback to summary
public @NotNull RecordMapper<R, Record> mapper(String[] fieldNames)

Create a record mapper that extracts values by field name.

Annotations
@NotNull
mapperback to summary
public @NotNull RecordMapper<R, ?> mapper(Name fieldName)

Create a record mapper that extracts a value by field name.

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(Name fieldName, Configuration configuration, Class<? extends U> type)

Create a record mapper that extracts a value by field name and converts it using the Configuration#converterProvider().

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(Name fieldName, Converter<?, ? extends U> converter)

Create a record mapper that extracts a value by field name and converts it using a Converter.

Annotations
@NotNull
mapperback to summary
public @NotNull RecordMapper<R, Record> mapper(Name[] fieldNames)

Create a record mapper that extracts values by field name.

Annotations
@NotNull
mapperback to summary
public <T> @NotNull RecordMapper<R, T> mapper(Field<T> field)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Create a record mapper that extracts a value by field reference.

Annotations
@NotNull
mapperback to summary
public <U> @NotNull RecordMapper<R, U> mapper(Field<?> field, Configuration configuration, Class<? extends U> type)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Create a record mapper that extracts a value by field reference and converts it using the Configuration#converterProvider().

Annotations
@NotNull
mapperback to summary
public <T, U> @NotNull RecordMapper<R, U> mapper(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Create a record mapper that extracts a value by field reference and converts it using a Converter.

Annotations
@NotNull
mapperback to summary
public @NotNull RecordMapper<R, Record> mapper(Field<?>[] fields)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Create a record mapper that extracts values by field reference.

Annotations
@NotNull
mapperback to summary
public <S extends Record> @NotNull RecordMapper<R, S> mapper(Table<S> table)

Create a record mapper that maps records to a new RecordQualifier#getRecordType().

Annotations
@NotNull
mapperback to summary
public <E> @NotNull RecordMapper<R, E> mapper(Configuration configuration, Class<? extends E> type)

Create a record mapper that maps records to a Class using the configured Configuration#recordMapperProvider() (the DefaultRecordMapper, by default).

Annotations
@NotNull