Interface TypeMapper<D,R>
- Type Parameters:
D- The source type.R- The result type
- All Known Subinterfaces:
BeanIntrospectionMapper<D,R>, SqlTypeMapper<RS, R>
- All Known Implementing Classes:
DTOMapper, JdbcTupleMapper, JsonQueryResultMapper, RowTupleMapper, SqlDTOMapper, SqlResultEntityTypeMapper
public interface TypeMapper<D,R>
A context object to facilitate and ease mapping objects programmatically.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Method Summary
-
Method Details
-
map
Map the given result set to the given object.- Parameters:
object- The object to maptype- The type- Returns:
- The mapped object
- Throws:
DataAccessException- If the object cannot be mapped.
-
read
-
read
-
getConversionService
default io.micronaut.core.convert.ConversionService getConversionService()- Returns:
- The conversion service to use.
-