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 |
|---|---|
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 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.
|
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 |
isMapped()
True if property corresponds to a column a Cloud Spanner
table or child entities stored in Cloud Spanner.
|
findAnnotation, findPropertyOrOwnerAnnotation, 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.com.google.cloud.spanner.Type.Code getAnnotatedColumnItemType()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.