public class SpannerCompositeKeyProperty extends Object implements SpannerPersistentProperty
| 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() |
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() |
String |
getWhere()
Returns
WHERE clause of the interleaved property or empty string if no value. |
Method |
getWither()
Returns
null. |
boolean |
hasWhere()
Returns true when the property has an annotation
Where with a non-empty value. |
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 |
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 |
isEntity() |
boolean |
isGenerateSchemaNotNull()
If the column's schema should be NOT NULL when generating a schema based on an
entity class.
|
boolean |
isIdProperty() |
boolean |
isImmutable()
Returns
false. |
boolean |
isInterleaved()
True if property is a collection of child entities.
|
boolean |
isLazyInterleaved()
Return whether this property is a lazily-fetched interleaved property.
|
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() |
boolean |
isWritable() |
boolean |
usePropertyAccess() |
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 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 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 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 © 2020 Pivotal Software, Inc.. All rights reserved.