Uses of Interface
org.springframework.data.mapping.context.MappingContext
Package
Description
General purpose conversion framework to read objects from a data store abstraction and write it back.
Mapping context API and implementation base classes.
Projection subsystem.
Support classes for repository namespace and JavaConfig integration.
Base classes to implement repositories for various data stores.
-
Uses of MappingContext in org.springframework.data.convert
Modifier and TypeMethodDescriptionMappingContext<? extends E,
P> EntityConverter.getMappingContext()
Returns the underlyingMappingContext
used by the converter.ModifierConstructorDescriptionDefaultTypeMapper
(TypeAliasAccessor<S> accessor, MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext, List<? extends TypeInformationMapper> additionalMappers) Creates a newDefaultTypeMapper
using the givenTypeAliasAccessor
,MappingContext
and additionalTypeInformationMapper
s.DtoInstantiatingConverter
(Class<?> dtoType, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> context, EntityInstantiators instantiators) Create a newConverter
to instantiate DTOs.MappingContextTypeInformationMapper
(MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext) Creates aMappingContextTypeInformationMapper
from the givenMappingContext
. -
Uses of MappingContext in org.springframework.data.mapping.context
Modifier and TypeClassDescriptionclass
AbstractMappingContext<E extends MutablePersistentEntity<?,
P>, P extends PersistentProperty<P>> Base class to build mapping metadata and thus create instances ofPersistentEntity
andPersistentProperty
.Modifier and TypeMethodDescriptionstatic PersistentEntities
PersistentEntities.of
(MappingContext<?, ?>... contexts) Creates a newPersistentEntities
for the givenMappingContext
s.boolean
MappingContextEvent.wasEmittedBy
(MappingContext<?, ?> context) Returns whether theMappingContextEvent
was triggered by the givenMappingContext
.Modifier and TypeMethodDescription<T> Optional<T>
PersistentEntities.mapOnContext
(Class<?> type, BiFunction<MappingContext<?, ? extends PersistentProperty<?>>, PersistentEntity<?, ?>, T> combiner) Executes the givenBiFunction
on the givenMappingContext
andPersistentEntity
based on the given type.ModifierConstructorDescriptionPersistentEntities
(Iterable<? extends MappingContext<?, ?>> contexts) Creates a newPersistentEntities
for the givenMappingContext
s. -
Uses of MappingContext in org.springframework.data.projection
Modifier and TypeMethodDescriptionstatic EntityProjectionIntrospector
EntityProjectionIntrospector.create
(ProjectionFactory projectionFactory, EntityProjectionIntrospector.ProjectionPredicate projectionPredicate, MappingContext<?, ?> mappingContext) Create a newEntityProjectionIntrospector
givenProjectionFactory
,EntityProjectionIntrospector.ProjectionPredicate
andMappingContext
. -
Uses of MappingContext in org.springframework.data.repository.config
ModifierConstructorDescriptionCreates a newPersistentEntitiesFactoryBean
for the givenMappingContext
. -
Uses of MappingContext in org.springframework.data.repository.core.support
Modifier and TypeMethodDescriptionprotected void
RepositoryFactoryBeanSupport.setMappingContext
(MappingContext<?, ?> mappingContext) Configures theMappingContext
to be used to lookupPersistentEntity
instances forRepositoryFactoryBeanSupport.getPersistentEntity()
.