Uses of Interface
org.springframework.data.mapping.context.MappingContext
Packages that use MappingContext
Package
Description
General support for entity auditing.
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.auditing
Methods in org.springframework.data.auditing with parameters of type MappingContextModifier and TypeMethodDescriptionstatic AuditingHandler
AuditingHandler.from
(MappingContext<?, ?> mappingContext) Factory method that creates a newAuditingHandler
for the givenMappingContext
.static IsNewAwareAuditingHandler
IsNewAwareAuditingHandler.from
(MappingContext<?, ?> mappingContext) Factory method that creates a newIsNewAwareAuditingHandler
for the givenMappingContext
.static ReactiveAuditingHandler
ReactiveAuditingHandler.from
(MappingContext<?, ?> mappingContext) Factory method that creates a newReactiveAuditingHandler
for the givenMappingContext
.ReactiveIsNewAwareAuditingHandler.from
(MappingContext<?, ?> mappingContext) Factory method that creates a newReactiveIsNewAwareAuditingHandler
for the givenMappingContext
. -
Uses of MappingContext in org.springframework.data.convert
Methods in org.springframework.data.convert that return MappingContextModifier and TypeMethodDescriptionMappingContext<? extends E,
P> EntityConverter.getMappingContext()
Returns the underlyingMappingContext
used by the converter.Constructors in org.springframework.data.convert with parameters of type MappingContextModifierConstructorDescriptionDefaultTypeMapper
(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
Classes in org.springframework.data.mapping.context that implement MappingContextModifier and TypeClassDescriptionclass
AbstractMappingContext<E extends MutablePersistentEntity<?,
P>, P extends PersistentProperty<P>> Base class to build mapping metadata and thus create instances ofPersistentEntity
andPersistentProperty
.Methods in org.springframework.data.mapping.context with parameters of type MappingContextModifier 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
.Method parameters in org.springframework.data.mapping.context with type arguments of type MappingContextModifier 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.Constructors in org.springframework.data.mapping.context with parameters of type MappingContextConstructor parameters in org.springframework.data.mapping.context with type arguments of type MappingContextModifierConstructorDescriptionPersistentEntities
(Iterable<? extends MappingContext<?, ?>> contexts) Creates a newPersistentEntities
for the givenMappingContext
s. -
Uses of MappingContext in org.springframework.data.projection
Methods in org.springframework.data.projection with parameters of type MappingContextModifier 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
Constructors in org.springframework.data.repository.config with parameters of type MappingContextModifierConstructorDescriptionCreates a newPersistentEntitiesFactoryBean
for the givenMappingContext
. -
Uses of MappingContext in org.springframework.data.repository.core.support
Methods in org.springframework.data.repository.core.support with parameters of type MappingContextModifier and TypeMethodDescriptionprotected void
RepositoryFactoryBeanSupport.setMappingContext
(MappingContext<?, ?> mappingContext) Configures theMappingContext
to be used to lookupPersistentEntity
instances forRepositoryFactoryBeanSupport.getPersistentEntity()
.