Module spring.data.keyvalue
Class KeyValueMappingContext<E extends KeyValuePersistentEntity<?,P>,P extends KeyValuePersistentProperty<P>>
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<E,P>
org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext<E,P>
- All Implemented Interfaces:
Aware,BeanFactoryAware,InitializingBean,ApplicationContextAware,ApplicationEventPublisherAware,EnvironmentAware,MappingContext<E,P>
public class KeyValueMappingContext<E extends KeyValuePersistentEntity<?,P>,P extends KeyValuePersistentProperty<P>>
extends AbstractMappingContext<E,P>
Default implementation of a
MappingContext using KeyValuePersistentEntity and
KeyValuePersistentProperty as primary abstractions.- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> EcreatePersistentEntity(TypeInformation<T> typeInformation) protected PcreatePersistentProperty(Property property, E owner, SimpleTypeHolder simpleTypeHolder) voidsetFallbackKeySpaceResolver(KeySpaceResolver fallbackKeySpaceResolver) Deprecated.voidsetKeySpaceResolver(KeySpaceResolver keySpaceResolver) Configures theKeySpaceResolverto be used.Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setBeanFactory, setEnvironment, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor, shouldCreatePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
KeyValueMappingContext
public KeyValueMappingContext()
-
-
Method Details
-
setFallbackKeySpaceResolver
@Deprecated(since="3.1") public void setFallbackKeySpaceResolver(KeySpaceResolver fallbackKeySpaceResolver) Deprecated.since 3.1, useKeySpaceResolverinstead.Configures theKeySpaceResolverto be used if not explicit key space is annotated to the domain type.- Parameters:
fallbackKeySpaceResolver- can be null.
-
setKeySpaceResolver
Configures theKeySpaceResolverto be used. Configuring aKeySpaceResolverdisables SpEL evaluation abilities.- Parameters:
keySpaceResolver- can be null.- Since:
- 3.1
-
getKeySpaceResolver
- Returns:
- the current
KeySpaceResolver. Can be null. - Since:
- 3.1
-
createPersistentEntity
- Specified by:
createPersistentEntityin classAbstractMappingContext<E extends KeyValuePersistentEntity<?,P>, P extends KeyValuePersistentProperty<P>>
-
createPersistentProperty
- Specified by:
createPersistentPropertyin classAbstractMappingContext<E extends KeyValuePersistentEntity<?,P>, P extends KeyValuePersistentProperty<P>>
-
KeySpaceResolverinstead.