public class SpannerPersistentPropertyImpl extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty> implements SpannerPersistentProperty
SpannerPersistentProperty
, which is a property of a
SpannerPersistentEntity
stored in a Google Spanner table.Type | Property and Description |
---|---|
boolean |
isId
Gets the value of the property idProperty.
|
Constructor and Description |
---|
SpannerPersistentPropertyImpl(org.springframework.data.mapping.model.Property property,
org.springframework.data.mapping.PersistentEntity<?,SpannerPersistentProperty> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
Creates a new
SpannerPersistentPropertyImpl |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.mapping.Association<SpannerPersistentProperty> |
createAssociation() |
Class |
getColumnInnerType()
Gets the inner type of the column, which is meaningful for columns of type ARRAY in Google
Spanner.
|
String |
getColumnName()
Gets the name of the column in the Google Spanner table mapped to this property.
|
Iterable<? extends org.springframework.data.util.TypeInformation<?>> |
getPersistentEntityTypes()
Only provides types that are also annotated with
Table . |
OptionalInt |
getPrimaryKeyOrder()
Gets the order of this column if it is part of the table's primary key.
|
boolean |
isIdProperty()
Gets the value of the property idProperty.
|
findAnnotation, findPropertyOrOwnerAnnotation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
equals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getProperty, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
public boolean isIdProperty
isIdProperty
in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>
isIdProperty
in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty>
public SpannerPersistentPropertyImpl(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?,SpannerPersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder, org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
SpannerPersistentPropertyImpl
property
- the property to storeowner
- the entity to which this property belongssimpleTypeHolder
- fieldNamingStrategy
- the naming strategy used to get the column name of this propertypublic Iterable<? extends org.springframework.data.util.TypeInformation<?>> getPersistentEntityTypes()
Table
.getPersistentEntityTypes
in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>
protected org.springframework.data.mapping.Association<SpannerPersistentProperty> createAssociation()
createAssociation
in class org.springframework.data.mapping.model.AbstractPersistentProperty<SpannerPersistentProperty>
public String getColumnName()
FieldNamingStrategy
passed in to the
SpannerPersistentPropertyImpl(Property, PersistentEntity,
SimpleTypeHolder, FieldNamingStrategy)
constructor.
This is by default the by defaultgetColumnName
in interface SpannerPersistentProperty
{@link
- MappingException} if the resolution failspublic Class getColumnInnerType()
SpannerPersistentProperty
getColumnInnerType
in interface SpannerPersistentProperty
public OptionalInt getPrimaryKeyOrder()
SpannerPersistentProperty
getPrimaryKeyOrder
in interface SpannerPersistentProperty
public boolean isIdProperty()
isIdProperty
in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>
isIdProperty
in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty>
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.