Package org.jooq.impl
Class DefaultRecordUnmapperProvider
- java.lang.Object
-
- org.jooq.impl.DefaultRecordUnmapperProvider
-
- All Implemented Interfaces:
java.io.Serializable
,RecordUnmapperProvider
public class DefaultRecordUnmapperProvider extends java.lang.Object implements RecordUnmapperProvider, java.io.Serializable
A defaultRecordUnmapperProvider
implementation, providing aDefaultRecordUnmapper
instance.- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description DefaultRecordUnmapperProvider()
protected
DefaultRecordUnmapperProvider(Configuration configuration)
Create a newRecordUnmapperProvider
with aConfiguration
that can be used by jOOQ for caching reflection information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E,R extends Record>
RecordUnmapper<E,R>provide(java.lang.Class<? extends E> type, RecordType<R> rowType)
Provide aRecordUnmapper
instance.
-
-
-
Constructor Detail
-
DefaultRecordUnmapperProvider
public DefaultRecordUnmapperProvider()
-
DefaultRecordUnmapperProvider
protected DefaultRecordUnmapperProvider(Configuration configuration)
Create a newRecordUnmapperProvider
with aConfiguration
that can be used by jOOQ for caching reflection information.
-
-
Method Detail
-
provide
public final <E,R extends Record> RecordUnmapper<E,R> provide(java.lang.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:
RecordUnmapper
,DefaultRecordUnmapper
,DefaultRecordUnmapperProvider
-
-