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.| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.mapping.Association<SpannerPersistentProperty> |
createAssociation() |
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.
|
String |
getWhere()
Returns
WHERE clause of the interleaved property or empty string if no value. |
boolean |
hasWhere()
Returns true when the property has an annotation
Where with a non-empty value. |
boolean |
isCommitTimestamp()
If the column is a Cloud Spanner commit timestamp auto-populating column.
|
boolean |
isEagerInterleaved()
Return whether this property is an eagerly-fetched interleaved property.
|
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() |
boolean |
isInterleaved()
True if property is a collection of child entities.
|
boolean |
isLazyInterleaved()
Return whether this property is a lazily-fetched interleaved property.
|
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, getAccessorForOwner, 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 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 String getWhere()
SpannerPersistentPropertyWHERE clause of the interleaved property or empty string if no value.getWhere in interface SpannerPersistentPropertyWHERE clause of the interleaved property or empty string.SpannerPersistentProperty.hasWhere()public boolean hasWhere()
SpannerPersistentPropertyWhere with a non-empty value.hasWhere in interface SpannerPersistentPropertyWhere with a non-empty value.SpannerPersistentProperty.getWhere()public Type.Code getAnnotatedColumnItemType()
SpannerPersistentPropertygetAnnotatedColumnItemType in interface SpannerPersistentPropertypublic boolean isLazyInterleaved()
SpannerPersistentPropertyisLazyInterleaved in interface SpannerPersistentPropertytrue if the property is lazily-fetched. false otherwise.public boolean isEagerInterleaved()
SpannerPersistentPropertyisEagerInterleaved in interface SpannerPersistentPropertytrue if the property is eagerly-fetched. false otherwise.public boolean isIdProperty()
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>isIdProperty in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SpannerPersistentProperty>Copyright © 2020 Pivotal Software, Inc.. All rights reserved.