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,InitializingBean,ApplicationContextAware,ApplicationEventPublisherAware,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) Configures theKeySpaceResolverto be used if not explicit key space is annotated to the domain type.Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityForMethods 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
Configures theKeySpaceResolverto be used if not explicit key space is annotated to the domain type.- Parameters:
fallbackKeySpaceResolver- can be null.
-
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>>
-