Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class DelayedRecordMapper<R extends org.jooq.Record, E>

extends Object
implements RecordMapper<R extends Record, E>
Class Inheritance
All Implemented Interfaces
org.jooq.RecordMapper, java.util.function.Function
Imports
java.util.function.Function, org.jooq.Record, .RecordMapper, .RecordType

A RecordMapper implementation offering access to a delegate record mapper whose initialisation is delayed until the first record, e.g. for ResultQuery implementations whose RecordType is unknown prior to execution.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv RecordMapper<R, E>
pack-priv final Function<FieldsImpl<R>, RecordMapper<R, E>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final E
map(R
The record to be mapped. This is never null.
record
)

Implements org.jooq.RecordMapper.map.

Map a record into a POJO.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
pack-priv RecordMapper<R, E> delegate
initback to summary
pack-priv final Function<FieldsImpl<R>, RecordMapper<R, E>> init

Constructor Detail

DelayedRecordMapperback to summary
pack-priv DelayedRecordMapper(Function<FieldsImpl<R>, RecordMapper<R, E>> init)

Method Detail

mapback to summary
public final E map(R record)

Implements org.jooq.RecordMapper.map.

Doc from org.jooq.RecordMapper.map.

Map a record into a POJO.

Parameters
record:R

The record to be mapped. This is never null.

Returns:E

The mapped value, which may be null in some implementations.

Annotations
@SuppressWarnings:unchecked
@Override