public interface CassandraPersistentProperty extends PersistentProperty<CassandraPersistentProperty>, ApplicationContextAware
PersistentProperty extension.isIdProperty, isVersionProperty| Modifier and Type | Interface and Description |
|---|---|
static class |
CassandraPersistentProperty.PropertyToFieldNameConverter |
| Modifier and Type | Method and Description |
|---|---|
CqlIdentifier |
getColumnName()
The name of the single column to which the property is persisted.
|
List<CqlIdentifier> |
getColumnNames()
The names of the columns to which the property is persisted if this is a composite primary key property.
|
CassandraPersistentEntity<?> |
getCompositePrimaryKeyEntity()
Returns a
CassandraPersistentEntity representing the composite primary key class of this entity, or null if
this class does not use a composite primary key. |
List<CassandraPersistentProperty> |
getCompositePrimaryKeyProperties()
Gets the list of composite primary key properties that this composite primary key field is a placeholder for.
|
TypeInformation<?> |
getCompositePrimaryKeyTypeInformation()
Returns a
TypeInformation representing the type of the composite primary key class of this entity, or null
if this class does not use a composite primary key. |
com.datastax.driver.core.DataType |
getDataType()
The column's data type.
|
CassandraPersistentEntity<?> |
getOwner() |
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 |
isIndexed()
Whether the property has a secondary index on this column.
|
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 |
setColumnNames(List<CqlIdentifier> columnNames)
Sets this property's column names to the collection given.
|
void |
setForceQuote(boolean forceQuote)
Whether to force-quote the column names of this property.
|
findAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccesssetApplicationContextboolean isCompositePrimaryKey()
CassandraPersistentEntity<?> getCompositePrimaryKeyEntity()
CassandraPersistentEntity representing the composite primary key class of this entity, or null if
this class does not use a composite primary key.TypeInformation<?> getCompositePrimaryKeyTypeInformation()
TypeInformation representing the type of the composite primary key class of this entity, or null
if this class does not use a composite primary key.List<CassandraPersistentProperty> getCompositePrimaryKeyProperties()
CqlIdentifier getColumnName()
IllegalStateException if this property is
mapped to multiple columns.List<CqlIdentifier> getColumnNames()
Ordering getPrimaryKeyOrdering()
com.datastax.driver.core.DataType getDataType()
boolean isIndexed()
boolean isPartitionKeyColumn()
boolean isClusterKeyColumn()
boolean isPrimaryKeyColumn()
isPartitionKeyColumn(),
isClusterKeyColumn()CassandraPersistentEntity<?> getOwner()
getOwner in interface PersistentProperty<CassandraPersistentProperty>void setForceQuote(boolean forceQuote)
forceQuote - getColumnNames()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 - void setColumnNames(List<CqlIdentifier> columnNames)
null elements.columnName - Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.