public class QueryMapper extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
QueryMapper.Field
Value object to represent a field and its meta-information.
|
protected static class |
QueryMapper.MetadataBackedField
Extension of
QueryMapper.Field to be backed with mapping metadata. |
Constructor and Description |
---|
QueryMapper(R2dbcConverter converter)
Creates a new
QueryMapper with the given R2dbcConverter . |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertValue(Object value,
TypeInformation<?> typeInformation) |
BoundCondition |
getMappedObject(BindMarkers markers,
Criteria criteria,
org.springframework.data.relational.core.sql.Table table,
org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
|
Sort |
getMappedObject(Sort sort,
org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
Map the
Sort object to apply field name mapping using the type to read . |
protected MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,org.springframework.data.relational.core.mapping.RelationalPersistentProperty> |
getMappingContext() |
public QueryMapper(R2dbcConverter converter)
QueryMapper
with the given R2dbcConverter
.converter
- must not be null.public Sort getMappedObject(Sort sort, @Nullable org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
Sort
object to apply field name mapping using the type to read
.sort
- must not be null.entity
- related RelationalPersistentEntity
, can be null.public BoundCondition getMappedObject(BindMarkers markers, Criteria criteria, org.springframework.data.relational.core.sql.Table table, @Nullable org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
markers
- bind markers object, must not be null.criteria
- criteria definition to map, must not be null.table
- must not be null.entity
- related RelationalPersistentEntity
, can be null.BoundCondition
.@Nullable protected Object convertValue(@Nullable Object value, TypeInformation<?> typeInformation)
protected MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,org.springframework.data.relational.core.mapping.RelationalPersistentProperty> getMappingContext()
Copyright © 2018–2019 Pivotal Software, Inc.. All rights reserved.