public class CachingCassandraPersistentProperty extends BasicCassandraPersistentProperty
BasicCassandraPersistentProperty that pre-computes primary key and embedded flags.| Constructor and Description |
|---|
CachingCassandraPersistentProperty(org.springframework.data.mapping.model.Property property,
CassandraPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedType |
findAnnotatedType(Class<? extends Annotation> annotationType)
Find an
AnnotatedType by annotationType derived from the property type. |
Ordering |
getPrimaryKeyOrdering()
The ordering (ascending or descending) for the column.
|
boolean |
isClusterKeyColumn()
Whether the property is a cluster key column.
|
boolean |
isCompositePrimaryKey()
Whether the property is a composite primary key.
|
boolean |
isEmbedded() |
boolean |
isPartitionKeyColumn()
Whether the property is a partition key column.
|
boolean |
isPrimaryKeyColumn()
Whether the property is a partition key column or a cluster key column
|
boolean |
isStaticColumn()
Whether the property maps to a static column.
|
createAssociation, getAssociation, getColumnName, getOrdinal, getOwner, hasExplicitColumnName, isMapLike, setApplicationContext, setColumnName, setForceQuote, setNamingStrategyfindAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessequals, getActualType, getActualTypeInformation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetRequiredColumnName, getRequiredOrdinal, setColumnNamefindAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, 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, usePropertyAccesspublic CachingCassandraPersistentProperty(org.springframework.data.mapping.model.Property property,
CassandraPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
@Nullable public Ordering getPrimaryKeyOrdering()
CassandraPersistentPropertygetPrimaryKeyOrdering in interface CassandraPersistentPropertygetPrimaryKeyOrdering in class BasicCassandraPersistentPropertypublic boolean isCompositePrimaryKey()
CassandraPersistentPropertyisCompositePrimaryKey in interface CassandraPersistentPropertyisCompositePrimaryKey in class BasicCassandraPersistentPropertypublic boolean isClusterKeyColumn()
CassandraPersistentPropertyisClusterKeyColumn in interface CassandraPersistentPropertyisClusterKeyColumn in class BasicCassandraPersistentPropertypublic boolean isPartitionKeyColumn()
CassandraPersistentPropertyisPartitionKeyColumn in interface CassandraPersistentPropertyisPartitionKeyColumn in class BasicCassandraPersistentPropertypublic boolean isPrimaryKeyColumn()
CassandraPersistentPropertyisPrimaryKeyColumn in interface CassandraPersistentPropertyisPrimaryKeyColumn in class BasicCassandraPersistentPropertyCassandraPersistentProperty.isPartitionKeyColumn(),
CassandraPersistentProperty.isClusterKeyColumn()public boolean isStaticColumn()
CassandraPersistentPropertyisStaticColumn in interface CassandraPersistentPropertyisStaticColumn in class BasicCassandraPersistentPropertypublic boolean isEmbedded()
public AnnotatedType findAnnotatedType(Class<? extends Annotation> annotationType)
CassandraPersistentPropertyAnnotatedType by annotationType derived from the property type. Annotated type is looked up
by introspecting property field/accessors. Collection/Map-like types are introspected for type annotations within
type arguments.findAnnotatedType in interface CassandraPersistentPropertyfindAnnotatedType in class BasicCassandraPersistentPropertyannotationType - must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.