public class SpannerPersistentEntityImpl<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty> implements SpannerPersistentEntity<T>
| Type | Property and Description |
|---|---|
boolean |
hasId |
| Constructor and Description |
|---|
SpannerPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
Creates a
SpannerPersistentEntityImpl |
| Modifier and Type | Method and Description |
|---|---|
void |
addPersistentProperty(SpannerPersistentProperty property) |
Set<String> |
columns()
Gets the column names stored for this entity.
|
SpannerPersistentProperty |
getIdProperty() |
SpannerPersistentProperty[] |
getPrimaryKeyProperties()
Gets the primary key properties in order.
|
org.springframework.data.mapping.PersistentPropertyAccessor |
getPropertyAccessor(Object object) |
boolean |
hasIdProperty() |
protected boolean |
hasTableName() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
String |
tableName()
Gets the name of the Spanner table.
|
void |
verify() |
addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionProperty, iterator, returnPropertyIfBetterIdPropertyCandidateOrNull, setPersistentPropertyAccessorFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAssociation, setPersistentPropertyAccessorFactorydoWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionPropertyforEach, iterator, spliteratorpublic boolean hasIdProperty
hasIdProperty in interface org.springframework.data.mapping.PersistentEntity<T,SpannerPersistentProperty>hasIdProperty in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty>public SpannerPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
SpannerPersistentEntityImplinformation - type information about the underlying entity type.protected boolean hasTableName()
public void addPersistentProperty(SpannerPersistentProperty property)
addPersistentProperty in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,SpannerPersistentProperty>addPersistentProperty in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty>public SpannerPersistentProperty getIdProperty()
getIdProperty in interface org.springframework.data.mapping.PersistentEntity<T,SpannerPersistentProperty>getIdProperty in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty>public boolean hasIdProperty()
hasIdProperty in interface org.springframework.data.mapping.PersistentEntity<T,SpannerPersistentProperty>hasIdProperty in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty>public void verify()
verify in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,SpannerPersistentProperty>verify in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty>public SpannerPersistentProperty[] getPrimaryKeyProperties()
SpannerPersistentEntitygetPrimaryKeyProperties in interface SpannerPersistentEntity<T>public String tableName()
SpannerPersistentEntitytableName in interface SpannerPersistentEntity<T>public Set<String> columns()
SpannerPersistentEntitycolumns in interface SpannerPersistentEntity<T>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.springframework.data.mapping.PersistentPropertyAccessor getPropertyAccessor(Object object)
getPropertyAccessor in interface org.springframework.data.mapping.PersistentEntity<T,SpannerPersistentProperty>getPropertyAccessor in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SpannerPersistentProperty>Copyright © 2018 Pivotal Software, Inc.. All rights reserved.