public interface CassandraPersistentProperty extends PersistentProperty<CassandraPersistentProperty>, ApplicationContextAware
PersistentProperty extension.isIdProperty, isVersionProperty| Modifier and Type | Method and Description |
|---|---|
AnnotatedType |
findAnnotatedType(Class<? extends Annotation> annotationType)
Find an
AnnotatedType by annotationType derived from the property type. |
CqlIdentifier |
getColumnName()
The name of the single column to which the property is persisted.
|
com.datastax.driver.core.DataType |
getDataType()
The column's data 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 |
isMapLike()
Returns whether the property is a
Map. |
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
|
void |
setColumnName(CqlIdentifier columnName)
If this property is mapped with a single column, set the column name to the given
CqlIdentifier. |
void |
setForceQuote(boolean forceQuote)
Whether to force-quote the column names of this property.
|
findAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccesssetApplicationContextCqlIdentifier getColumnName()
@Nullable Ordering getPrimaryKeyOrdering()
com.datastax.driver.core.DataType getDataType()
DataTypeInvalidDataAccessApiUsageException - if the DataType cannot be resolvedCassandraTypeboolean isCompositePrimaryKey()
boolean isPrimaryKeyColumn()
isPartitionKeyColumn(),
isClusterKeyColumn()boolean isPartitionKeyColumn()
boolean isClusterKeyColumn()
void setForceQuote(boolean forceQuote)
forceQuote - true to enforce quoting.getColumnName()void setColumnName(CqlIdentifier columnName)
CqlIdentifier. If this
property is not mapped by a single column, throws IllegalStateException. If the given column name is null,
IllegalArgumentException is thrown.columnName - must not be null.boolean isMapLike()
Map.Map.@Nullable AnnotatedType findAnnotatedType(Class<? extends Annotation> annotationType)
AnnotatedType 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.annotationType - must not be null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.