Package io.micronaut.data.runtime.mapper
Interface BeanIntrospectionMapper<D,R>
- Type Parameters:
D
- The object type.R
- The result type
- All Superinterfaces:
TypeMapper<D,
R>
- All Known Implementing Classes:
DTOMapper
,SqlDTOMapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
TypeMapper
that maps objects using a compile time computed BeanIntrospection
.- Since:
- 1.0.0
- Author:
- graemerocher
-
Method Summary
Methods inherited from interface io.micronaut.data.runtime.mapper.TypeMapper
getConversionService, read, read
-
Method Details
-
map
@NonNull default R map(@NonNull D object, @NonNull @NonNull Class<R> type) throws io.micronaut.core.reflect.exception.InstantiationException Description copied from interface:TypeMapper
Map the given result set to the given object.- Specified by:
map
in interfaceTypeMapper<D,
R> - Parameters:
object
- The object to maptype
- The type- Returns:
- The mapped object
- Throws:
io.micronaut.core.reflect.exception.InstantiationException
-
convert
-