Class SqlDTOMapper<T,S,R>
java.lang.Object
io.micronaut.data.runtime.mapper.DTOMapper<T,S,R>
io.micronaut.data.runtime.mapper.sql.SqlDTOMapper<T,S,R>
- Type Parameters:
T
- The entity typeS
- The source type.R
- The result type
- All Implemented Interfaces:
BeanIntrospectionMapper<S,
,R> SqlTypeMapper<S,
,R> TypeMapper<S,
R>
Subclass of
DTOMapper
specifically for SQL.-
Constructor Summary
ConstructorDescriptionSqlDTOMapper
(RuntimePersistentEntity<T> persistentEntity, RuntimePersistentEntity<?> dtoEntity, ResultReader<S, String> resultReader, SqlJsonColumnReader<S> jsonColumnReader, DataConversionService conversionService) Default constructor.SqlDTOMapper
(RuntimePersistentEntity<T> persistentEntity, ResultReader<S, String> resultReader, DataConversionService conversionService) Default constructor.SqlDTOMapper
(RuntimePersistentEntity<T> persistentEntity, ResultReader<S, String> resultReader, SqlJsonColumnReader<S> jsonColumnReader, DataConversionService conversionService) Default constructor. -
Method Summary
Methods inherited from class io.micronaut.data.runtime.mapper.DTOMapper
getConversionService, getPersistentEntity, getResultReader, read, read, read, read
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.runtime.mapper.BeanIntrospectionMapper
convert, map
Methods inherited from interface io.micronaut.data.runtime.mapper.TypeMapper
getConversionService, read, read
-
Constructor Details
-
SqlDTOMapper
public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, ResultReader<S, String> resultReader, DataConversionService conversionService) Default constructor.- Parameters:
persistentEntity
- The entityresultReader
- The result readerconversionService
- The conversion service
-
SqlDTOMapper
public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, ResultReader<S, String> resultReader, SqlJsonColumnReader<S> jsonColumnReader, DataConversionService conversionService) Default constructor.- Parameters:
persistentEntity
- The entityresultReader
- The result readerjsonColumnReader
- The json column readerconversionService
- The conversion service
-
SqlDTOMapper
public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, RuntimePersistentEntity<?> dtoEntity, ResultReader<S, String> resultReader, SqlJsonColumnReader<S> jsonColumnReader, DataConversionService conversionService) Default constructor.- Parameters:
persistentEntity
- The entitydtoEntity
- The DTO entityresultReader
- The result readerjsonColumnReader
- The json column readerconversionService
- The conversion service
-
-
Method Details
-
hasNext
Description copied from interface:SqlTypeMapper
Is another result available.- Specified by:
hasNext
in interfaceSqlTypeMapper<T,
S> - Parameters:
resultSet
- The result set- Returns:
- True if it is
-