public class SpannerCompositeKeyProperty extends Object implements SpannerPersistentProperty
| Type | Property and Description |
|---|---|
boolean |
isId
Gets the value of the property idProperty.
|
boolean |
isVersion
Gets the value of the property versionProperty.
|
| Constructor and Description |
|---|
SpannerCompositeKeyProperty(SpannerPersistentEntity spannerPersistentEntity,
SpannerPersistentProperty[] primaryKeyColumns) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
findAnnotation(Class<A> annotationType) |
<A extends Annotation> |
findPropertyOrOwnerAnnotation(Class<A> annotationType) |
Class<?> |
getActualType() |
com.google.cloud.spanner.Type.Code |
getAnnotatedColumnItemType()
Optionally directly specify the column type in Cloud Spanner.
|
org.springframework.data.mapping.Association<SpannerPersistentProperty> |
getAssociation() |
Class<?> |
getAssociationTargetType()
Returns
null. |
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.
|
Class<?> |
getComponentType() |
Field |
getField() |
Method |
getGetter() |
Class<?> |
getMapValueType() |
OptionalLong |
getMaxColumnLength()
Gets the maximum data length of the column if provided.
|
String |
getName() |
org.springframework.data.mapping.PersistentEntity<?,SpannerPersistentProperty> |
getOwner() |
Iterable<? extends org.springframework.data.util.TypeInformation<?>> |
getPersistentEntityTypes() |
OptionalInt |
getPrimaryKeyOrder()
Gets the order of this column if it is part of the table's primary key.
|
Class<?> |
getRawType() |
Method |
getSetter() |
String |
getSpelExpression() |
Class<?> |
getType() |
org.springframework.data.util.TypeInformation<?> |
getTypeInformation() |
Method |
getWither()
Returns
null. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
boolean |
isArray() |
boolean |
isAssociation() |
boolean |
isCollectionLike() |
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 |
isEntity() |
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 |
isImmutable()
Returns
false. |
boolean |
isInterleaved()
True if property is a collection of child entities.
|
boolean |
isMap() |
boolean |
isMapped()
True if property corresponds to a column a Cloud Spanner
table or child entities stored in Cloud Spanner.
|
boolean |
isTransient() |
boolean |
isVersionProperty()
Gets the value of the property versionProperty.
|
boolean |
isWritable() |
boolean |
usePropertyAccess() |
public boolean isIdProperty
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isVersionProperty
isVersionProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public SpannerCompositeKeyProperty(SpannerPersistentEntity spannerPersistentEntity, SpannerPersistentProperty[] primaryKeyColumns)
public String getColumnName()
SpannerPersistentPropertygetColumnName in interface SpannerPersistentPropertypublic 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 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 OptionalLong getMaxColumnLength()
SpannerPersistentPropertygetMaxColumnLength in interface SpannerPersistentPropertypublic org.springframework.data.mapping.PersistentEntity<?,SpannerPersistentProperty> getOwner()
getOwner in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public String getName()
getName in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public Class<?> getType()
getType in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public org.springframework.data.util.TypeInformation<?> getTypeInformation()
getTypeInformation in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public Iterable<? extends org.springframework.data.util.TypeInformation<?>> getPersistentEntityTypes()
getPersistentEntityTypes in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public Method getGetter()
getGetter in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public Method getSetter()
getSetter in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public Field getField()
getField in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public String getSpelExpression()
getSpelExpression in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public org.springframework.data.mapping.Association<SpannerPersistentProperty> getAssociation()
getAssociation in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isEntity()
isEntity in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isIdProperty()
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isVersionProperty()
isVersionProperty in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isCollectionLike()
isCollectionLike in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isMap()
isMap in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isArray()
isArray in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isTransient()
isTransient in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isWritable()
isWritable in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isAssociation()
isAssociation in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public Class<?> getComponentType()
getComponentType in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public Class<?> getRawType()
getRawType in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public Class<?> getMapValueType()
getMapValueType in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public Class<?> getActualType()
getActualType in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public <A extends Annotation> A findAnnotation(Class<A> annotationType)
findAnnotation in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>@Nullable public <A extends Annotation> A findPropertyOrOwnerAnnotation(Class<A> annotationType)
findPropertyOrOwnerAnnotation in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean usePropertyAccess()
usePropertyAccess in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public Class<?> getAssociationTargetType()
null.getAssociationTargetType in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public boolean isImmutable()
false.isImmutable in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>public Method getWither()
null.getWither in interface org.springframework.data.mapping.PersistentProperty<SpannerPersistentProperty>Copyright © 2019 Pivotal Software, Inc.. All rights reserved.