public class BasicCassandraPersistentTupleProperty extends BasicCassandraPersistentProperty
CassandraPersistentProperty
implementation.Element
Constructor and Description |
---|
BasicCassandraPersistentTupleProperty(Property property,
CassandraPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
Create a new
BasicCassandraPersistentTupleProperty . |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isClusterKeyColumn()
Whether the property is a cluster key column.
|
boolean |
isCompositePrimaryKey()
Whether the property is a composite primary key.
|
boolean |
isEmbedded() |
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
|
boolean |
isStaticColumn()
Whether the property maps to a static column.
|
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 . |
createAssociation, findAnnotatedType, getAssociation, getOwner, isMapLike, setApplicationContext, setForceQuote, setNamingStrategy
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
equals, getActualType, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getRequiredColumnName, getRequiredOrdinal, setColumnName
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, 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, usePropertyAccess
public 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 com.datastax.oss.driver.api.core.CqlIdentifier getColumnName()
CassandraPersistentProperty
getColumnName
in interface CassandraPersistentProperty
getColumnName
in class BasicCassandraPersistentProperty
@Nullable public Integer getOrdinal()
CassandraPersistentProperty
getOrdinal
in interface CassandraPersistentProperty
getOrdinal
in class BasicCassandraPersistentProperty
@Nullable public Ordering getPrimaryKeyOrdering()
CassandraPersistentProperty
getPrimaryKeyOrdering
in interface CassandraPersistentProperty
getPrimaryKeyOrdering
in class BasicCassandraPersistentProperty
public boolean isClusterKeyColumn()
CassandraPersistentProperty
isClusterKeyColumn
in interface CassandraPersistentProperty
isClusterKeyColumn
in class BasicCassandraPersistentProperty
public boolean isCompositePrimaryKey()
CassandraPersistentProperty
isCompositePrimaryKey
in interface CassandraPersistentProperty
isCompositePrimaryKey
in class BasicCassandraPersistentProperty
public boolean isPartitionKeyColumn()
CassandraPersistentProperty
isPartitionKeyColumn
in interface CassandraPersistentProperty
isPartitionKeyColumn
in class BasicCassandraPersistentProperty
public boolean isPrimaryKeyColumn()
CassandraPersistentProperty
isPrimaryKeyColumn
in interface CassandraPersistentProperty
isPrimaryKeyColumn
in class BasicCassandraPersistentProperty
CassandraPersistentProperty.isPartitionKeyColumn()
,
CassandraPersistentProperty.isClusterKeyColumn()
public boolean isStaticColumn()
CassandraPersistentProperty
isStaticColumn
in interface CassandraPersistentProperty
isStaticColumn
in class BasicCassandraPersistentProperty
public boolean isEmbedded()
public void setColumnName(com.datastax.oss.driver.api.core.CqlIdentifier columnName)
CassandraPersistentProperty
CqlIdentifier
. 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 CassandraPersistentProperty
setColumnName
in class BasicCassandraPersistentProperty
columnName
- must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.