Package io.micronaut.data.r2dbc.mapper
Class ColumnNameExistenceAwareR2dbcResultSetReader
java.lang.Object
io.micronaut.data.runtime.mapper.AbstractDelegatingResultReader<io.r2dbc.spi.Row,String>
io.micronaut.data.r2dbc.mapper.ColumnNameExistenceAwareR2dbcResultSetReader
- All Implemented Interfaces:
ResultReader<io.r2dbc.spi.Row,
String>
@Internal
public class ColumnNameExistenceAwareR2dbcResultSetReader
extends AbstractDelegatingResultReader<io.r2dbc.spi.Row,String>
The reader that will return null if the column doesn't exist in the result.
- Since:
- 4.9
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from class io.micronaut.data.runtime.mapper.AbstractDelegatingResultReader
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadDynamic
(io.r2dbc.spi.Row row, String index, DataType dataType) Read a value dynamically using the result set and the given name and data type.Methods inherited from class io.micronaut.data.runtime.mapper.AbstractDelegatingResultReader
convertRequired, convertRequired, getConversionService, getRequiredValue, next, readBigDecimal, readBoolean, readByte, readBytes, readChar, readDate, readDouble, readFloat, readInt, readLong, readShort, readString, readTime, readTimestamp, readUUID
-
Constructor Details
-
ColumnNameExistenceAwareR2dbcResultSetReader
public ColumnNameExistenceAwareR2dbcResultSetReader()
-
-
Method Details
-
readDynamic
Description copied from interface:ResultReader
Read a value dynamically using the result set and the given name and data type.- Specified by:
readDynamic
in interfaceResultReader<io.r2dbc.spi.Row,
String> - Overrides:
readDynamic
in classAbstractDelegatingResultReader<io.r2dbc.spi.Row,
String> - Parameters:
row
- The result setindex
- The namedataType
- The data type- Returns:
- The value, can be null
-