T - the underlying persistent entity typepublic interface SpannerPersistentEntity<T> extends org.springframework.data.mapping.model.MutablePersistentEntity<T,SpannerPersistentProperty>, org.springframework.context.ApplicationContextAware
MutablePersistentEntity stored in a Cloud
Spanner table.| Modifier and Type | Method and Description |
|---|---|
Set<String> |
columns()
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. |
List<SpannerPersistentProperty> |
getFlattenedPrimaryKeyProperties()
Gets the primary key properties in order.
|
SpannerCompositeKeyProperty |
getIdProperty() |
SpannerPersistentProperty[] |
getPrimaryKeyProperties()
Gets the primary key properties in order.
|
SpannerEntityWriter |
getSpannerEntityWriter()
Gets a SpannerEntityWriter that can be used to create Cloud Spanner keys from one or
more persistent properties.
|
SpannerMappingContext |
getSpannerMappingContext()
Gets the SpannerMappingContext that can be used to create persistent entities of
types that appear as properties of this entity.
|
String |
tableName()
Gets the name of the Cloud Spanner table.
|
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifydoWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationforEach, iterator, spliteratorString tableName()
Set<String> columns()
SpannerPersistentProperty[] getPrimaryKeyProperties()
List<SpannerPersistentProperty> getFlattenedPrimaryKeyProperties()
SpannerMappingContext getSpannerMappingContext()
SpannerEntityWriter getSpannerEntityWriter()
SpannerCompositeKeyProperty getIdProperty()
getIdProperty in interface org.springframework.data.mapping.PersistentEntity<T,SpannerPersistentProperty>void doWithInterleavedProperties(org.springframework.data.mapping.PropertyHandler<SpannerPersistentProperty> handler)
PropertyHandler to all SpannerPersistentPropertys
contained in this SpannerPersistentProperty that are collections of child
entities.handler - must not be null.void doWithColumnBackedProperties(org.springframework.data.mapping.PropertyHandler<SpannerPersistentProperty> handler)
PropertyHandler to all SpannerPersistentPropertys
contained in this SpannerPersistentProperty that are stored as columns in
the table for this entity.handler - must not be null.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.