public interface CassandraPersistentProperty extends PersistentProperty<CassandraPersistentProperty>, ApplicationContextAware
PersistentProperty
extension.isIdProperty, isVersionProperty
Modifier and Type | Method and Description |
---|---|
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.
|
Optional<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, getRawType, getRequiredAssociation, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
setApplicationContext
CqlIdentifier getColumnName()
Optional<Ordering> getPrimaryKeyOrdering()
com.datastax.driver.core.DataType getDataType()
DataType
InvalidDataAccessApiUsageException
- if the DataType
cannot be resolvedCassandraType
boolean 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.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.