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.
|
Integer |
getOrdinal()
The name of the element ordinal to which the property is persisted when the owning type is a mapped tuple.
|
Ordering |
getPrimaryKeyOrdering()
The ordering (ascending or descending) for the column.
|
default CqlIdentifier |
getRequiredColumnName()
The name of the single column to which the property is persisted.
|
default int |
getRequiredOrdinal()
The required element ordinal to which the property is persisted when the owning type is a mapped tuple.
|
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, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, 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, usePropertyAccesssetApplicationContextvoid 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.@Nullable CqlIdentifier getColumnName()
default CqlIdentifier getRequiredColumnName()
IllegalStateException - if the required column name is not available.com.datastax.driver.core.DataType getDataType()
DataTypeInvalidDataAccessApiUsageException - if the DataType cannot be resolvedCassandraTypevoid setForceQuote(boolean forceQuote)
forceQuote - true to enforce quoting.getColumnName()@Nullable Integer getOrdinal()
default int getRequiredOrdinal()
IllegalStateException - if the required ordinal is not available.@Nullable Ordering getPrimaryKeyOrdering()
boolean isClusterKeyColumn()
boolean isCompositePrimaryKey()
boolean isMapLike()
Map.Map.boolean isPartitionKeyColumn()
boolean isPrimaryKeyColumn()
isPartitionKeyColumn(),
isClusterKeyColumn()@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.