Class RedisMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
org.springframework.data.redis.core.mapping.RedisMappingContext
- All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, EnvironmentAware, MappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
public class RedisMappingContext
extends KeyValueMappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
Redis specific
MappingContext.- Since:
- 1.7
- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCreates newRedisMappingContextwith emptyMappingConfiguration.RedisMappingContext(@Nullable MappingConfiguration mappingConfiguration) Creates newRedisMappingContext. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> RedisPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) protected RedisPersistentPropertycreatePersistentProperty(Property property, RedisPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) Get theMappingConfigurationused.protected booleanshouldCreatePersistentEntityFor(TypeInformation<?> typeInformation) Methods inherited from class KeyValueMappingContext
getKeySpaceResolver, setFallbackKeySpaceResolver, setKeySpaceResolverMethods inherited from class AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setBeanFactory, setEnvironment, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
RedisMappingContext
public RedisMappingContext()Creates newRedisMappingContextwith emptyMappingConfiguration. -
RedisMappingContext
Creates newRedisMappingContext.- Parameters:
mappingConfiguration- can be null.
-
-
Method Details
-
createPersistentEntity
- Overrides:
createPersistentEntityin classKeyValueMappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
-
shouldCreatePersistentEntityFor
- Overrides:
shouldCreatePersistentEntityForin classAbstractMappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
-
createPersistentProperty
protected RedisPersistentProperty createPersistentProperty(Property property, RedisPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) - Overrides:
createPersistentPropertyin classKeyValueMappingContext<RedisPersistentEntity<?>, RedisPersistentProperty>
-
getMappingConfiguration
Get theMappingConfigurationused.- Returns:
- never null.
-