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 AuditingHandlerAuditingHandler.from(MappingContext<?, ?> mappingContext) Factory method that creates a newAuditingHandlerfor the givenMappingContext.static IsNewAwareAuditingHandlerIsNewAwareAuditingHandler.from(MappingContext<?, ?> mappingContext) Factory method that creates a newIsNewAwareAuditingHandlerfor the givenMappingContext.static ReactiveAuditingHandlerReactiveAuditingHandler.from(MappingContext<?, ?> mappingContext) Factory method that creates a newReactiveAuditingHandlerfor the givenMappingContext.ReactiveIsNewAwareAuditingHandler.from(MappingContext<?, ?> mappingContext) Factory method that creates a newReactiveIsNewAwareAuditingHandlerfor 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 underlyingMappingContextused 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 newDefaultTypeMapperusing the givenTypeAliasAccessor,MappingContextand additionalTypeInformationMappers.DtoInstantiatingConverter(Class<?> dtoType, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> context, EntityInstantiators instantiators) Create a newConverterto instantiate DTOs.MappingContextTypeInformationMapper(MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext) Creates aMappingContextTypeInformationMapperfrom the givenMappingContext. -
Uses of MappingContext in org.springframework.data.mapping.context
Classes in org.springframework.data.mapping.context that implement MappingContextModifier and TypeClassDescriptionclassAbstractMappingContext<E extends MutablePersistentEntity<?,P>, P extends PersistentProperty<P>> Base class to build mapping metadata and thus create instances ofPersistentEntityandPersistentProperty.Methods in org.springframework.data.mapping.context with parameters of type MappingContextModifier and TypeMethodDescriptionstatic PersistentEntitiesPersistentEntities.of(MappingContext<?, ?>... contexts) Creates a newPersistentEntitiesfor the givenMappingContexts.booleanMappingContextEvent.wasEmittedBy(MappingContext<?, ?> context) Returns whether theMappingContextEventwas 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 givenBiFunctionon the givenMappingContextandPersistentEntitybased 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 newPersistentEntitiesfor the givenMappingContexts. -
Uses of MappingContext in org.springframework.data.projection
Methods in org.springframework.data.projection with parameters of type MappingContextModifier and TypeMethodDescriptionstatic EntityProjectionIntrospectorEntityProjectionIntrospector.create(ProjectionFactory projectionFactory, EntityProjectionIntrospector.ProjectionPredicate projectionPredicate, MappingContext<?, ?> mappingContext) Create a newEntityProjectionIntrospectorgivenProjectionFactory,EntityProjectionIntrospector.ProjectionPredicateandMappingContext. -
Uses of MappingContext in org.springframework.data.repository.config
Constructors in org.springframework.data.repository.config with parameters of type MappingContextModifierConstructorDescriptionCreates a newPersistentEntitiesFactoryBeanfor 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 voidRepositoryFactoryBeanSupport.setMappingContext(MappingContext<?, ?> mappingContext) Configures theMappingContextto be used to lookupPersistentEntityinstances forRepositoryFactoryBeanSupport.getPersistentEntity().