T
- The entity typeS
- The source type.R
- The result typepublic class SqlDTOMapper<T,S,R> extends DTOMapper<T,S,R> implements SqlTypeMapper<S,R>
DTOMapper
specifically for SQL.Constructor and Description |
---|
SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity,
ResultReader<S,java.lang.String> resultReader)
Default constructor.
|
SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity,
ResultReader<S,java.lang.String> resultReader,
io.micronaut.http.codec.MediaTypeCodec jsonCodec)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext(S resultSet)
Is another result available.
|
getPersistentEntity, getResultReader, read, read, read, read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConversionService, map, read, read
map
public SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, ResultReader<S,java.lang.String> resultReader)
persistentEntity
- The entityresultReader
- The result readerpublic SqlDTOMapper(RuntimePersistentEntity<T> persistentEntity, ResultReader<S,java.lang.String> resultReader, io.micronaut.http.codec.MediaTypeCodec jsonCodec)
persistentEntity
- The entityresultReader
- The result readerjsonCodec
- The json codecpublic boolean hasNext(S resultSet)
SqlTypeMapper
hasNext
in interface SqlTypeMapper<S,R>
resultSet
- The result set