Class DatastorePersistentEntityImpl<T>

java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,DatastorePersistentProperty>
com.google.cloud.spring.data.datastore.core.mapping.DatastorePersistentEntityImpl<T>
Type Parameters:
T - the type of the persistent entity
All Implemented Interfaces:
DatastorePersistentEntity<T>, Iterable<DatastorePersistentProperty>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.data.mapping.model.MutablePersistentEntity<T,DatastorePersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,DatastorePersistentProperty>

public class DatastorePersistentEntityImpl<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,DatastorePersistentProperty> implements DatastorePersistentEntity<T>
Metadata class for entities stored in Datastore.
Since:
1.1
  • Constructor Summary

    Constructors
    Constructor
    Description
    DatastorePersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information, DatastoreMappingContext datastoreMappingContext)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doWithColumnBackedProperties(org.springframework.data.mapping.PropertyHandler<DatastorePersistentProperty> handler)
    Applies the given PropertyHandler to all DatastorePersistentProperty contained in this DatastorePersistentEntity that are stored as columns in the table for this entity.
    void
    doWithDescendantProperties(org.springframework.data.mapping.PropertyHandler<DatastorePersistentProperty> handler)
    Applies the given PropertyHandler to all DatastorePersistentProperty contained in this DatastorePersistentEntity that are properties backed by descendants.
    Get the discrimination values corresponding to this persistent entity ad its supertypes.
    Get the name of the field for subtype discrimination if there is one.
    Get the discrimination value corresponding to this persistent entity type.
    Gets the ID property, and will throw DatastoreDataException if the entity does not have an ID property.
    protected boolean
     
    Gets the name of the Datastore Kind.
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    void
     

    Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity

    addAssociation, addPersistentProperty, 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

    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, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory

    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