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() |
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()
Gets the value of the property idProperty.
|
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()
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()
SpannerPersistentProperty
getColumnName
in interface SpannerPersistentProperty
public Class getColumnInnerType()
SpannerPersistentProperty
getColumnInnerType
in interface SpannerPersistentProperty
public OptionalInt getPrimaryKeyOrder()
SpannerPersistentProperty
getPrimaryKeyOrder
in interface SpannerPersistentProperty
public boolean isMapped()
SpannerPersistentProperty
isMapped
in interface SpannerPersistentProperty
public boolean isEmbedded()
SpannerPersistentProperty
isEmbedded
in interface SpannerPersistentProperty
public boolean isInterleaved()
SpannerPersistentProperty
isInterleaved
in interface SpannerPersistentProperty
public boolean isGenerateSchemaNotNull()
SpannerPersistentProperty
isGenerateSchemaNotNull
in interface SpannerPersistentProperty
true
if the column should be NOT NULL in generated DDL.
false
otherwise.public boolean isCommitTimestamp()
SpannerPersistentProperty
isCommitTimestamp
in interface SpannerPersistentProperty
true
if the property is an auto-populated commit timestamp.
false
otherwise.public Type.Code getAnnotatedColumnItemType()
SpannerPersistentProperty
getAnnotatedColumnItemType
in interface SpannerPersistentProperty
public boolean isLazyInterleaved()
SpannerPersistentProperty
isLazyInterleaved
in interface SpannerPersistentProperty
true
if the property is lazily-fetched. false
otherwise.public boolean isEagerInterleaved()
SpannerPersistentProperty
isEagerInterleaved
in interface SpannerPersistentProperty
true
if the property is eagerly-fetched. false
otherwise.public String getWhere()
SpannerPersistentProperty
WHERE
clause of the interleaved property or empty string if no value.getWhere
in interface SpannerPersistentProperty
WHERE
clause of the interleaved property or empty string.SpannerPersistentProperty.hasWhere()
public boolean hasWhere()
SpannerPersistentProperty
Where
with a non-empty value.hasWhere
in interface SpannerPersistentProperty
Where
with a non-empty value.SpannerPersistentProperty.getWhere()
public OptionalLong getMaxColumnLength()
SpannerPersistentProperty
getMaxColumnLength
in interface SpannerPersistentProperty
public 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.