Top Description Methods
org.jooq

public Interface RecordUnmapperProvider

Known Direct Implementers
org.jooq.impl.DefaultRecordUnmapperProvider, org.jooq.impl.DefaultConfiguration.RecordUnmapperWrapper
Annotations
@FunctionalInterface
Imports
org.jooq.impl.DefaultRecordUnmapper, .DefaultRecordUnmapperProvider, org.jetbrains.annotations.NotNull

A provider for RecordUnmapper instances.

In order to inject custom POJO to Record mapping behaviour, users can supply a custom RecordUnmapperProvider to their Configuration instances. This provider will be used in any of these methods (non-exhaustive list):

Record

DSLContext

While not strictly required, it is advisable to implement a RecordUnmapperProvider whose behaviour is consistent with the configured RecordMapperProvider.

Author
Lukas Eder
See Also
RecordUnmapper, Configuration

Method Summary

Modifier and TypeMethod and Description
public <E, R extends Record> @NotNull RecordUnmapper<E, R>

Returns:

A RecordUnmapper instance.
provide
(Class<? extends E>
The user type that was passed into Record#from(Object) or any other method.
type
,
RecordType<R>
The RecordType of records that shall be mapped by the returned RecordUnmapper.
recordType
)

Provide a RecordUnmapper instance.

Method Detail

provideback to summary
public <E, R extends Record> @NotNull RecordUnmapper<E, R> provide(Class<? extends E> type, RecordType<R> recordType)

Provide a RecordUnmapper instance.

Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.

Parameters
type:Class<? extends E>

The user type that was passed into Record#from(Object) or any other method.

recordType:RecordType<R>

The RecordType of records that shall be mapped by the returned RecordUnmapper.

Returns:@NotNull RecordUnmapper<E, R>

A RecordUnmapper instance.

Annotations
@NotNull
See Also
RecordUnmapper, DefaultRecordUnmapper, DefaultRecordUnmapperProvider