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() |
org.springframework.data.mapping.Association<SpannerPersistentProperty> |
getAssociation() |
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<?>> |
getPersistentEntityType()
Deprecated.
|
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() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
boolean |
isArray() |
boolean |
isAssociation() |
boolean |
isCollectionLike() |
boolean |
isEntity() |
boolean |
isIdProperty()
Gets the value of the property idProperty.
|
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 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>@Deprecated public Iterable<? extends org.springframework.data.util.TypeInformation<?>> getPersistentEntityType()
getPersistentEntityType 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>Copyright © 2018 Pivotal Software, Inc.. All rights reserved.