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.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
ConstructorDescriptionFirestorePersistentEntityImpl
(org.springframework.data.util.TypeInformation<T> information) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the name of the Firestore Collection.Gets the ID property, and will throwException
if 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, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity
addAssociation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
Methods 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:FirestorePersistentEntity
Gets the name of the Firestore Collection.- Specified by:
collectionName
in interfaceFirestorePersistentEntity<T>
- Returns:
- the name of the Firestore Collection that stores these entities.
-
getIdPropertyOrFail
Description copied from interface:FirestorePersistentEntity
Gets the ID property, and will throwException
if the entity does not have an ID property.- Specified by:
getIdPropertyOrFail
in interfaceFirestorePersistentEntity<T>
- Returns:
- the ID property.
-
getUpdateTimeProperty
- Specified by:
getUpdateTimeProperty
in interfaceFirestorePersistentEntity<T>
-
addPersistentProperty
- Specified by:
addPersistentProperty
in interfaceorg.springframework.data.mapping.model.MutablePersistentEntity<T,
FirestorePersistentProperty> - Overrides:
addPersistentProperty
in classorg.springframework.data.mapping.model.BasicPersistentEntity<T,
FirestorePersistentProperty>
-