Class FirestoreMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<FirestorePersistentEntity<?>,FirestorePersistentProperty>
com.google.cloud.spring.data.firestore.mapping.FirestoreMappingContext
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.data.mapping.context.MappingContext<FirestorePersistentEntity<?>,
FirestorePersistentProperty>
public class FirestoreMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<FirestorePersistentEntity<?>,FirestorePersistentProperty>
implements org.springframework.context.ApplicationContextAware
A mapping context for Firestore that provides ways to create persistent entities and properties.
- Since:
- 1.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> FirestorePersistentEntity<?>
createPersistentEntity
(org.springframework.data.util.TypeInformation<T> typeInformation) protected FirestorePersistentProperty
createPersistentProperty
(org.springframework.data.mapping.model.Property property, FirestorePersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
FirestoreMappingContext
public FirestoreMappingContext()
-
-
Method Details
-
createPersistentEntity
protected <T> FirestorePersistentEntity<?> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) - Specified by:
createPersistentEntity
in classorg.springframework.data.mapping.context.AbstractMappingContext<FirestorePersistentEntity<?>,
FirestorePersistentProperty>
-
createPersistentProperty
protected FirestorePersistentProperty createPersistentProperty(org.springframework.data.mapping.model.Property property, FirestorePersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) - Specified by:
createPersistentProperty
in classorg.springframework.data.mapping.context.AbstractMappingContext<FirestorePersistentEntity<?>,
FirestorePersistentProperty>
-