Class FirestorePersistentEntityImpl<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,FirestorePersistentProperty>
com.google.cloud.spring.data.firestore.mapping.FirestorePersistentEntityImpl<T>
- Type Parameters:
T- the type of the persistent entity
- All Implemented Interfaces:
FirestorePersistentEntity<T>,Iterable<FirestorePersistentProperty>,org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware,org.springframework.data.mapping.model.MutablePersistentEntity<T,,FirestorePersistentProperty> org.springframework.data.mapping.PersistentEntity<T,FirestorePersistentProperty>
public class FirestorePersistentEntityImpl<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,FirestorePersistentProperty>
implements FirestorePersistentEntity<T>
Metadata class for entities stored in Datastore.
- Since:
- 1.2
-
Constructor Summary
ConstructorsConstructorDescriptionFirestorePersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information) -
Method Summary
Modifier and TypeMethodDescriptionvoidGets the name of the Firestore Collection.Gets the ID property, and will throwExceptionif the entity does not have an ID property.Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.EnvironmentAware
setEnvironmentMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity
addAssociation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Constructor Details
-
FirestorePersistentEntityImpl
-
-
Method Details
-
collectionName
Description copied from interface:FirestorePersistentEntityGets the name of the Firestore Collection.- Specified by:
collectionNamein interfaceFirestorePersistentEntity<T>- Returns:
- the name of the Firestore Collection that stores these entities.
-
getIdPropertyOrFail
Description copied from interface:FirestorePersistentEntityGets the ID property, and will throwExceptionif the entity does not have an ID property.- Specified by:
getIdPropertyOrFailin interfaceFirestorePersistentEntity<T>- Returns:
- the ID property.
-
getUpdateTimeProperty
- Specified by:
getUpdateTimePropertyin interfaceFirestorePersistentEntity<T>
-
addPersistentProperty
- Specified by:
addPersistentPropertyin interfaceorg.springframework.data.mapping.model.MutablePersistentEntity<T,FirestorePersistentProperty> - Overrides:
addPersistentPropertyin classorg.springframework.data.mapping.model.BasicPersistentEntity<T,FirestorePersistentProperty>
-