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 type
S - The source type.
R - The result type
All Implemented Interfaces:
BeanIntrospectionMapper<S,R>, SqlTypeMapper<S,R>, TypeMapper<S,R>

@Deprecated(forRemoval=true, since="4.2") public class SqlDTOMapper<T,S,R> extends DTOMapper<T,S,R> implements SqlTypeMapper<S,R>
Deprecated, for removal: This API element is subject to removal in a future version.
Not used as of 4.2
Subclass of DTOMapper specifically for SQL.
  • Constructor Details

    • SqlDTOMapper

      public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, ResultReader<S,String> resultReader, DataConversionService conversionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      persistentEntity - The entity
      resultReader - The result reader
      conversionService - The conversion service
    • SqlDTOMapper

      public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, ResultReader<S,String> resultReader, SqlJsonColumnReader<S> jsonColumnReader, DataConversionService conversionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      persistentEntity - The entity
      resultReader - The result reader
      jsonColumnReader - The json column reader
      conversionService - The conversion service
    • SqlDTOMapper

      public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, RuntimePersistentEntity<?> dtoEntity, ResultReader<S,String> resultReader, SqlJsonColumnReader<S> jsonColumnReader, DataConversionService conversionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      persistentEntity - The entity
      dtoEntity - The DTO entity
      resultReader - The result reader
      jsonColumnReader - The json column reader
      conversionService - The conversion service
  • Method Details

    • hasNext

      public boolean hasNext(S resultSet)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SqlTypeMapper
      Is another result available.
      Specified by:
      hasNext in interface SqlTypeMapper<T,S>
      Parameters:
      resultSet - The result set
      Returns:
      True if it is