java.lang.Object
org.jooq.impl.DefaultRecordUnmapperProvider
- All Implemented Interfaces:
Serializable
,RecordUnmapperProvider
public class DefaultRecordUnmapperProvider
extends Object
implements RecordUnmapperProvider, Serializable
A default
RecordUnmapperProvider
implementation, providing a
DefaultRecordUnmapper
instance.- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultRecordUnmapperProvider
(Configuration configuration) Create a newRecordUnmapperProvider
with aConfiguration
that can be used by jOOQ for caching reflection information. -
Method Summary
Modifier and TypeMethodDescriptionfinal <E,
R extends Record>
RecordUnmapper<E,R> provide
(Class<? extends E> type, RecordType<R> rowType) Provide aRecordUnmapper
instance.
-
Constructor Details
-
DefaultRecordUnmapperProvider
public DefaultRecordUnmapperProvider() -
DefaultRecordUnmapperProvider
Create a newRecordUnmapperProvider
with aConfiguration
that can be used by jOOQ for caching reflection information.
-
-
Method Details
-
provide
public final <E,R extends Record> RecordUnmapper<E,R> provide(Class<? extends E> type, RecordType<R> rowType) Description copied from interface:RecordUnmapperProvider
Provide aRecordUnmapper
instance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
- Specified by:
provide
in interfaceRecordUnmapperProvider
- Parameters:
type
- The user type that was passed intoRecord.from(Object)
or any other method.rowType
- TheRecordType
of records that shall be mapped by the returnedRecordUnmapper
.- Returns:
- A
RecordUnmapper
instance. - See Also:
-