public interface SpannerPersistentProperty extends org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>
PersistentProperty of a SpannerPersistentEntity
to be stored in a Google Cloud Spanner table.| Modifier and Type | Method and Description |
|---|---|
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 Google Cloud Spanner table mapped to this property.
|
OptionalLong |
getMaxColumnLength()
Gets the maximum data length of the column if provided.
|
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 |
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, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccessString getColumnName()
Class<?> getColumnInnerType()
OptionalInt getPrimaryKeyOrder()
OptionalLong getMaxColumnLength()
boolean isMapped()
boolean isEmbedded()
boolean isInterleaved()
boolean isGenerateSchemaNotNull()
true if the column should be NOT NULL in generated DDL.
false otherwise.boolean isCommitTimestamp()
true if the property is an auto-populated commit timestamp.
false otherwise.Type.Code getAnnotatedColumnItemType()
boolean isLazyInterleaved()
true if the property is lazily-fetched. false otherwise.boolean isEagerInterleaved()
true if the property is eagerly-fetched. false otherwise.String getWhere()
WHERE clause of the interleaved property or empty string if no value.WHERE clause of the interleaved property or empty string.hasWhere()boolean hasWhere()
Where with a non-empty value.Where with a non-empty value.getWhere()Copyright © 2020 Pivotal Software, Inc.. All rights reserved.