Uses of Interface
com.google.cloud.spring.data.spanner.core.mapping.SpannerPersistentEntity
Package
Description
Classes related to type and Spring Data metadata in Cloud Spanner support for Spring Data.
Classes related to generated Query Methods in Cloud Spanner support for Spring Data.
-
Uses of SpannerPersistentEntity in com.google.cloud.spring.data.spanner.core.mapping
Modifier and TypeClassDescriptionclass
Represents a Cloud Spanner table and its columns' mapping to fields within an entity type.Modifier and TypeMethodDescriptionprotected <T> SpannerPersistentEntity<T>
SpannerMappingContext.createPersistentEntity
(org.springframework.data.util.TypeInformation<T> typeInformation) SpannerMappingContext.getPersistentEntityOrFail
(Class<?> entityClass) Modifier and TypeMethodDescriptionprotected SpannerPersistentProperty
SpannerMappingContext.createPersistentProperty
(org.springframework.data.mapping.model.Property property, SpannerPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) ModifierConstructorDescriptionSpannerCompositeKeyProperty
(SpannerPersistentEntity spannerPersistentEntity, SpannerPersistentProperty[] primaryKeyColumns) Creates a newSpannerPersistentEntityInformation
for the givenSpannerPersistentEntity
. -
Uses of SpannerPersistentEntity in com.google.cloud.spring.data.spanner.repository.query
Modifier and TypeMethodDescriptionstatic StringBuilder
SpannerStatementQueryExecutor.applySort
(org.springframework.data.domain.Sort sort, StringBuilder sql, SpannerPersistentEntity<?> persistentEntity) static <T> com.google.cloud.spanner.Statement
SpannerStatementQueryExecutor.buildQuery
(com.google.cloud.spanner.KeySet keySet, SpannerPersistentEntity<T> persistentEntity, SpannerCustomConverter writeConverter, SpannerMappingContext mappingContext) Builds a query that returns the rows associated with a key set.static <T> com.google.cloud.spanner.Statement
SpannerStatementQueryExecutor.buildQuery
(com.google.cloud.spanner.KeySet keySet, SpannerPersistentEntity<T> persistentEntity, SpannerCustomConverter writeConverter, SpannerMappingContext mappingContext, String whereClause) Builds a query that returns the rows associated with a key set with additional SQL-where.static <T> com.google.cloud.spanner.Statement
SpannerStatementQueryExecutor.buildQuery
(com.google.cloud.spanner.KeySet keySet, SpannerPersistentEntity<T> persistentEntity, SpannerCustomConverter writeConverter, SpannerMappingContext mappingContext, String whereClause, String index) Builds a query that returns the rows associated with a key set with additional SQL-where.static String
SpannerStatementQueryExecutor.buildWhere
(SpannerPersistentEntity<?> entity) Builds an SQL where clause for the persistent entity.static String
SpannerStatementQueryExecutor.getColumnsStringForSelect
(SpannerPersistentEntity<?> spannerPersistentEntity, SpannerMappingContext mappingContext, boolean fetchInterleaved)