public class SpannerMappingContext extends org.springframework.data.mapping.context.AbstractMappingContext<SpannerPersistentEntity<?>,SpannerPersistentProperty> implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpannerMappingContext() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> SpannerPersistentEntityImpl<T> |
constructPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
protected <T> SpannerPersistentEntity<T> |
createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
protected SpannerPersistentProperty |
createPersistentProperty(org.springframework.data.mapping.model.Property property,
SpannerPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
org.springframework.data.mapping.model.FieldNamingStrategy |
getFieldNamingStrategy()
Gets the field naming strategy used by this mapping context.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setFieldNamingStrategy(org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
Set the field naming strategy used when creating persistent properties.
|
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityForpublic void setFieldNamingStrategy(org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
fieldNamingStrategy - the field naming strategy passed used by created persistent
properties get column names.public org.springframework.data.mapping.model.FieldNamingStrategy getFieldNamingStrategy()
protected <T> SpannerPersistentEntity<T> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
createPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<SpannerPersistentEntity<?>,SpannerPersistentProperty>protected <T> SpannerPersistentEntityImpl<T> constructPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
protected SpannerPersistentProperty createPersistentProperty(org.springframework.data.mapping.model.Property property, SpannerPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
createPersistentProperty in class org.springframework.data.mapping.context.AbstractMappingContext<SpannerPersistentEntity<?>,SpannerPersistentProperty>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.