Class CachingCassandraPersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CassandraPersistentProperty>
org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentProperty
org.springframework.data.cassandra.core.mapping.CachingCassandraPersistentProperty
- All Implemented Interfaces:
Aware,ApplicationContextAware,CassandraPersistentProperty,PersistentProperty<CassandraPersistentProperty>
BasicCassandraPersistentProperty that pre-computes primary key and embedded flags.- Since:
- 3.1.4
- Author:
- Mark Paluch, Aleksei Zotov
-
Constructor Summary
ConstructorsConstructorDescriptionCachingCassandraPersistentProperty(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) -
Method Summary
Modifier and TypeMethodDescriptionfindAnnotatedType(Class<? extends Annotation> annotationType) Find anAnnotatedTypebyannotationTypederived from the property type.The ordering (ascending or descending) for the column.booleanWhether the property is a cluster key column.booleanWhether the property is a composite primary key.booleanbooleanWhether the property is a partition key column.booleanWhether the property is a partition key column or a cluster key columnbooleanWhether the property maps to a static column.Methods inherited from class org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentProperty
createAssociation, getAssociation, getColumnName, getOrdinal, getOwner, hasExplicitColumnName, isMapLike, setApplicationContext, setColumnName, setForceQuote, setNamingStrategyMethods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessMethods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, getActualTypeInformation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.cassandra.core.mapping.CassandraPersistentProperty
getRequiredColumnName, getRequiredOrdinal, hasOrdinal, setColumnNameMethods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Constructor Details
-
CachingCassandraPersistentProperty
public CachingCassandraPersistentProperty(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder)
-
-
Method Details
-
getPrimaryKeyOrdering
Description copied from interface:CassandraPersistentPropertyThe ordering (ascending or descending) for the column. Valid only for primary key columns; returns null for non-primary key columns.- Specified by:
getPrimaryKeyOrderingin interfaceCassandraPersistentProperty- Overrides:
getPrimaryKeyOrderingin classBasicCassandraPersistentProperty
-
isCompositePrimaryKey
public boolean isCompositePrimaryKey()Description copied from interface:CassandraPersistentPropertyWhether the property is a composite primary key.- Specified by:
isCompositePrimaryKeyin interfaceCassandraPersistentProperty- Overrides:
isCompositePrimaryKeyin classBasicCassandraPersistentProperty
-
isClusterKeyColumn
public boolean isClusterKeyColumn()Description copied from interface:CassandraPersistentPropertyWhether the property is a cluster key column.- Specified by:
isClusterKeyColumnin interfaceCassandraPersistentProperty- Overrides:
isClusterKeyColumnin classBasicCassandraPersistentProperty
-
isPartitionKeyColumn
public boolean isPartitionKeyColumn()Description copied from interface:CassandraPersistentPropertyWhether the property is a partition key column.- Specified by:
isPartitionKeyColumnin interfaceCassandraPersistentProperty- Overrides:
isPartitionKeyColumnin classBasicCassandraPersistentProperty
-
isPrimaryKeyColumn
public boolean isPrimaryKeyColumn()Description copied from interface:CassandraPersistentPropertyWhether the property is a partition key column or a cluster key column- Specified by:
isPrimaryKeyColumnin interfaceCassandraPersistentProperty- Overrides:
isPrimaryKeyColumnin classBasicCassandraPersistentProperty- See Also:
-
isStaticColumn
public boolean isStaticColumn()Description copied from interface:CassandraPersistentPropertyWhether the property maps to a static column.- Specified by:
isStaticColumnin interfaceCassandraPersistentProperty- Overrides:
isStaticColumnin classBasicCassandraPersistentProperty
-
isEmbedded
public boolean isEmbedded()- Returns:
- true if the property should be embedded.
-
findAnnotatedType
Description copied from interface:CassandraPersistentPropertyFind anAnnotatedTypebyannotationTypederived 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.- Specified by:
findAnnotatedTypein interfaceCassandraPersistentProperty- Overrides:
findAnnotatedTypein classBasicCassandraPersistentProperty- Parameters:
annotationType- must not be null.- Returns:
- the annotated type or null.
-