public interface CassandraPersistentProperty extends PersistentProperty<CassandraPersistentProperty>, ApplicationContextAware
PersistentProperty extension.| Modifier and Type | Method and Description |
|---|---|
AnnotatedType |
findAnnotatedType(Class<? extends Annotation> annotationType)
Find an
AnnotatedType by annotationType derived from the property type. |
com.datastax.oss.driver.api.core.CqlIdentifier |
getColumnName()
The name of the single column to which the property is persisted.
|
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 com.datastax.oss.driver.api.core.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.
|
default boolean |
isEmbedded() |
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
|
default void |
setColumnName(CqlIdentifier columnName)
Deprecated.
since 3.0, use
setColumnName(CqlIdentifier). |
void |
setColumnName(com.datastax.oss.driver.api.core.CqlIdentifier columnName)
If this property is mapped with a single column, set the column name to the given
CqlIdentifier. |
void |
setForceQuote(boolean forceQuote)
Deprecated.
since 3.0. The column name gets converted into
CqlIdentifier
hence it no longer requires an indication whether the name should be quoted. |
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, 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, usePropertyAccesssetApplicationContext@Deprecated default void setColumnName(CqlIdentifier columnName)
setColumnName(CqlIdentifier).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.void setColumnName(com.datastax.oss.driver.api.core.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 com.datastax.oss.driver.api.core.CqlIdentifier getColumnName()
default com.datastax.oss.driver.api.core.CqlIdentifier getRequiredColumnName()
IllegalStateException - if the required column name is not available.@Deprecated void setForceQuote(boolean forceQuote)
CqlIdentifier
hence it no longer requires an indication whether the name should be quoted.forceQuote - true to enforce quoting.getColumnName(),
CqlIdentifier.fromInternal(String)@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()default boolean isEmbedded()
@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–2021 Pivotal Software, Inc.. All rights reserved.