Package io.micronaut.data.jdbc.mapper
Class ColumnNameExistenceAwareResultSetReader
java.lang.Object
io.micronaut.data.runtime.mapper.AbstractDelegatingResultReader<ResultSet,String>
io.micronaut.data.jdbc.mapper.ColumnNameExistenceAwareResultSetReader
- All Implemented Interfaces:
ResultReader<ResultSet,
String>
@Internal
public class ColumnNameExistenceAwareResultSetReader
extends AbstractDelegatingResultReader<ResultSet,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
(ResultSet resultSet, 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
-
ColumnNameExistenceAwareResultSetReader
public ColumnNameExistenceAwareResultSetReader()
-
-
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<ResultSet,
String> - Overrides:
readDynamic
in classAbstractDelegatingResultReader<ResultSet,
String> - Parameters:
resultSet
- The result setindex
- The namedataType
- The data type- Returns:
- The value, can be null
-