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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setApplicationContext
(ApplicationContext applicationContext) void
setFieldNamingStrategy
(FieldNamingStrategy fieldNamingStrategy) Configures theFieldNamingStrategy
to 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, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
AerospikeMappingContext
public AerospikeMappingContext()
-
-
Method Details
-
setFieldNamingStrategy
Configures theFieldNamingStrategy
to be used to determine the field name if no manual mapping is applied. Defaults to a strategy using the plain property name.- Parameters:
fieldNamingStrategy
- theFieldNamingStrategy
to be used to determine the field name if no manual mapping is applied.
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Overrides:
setApplicationContext
in classAbstractMappingContext<BasicAerospikePersistentEntity<?>,
AerospikePersistentProperty> - Throws:
BeansException
-