Class JsonQueryResultMapper<T,RS,R>  
java.lang.Object
io.micronaut.data.runtime.mapper.sql.JsonQueryResultMapper<T,RS,R>  
- Type Parameters:
- T- The entity type
- RS- The result set type
- R- The result type
- All Implemented Interfaces:
- SqlTypeMapper<RS,,- R> - TypeMapper<RS,- R> 
The JSON query result mapper. Transforms result from single column with JSON value into the given entity.
- Since:
- 4.0.0.
- Author:
- radovanradic
- 
Constructor SummaryConstructorsConstructorDescriptionJsonQueryResultMapper(@NonNull String columnName, @NonNull JsonDataType jsonDataType, @NonNull RuntimePersistentEntity<T> entity, @NonNull ResultReader<RS, String> resultReader, @NonNull SqlJsonColumnReader<RS> sqlJsonColumnReader, @Nullable BiFunction<RuntimePersistentEntity<Object>, Object, Object> eventListener) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.runtime.mapper.TypeMappergetConversionService, read
- 
Constructor Details- 
JsonQueryResultMapperpublic JsonQueryResultMapper(@NonNull @NonNull String columnName, @NonNull @NonNull JsonDataType jsonDataType, @NonNull @NonNull RuntimePersistentEntity<T> entity, @NonNull @NonNull ResultReader<RS, String> resultReader, @NonNull @NonNull SqlJsonColumnReader<RS> sqlJsonColumnReader, @Nullable @Nullable BiFunction<RuntimePersistentEntity<Object>, Object, Object> eventListener) 
 
- 
- 
Method Details- 
mapDescription copied from interface:TypeMapperMap the given result set to the given object.- Specified by:
- mapin interface- TypeMapper<T,- RS> 
- Parameters:
- rs- The object to map
- type- The type
- Returns:
- The mapped object
- Throws:
- DataAccessException- If the object cannot be mapped.
 
- 
readDescription copied from interface:TypeMapperRead a value for the given name from the given object.- Specified by:
- readin interface- TypeMapper<T,- RS> 
- Parameters:
- object- The object to read from
- name- The name
- Returns:
- The value
 
- 
hasNextDescription copied from interface:SqlTypeMapperIs another result available.- Specified by:
- hasNextin interface- SqlTypeMapper<T,- RS> 
- Parameters:
- resultSet- The result set
- Returns:
- True if it is
 
 
-