Class AerospikeMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<BasicAerospikePersistentEntity<?>,AerospikePersistentProperty>
org.springframework.data.aerospike.mapping.AerospikeMappingContext
- All Implemented Interfaces:
Aware,InitializingBean,ApplicationContextAware,ApplicationEventPublisherAware,MappingContext<BasicAerospikePersistentEntity<?>,AerospikePersistentProperty>
public class AerospikeMappingContext
extends AbstractMappingContext<BasicAerospikePersistentEntity<?>,AerospikePersistentProperty>
implements ApplicationContextAware
An Aerospike-specific implementation of
MappingContext.- Author:
- Oliver Gierke, Peter Milne
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApplicationContext(ApplicationContext applicationContext) voidsetFieldNamingStrategy(FieldNamingStrategy fieldNamingStrategy) Configures theFieldNamingStrategyto be used to determine the field name if no manual mapping is applied.Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
afterPropertiesSet, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrictMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
AerospikeMappingContext
public AerospikeMappingContext()
-
-
Method Details
-
setFieldNamingStrategy
Configures theFieldNamingStrategyto be used to determine the field name if no manual mapping is applied. Defaults to a strategy using the plain property name.- Parameters:
fieldNamingStrategy- theFieldNamingStrategyto be used to determine the field name if no manual mapping is applied.
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Overrides:
setApplicationContextin classAbstractMappingContext<BasicAerospikePersistentEntity<?>,AerospikePersistentProperty> - Throws:
BeansException
-