Class RedisMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<E,P>
org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext<RedisPersistentEntity<?>,RedisPersistentProperty>
org.springframework.data.redis.core.mapping.RedisMappingContext
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.data.mapping.context.MappingContext<RedisPersistentEntity<?>,RedisPersistentProperty>
public class RedisMappingContext
extends org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext<RedisPersistentEntity<?>,RedisPersistentProperty>
Redis specific
MappingContext.- Since:
- 1.7
- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCreates newRedisMappingContextwith emptyMappingConfiguration.RedisMappingContext(MappingConfiguration mappingConfiguration) Creates newRedisMappingContext. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> RedisPersistentEntity<T>createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) protected RedisPersistentPropertycreatePersistentProperty(org.springframework.data.mapping.model.Property property, RedisPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) Get theMappingConfigurationused.Methods inherited from class org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext
getKeySpaceResolver, setFallbackKeySpaceResolver, setKeySpaceResolverMethods 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
-
RedisMappingContext
public RedisMappingContext()Creates newRedisMappingContextwith emptyMappingConfiguration. -
RedisMappingContext
Creates newRedisMappingContext.- Parameters:
mappingConfiguration- can be null.
-
-
Method Details
-
createPersistentEntity
protected <T> RedisPersistentEntity<T> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) - Overrides:
createPersistentEntityin classorg.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext<RedisPersistentEntity<?>,RedisPersistentProperty>
-
createPersistentProperty
protected RedisPersistentProperty createPersistentProperty(org.springframework.data.mapping.model.Property property, RedisPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - Overrides:
createPersistentPropertyin classorg.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext<RedisPersistentEntity<?>,RedisPersistentProperty>
-
getMappingConfiguration
Get theMappingConfigurationused.- Returns:
- never null.
-