Class MappingRelationalConverter.ProjectingConversionContext
java.lang.Object
org.springframework.data.relational.core.conversion.MappingRelationalConverter.DefaultConversionContext
org.springframework.data.relational.core.conversion.MappingRelationalConverter.ProjectingConversionContext
- All Implemented Interfaces:
MappingRelationalConverter.ConversionContext
- Enclosing class:
- MappingRelationalConverter
protected class MappingRelationalConverter.ProjectingConversionContext
extends MappingRelationalConverter.DefaultConversionContext
Projecting variant of
MappingRelationalConverter.ConversionContext
applying mapping-metadata rules from the related entity.- Since:
- 3.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.relational.core.conversion.MappingRelationalConverter.DefaultConversionContext
MappingRelationalConverter.DefaultConversionContext.ContainerValueConverter<T>, MappingRelationalConverter.DefaultConversionContext.ValueConverter<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProjectingConversionContext
(RelationalConverter sourceConverter, CustomConversions customConversions, ObjectPath path, MappingRelationalConverter.DefaultConversionContext.ContainerValueConverter<Collection<?>> collectionConverter, MappingRelationalConverter.DefaultConversionContext.ContainerValueConverter<Map<?, ?>> mapConverter, MappingRelationalConverter.DefaultConversionContext.ValueConverter<Object> elementConverter, EntityProjection<?, ?> projection) -
Method Summary
Modifier and TypeMethodDescriptionforProperty
(String name) Obtain aMappingRelationalConverter.ConversionContext
for the given propertyname
.withPath
(ObjectPath currentPath) Create a newMappingRelationalConverter.ConversionContext
withcurrentPath
applied.Methods inherited from class org.springframework.data.relational.core.conversion.MappingRelationalConverter.DefaultConversionContext
convert, getCustomConversions, getPath, getSourceConverter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.relational.core.conversion.MappingRelationalConverter.ConversionContext
convert, forProperty
-
Constructor Details
-
ProjectingConversionContext
protected ProjectingConversionContext(RelationalConverter sourceConverter, CustomConversions customConversions, ObjectPath path, MappingRelationalConverter.DefaultConversionContext.ContainerValueConverter<Collection<?>> collectionConverter, MappingRelationalConverter.DefaultConversionContext.ContainerValueConverter<Map<?, ?>> mapConverter, MappingRelationalConverter.DefaultConversionContext.ValueConverter<Object> elementConverter, EntityProjection<?, ?> projection)
-
-
Method Details
-
forProperty
Description copied from interface:MappingRelationalConverter.ConversionContext
Obtain aMappingRelationalConverter.ConversionContext
for the given propertyname
.- Parameters:
name
- must not be null.- Returns:
- the
MappingRelationalConverter.ConversionContext
to be used for conversion of the given property.
-
withPath
Description copied from interface:MappingRelationalConverter.ConversionContext
Create a newMappingRelationalConverter.ConversionContext
withcurrentPath
applied.- Specified by:
withPath
in interfaceMappingRelationalConverter.ConversionContext
- Overrides:
withPath
in classMappingRelationalConverter.DefaultConversionContext
- Parameters:
currentPath
- must not be null.- Returns:
- a new
MappingRelationalConverter.ConversionContext
withcurrentPath
applied.
-