public class BasicCassandraPersistentTupleProperty extends BasicCassandraPersistentProperty
CassandraPersistentProperty implementation.ElementisIdProperty, isVersionPropertyisIdProperty, isVersionProperty| Constructor and Description |
|---|
BasicCassandraPersistentTupleProperty(Property property,
CassandraPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
Create a new
BasicCassandraPersistentTupleProperty. |
BasicCassandraPersistentTupleProperty(Property property,
CassandraPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
UserTypeResolver userTypeResolver)
Create a new
BasicCassandraPersistentTupleProperty. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isClusterKeyColumn()
Whether the property is a cluster key column.
|
boolean |
isCompositePrimaryKey()
Whether the property is a composite primary key.
|
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. |
createAssociation, findAnnotatedType, getAssociation, getDataType, getOwner, getPrimaryKeyOrdering, isMapLike, setApplicationContext, setForceQuotefindAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessequals, getActualType, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetRequiredColumnName, getRequiredOrdinalfindAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, 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, usePropertyAccesspublic BasicCassandraPersistentTupleProperty(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder)
BasicCassandraPersistentTupleProperty.property - the actual Property in the domain entity corresponding to this persistent entity.owner - the containing object or CassandraPersistentEntity of this persistent property.simpleTypeHolder - mapping of Java [simple|wrapper] types to Cassandra data types.public BasicCassandraPersistentTupleProperty(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, @Nullable UserTypeResolver userTypeResolver)
BasicCassandraPersistentTupleProperty.property - the actual Property in the domain entity corresponding to this persistent entity.owner - the containing object or CassandraPersistentEntity of this persistent property.simpleTypeHolder - mapping of Java [simple|wrapper] types to Cassandra data types.userTypeResolver - resolver for user-defined types.public CqlIdentifier getColumnName()
CassandraPersistentPropertygetColumnName in interface CassandraPersistentPropertygetColumnName in class BasicCassandraPersistentProperty@Nullable public Integer getOrdinal()
CassandraPersistentPropertygetOrdinal in interface CassandraPersistentPropertygetOrdinal in class BasicCassandraPersistentPropertypublic boolean isClusterKeyColumn()
CassandraPersistentPropertyisClusterKeyColumn in interface CassandraPersistentPropertyisClusterKeyColumn in class BasicCassandraPersistentPropertypublic boolean isCompositePrimaryKey()
CassandraPersistentPropertyisCompositePrimaryKey in interface CassandraPersistentPropertyisCompositePrimaryKey in class BasicCassandraPersistentPropertypublic boolean isPartitionKeyColumn()
CassandraPersistentPropertyisPartitionKeyColumn in interface CassandraPersistentPropertyisPartitionKeyColumn in class BasicCassandraPersistentPropertypublic boolean isPrimaryKeyColumn()
CassandraPersistentPropertyisPrimaryKeyColumn in interface CassandraPersistentPropertyisPrimaryKeyColumn in class BasicCassandraPersistentPropertyCassandraPersistentProperty.isPartitionKeyColumn(),
CassandraPersistentProperty.isClusterKeyColumn()public void setColumnName(CqlIdentifier columnName)
CassandraPersistentPropertyCqlIdentifier. If this
property is not mapped by a single column, throws IllegalStateException. If the given column name is null,
IllegalArgumentException is thrown.setColumnName in interface CassandraPersistentPropertysetColumnName in class BasicCassandraPersistentPropertycolumnName - must not be null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.