public class RedisMappingContext
extends org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContext
MappingContext.| Constructor and Description |
|---|
RedisMappingContext()
Creates new
RedisMappingContext with empty MappingConfiguration. |
RedisMappingContext(MappingConfiguration mappingConfiguration)
Creates new
RedisMappingContext. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> RedisPersistentEntity<T> |
createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
protected org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty |
createPersistentProperty(Field field,
PropertyDescriptor descriptor,
org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
MappingConfiguration |
getMappingConfiguration()
Get the
MappingConfiguration used. |
RedisPersistentEntity<?> |
getPersistentEntity(Class<?> type) |
RedisPersistentEntity<?> |
getPersistentEntity(org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty persistentProperty) |
RedisPersistentEntity<?> |
getPersistentEntity(org.springframework.data.util.TypeInformation<?> type) |
void |
setFallbackKeySpaceResolver(org.springframework.data.keyvalue.core.mapping.KeySpaceResolver fallbackKeySpaceResolver)
Configures the
KeySpaceResolver to be used if not explicit key space is annotated to the domain type. |
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getManagedTypes, getPersistentEntities, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityForpublic RedisMappingContext()
RedisMappingContext with empty MappingConfiguration.public RedisMappingContext(MappingConfiguration mappingConfiguration)
RedisMappingContext.mappingConfiguration - can be null.public void setFallbackKeySpaceResolver(org.springframework.data.keyvalue.core.mapping.KeySpaceResolver fallbackKeySpaceResolver)
KeySpaceResolver to be used if not explicit key space is annotated to the domain type.setFallbackKeySpaceResolver in class org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContextfallbackKeySpaceResolver - can be null.protected <T> RedisPersistentEntity<T> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
createPersistentEntity in class org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContextpublic RedisPersistentEntity<?> getPersistentEntity(Class<?> type)
getPersistentEntity in interface org.springframework.data.mapping.context.MappingContext<org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?>,org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty>getPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?>,org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty>public RedisPersistentEntity<?> getPersistentEntity(org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty persistentProperty)
getPersistentEntity in interface org.springframework.data.mapping.context.MappingContext<org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?>,org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty>getPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?>,org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty>public RedisPersistentEntity<?> getPersistentEntity(org.springframework.data.util.TypeInformation<?> type)
getPersistentEntity in interface org.springframework.data.mapping.context.MappingContext<org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?>,org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty>getPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?>,org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty>protected org.springframework.data.keyvalue.core.mapping.KeyValuePersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor, org.springframework.data.keyvalue.core.mapping.KeyValuePersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
createPersistentProperty in class org.springframework.data.keyvalue.core.mapping.context.KeyValueMappingContextpublic MappingConfiguration getMappingConfiguration()
MappingConfiguration used.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.