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) |
Iterable<String> |
columns()
Gets the column names stored for this entity.
|
SpannerPersistentProperty |
getIdProperty() |
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, setPersistentPropertyAccessorFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAssociation, setPersistentPropertyAccessorFactory
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionProperty
forEach, iterator, spliterator
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 SpannerPersistentEntityImpl(org.springframework.data.util.TypeInformation<T> information)
SpannerPersistentEntityImpl
information
- 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 String tableName()
SpannerPersistentEntity
tableName
in interface SpannerPersistentEntity<T>
public Iterable<String> columns()
SpannerPersistentEntity
columns
in interface SpannerPersistentEntity<T>
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public 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.