Class SpannerPersistentEntityImpl<T>

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

public class SpannerPersistentEntityImpl<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty> implements SpannerPersistentEntity<T>
Represents a Cloud Spanner table and its columns' mapping to fields within an entity type.
Since:
1.1
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpannerPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information, SpannerMappingContext spannerMappingContext, SpannerEntityProcessor spannerEntityProcessor)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Gets the column names stored for this entity.
    void
    doWithColumnBackedProperties(org.springframework.data.mapping.PropertyHandler<SpannerPersistentProperty> handler)
    Applies the given PropertyHandler to all SpannerPersistentPropertys contained in this SpannerPersistentProperty that are stored as columns in the table for this entity.
    void
    doWithInterleavedProperties(org.springframework.data.mapping.PropertyHandler<SpannerPersistentProperty> handler)
    Applies the given PropertyHandler to all SpannerPersistentPropertys contained in this SpannerPersistentProperty that are collections of child entities.
    Gets the primary key properties in order.
     
    Returns a primary key column name; if there are multiple primary key columns, returns first one.
    Gets the primary key properties in order.
    <B> org.springframework.data.mapping.PersistentPropertyAccessor<B>
     
    Gets a SpannerEntityProcessor that can be used to create Cloud Spanner keys from one or more persistent properties.
    Gets the SpannerMappingContext that can be used to create persistent entities of types that appear as properties of this entity.
    Returns the value of the Where annotation from the entity's class or inherited from parents or an empty string when no annotation found.
    protected boolean
     
    boolean
    Returns true if the entity has at least one eagerly load interleaved property.
    boolean
     
    boolean
    Returns true if the entity has a muti-field key.
    boolean
    Returns true when the entity has an annotation Where with a non-empty value.
    boolean
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    Gets the name of the Cloud Spanner table.
    void
     

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

    addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory

    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.EnvironmentAware

    setEnvironment

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator

    Methods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity

    addAssociation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory

    Methods inherited from interface org.springframework.data.mapping.PersistentEntity

    doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation