public class SpannerPersistentPropertyImpl extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty> implements SpannerPersistentProperty
SpannerPersistentProperty, which is a property
of a SpannerPersistentEntity stored in a Cloud Spanner table.| Type | Property and Description |
|---|---|
boolean |
isId
Gets the value of the property idProperty.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.mapping.Association<SpannerPersistentProperty> |
createAssociation() |
com.google.cloud.spanner.Type.Code |
getAnnotatedColumnItemType()
Optionally directly specify the column type in Cloud Spanner.
|
Class<?> |
getColumnInnerType()
Gets the inner type of the column, which is meaningful for columns of type ARRAY in
Google Cloud Spanner.
|
String |
getColumnName()
Gets the name of the column in the Cloud Spanner table mapped to this property.
|
OptionalLong |
getMaxColumnLength()
Gets the maximum data length of the column if provided.
|
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 |
isCommitTimestamp()
If the column is a Cloud Spanner commit timestamp auto-populating column.
|
boolean |
isEmbedded()
True if the property is an embedded class containing more columns.
|
boolean |
isGenerateSchemaNotNull()
If the column's schema should be NOT NULL when generating a schema based on an
entity class.
|
boolean |
isIdProperty()
Gets the value of the property idProperty.
|
boolean |
isInterleaved()
True if property is a collection of child entities.
|
boolean |
isMapped()
True if property corresponds to a column a Cloud Spanner
table or child entities stored in Cloud Spanner.
|
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessequals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccesspublic boolean isIdProperty
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>isIdProperty in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty>public Iterable<? extends org.springframework.data.util.TypeInformation<?>> getPersistentEntityTypes()
Table.getPersistentEntityTypes in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>getPersistentEntityTypes in class org.springframework.data.mapping.model.AbstractPersistentProperty<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 SpannerPersistentPropertyorg.springframework.data.mapping.MappingException - if the resolution failspublic Class<?> getColumnInnerType()
SpannerPersistentPropertygetColumnInnerType in interface SpannerPersistentPropertypublic OptionalInt getPrimaryKeyOrder()
SpannerPersistentPropertygetPrimaryKeyOrder in interface SpannerPersistentPropertypublic boolean isMapped()
SpannerPersistentPropertyisMapped in interface SpannerPersistentPropertypublic boolean isEmbedded()
SpannerPersistentPropertyisEmbedded in interface SpannerPersistentPropertypublic boolean isInterleaved()
SpannerPersistentPropertyisInterleaved in interface SpannerPersistentPropertypublic OptionalLong getMaxColumnLength()
SpannerPersistentPropertygetMaxColumnLength in interface SpannerPersistentPropertypublic boolean isGenerateSchemaNotNull()
SpannerPersistentPropertyisGenerateSchemaNotNull in interface SpannerPersistentPropertytrue if the column should be NOT NULL in generated DDL.
false otherwise.public boolean isCommitTimestamp()
SpannerPersistentPropertyisCommitTimestamp in interface SpannerPersistentPropertytrue if the property is an auto-populated commit timestamp.
false otherwise.public com.google.cloud.spanner.Type.Code getAnnotatedColumnItemType()
SpannerPersistentPropertygetAnnotatedColumnItemType in interface SpannerPersistentPropertypublic boolean isIdProperty()
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>isIdProperty in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty>Copyright © 2019 Pivotal Software, Inc.. All rights reserved.