Uses of Interface
org.springframework.data.cassandra.core.mapping.CassandraPersistentEntity
Package
Description
Apache Cassandra core support.
Spring Data Cassandra specific converter infrastructure.
Infrastructure for the Apache Cassandra row-to-object mapping subsystem.
Query derivation mechanism for Apache Cassandra specific repositories.
Support infrastructure for query derivation of Apache Cassandra specific repositories.
-
Uses of CassandraPersistentEntity in org.springframework.data.cassandra.core
Modifier and TypeMethodDescriptionStatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>
StatementFactory.count
(Query query, CassandraPersistentEntity<?> persistentEntity) Create a COUNT statement by mappingQuery
toSelect
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>
StatementFactory.count
(Query query, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a COUNT statement by mappingQuery
toSelect
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete>
StatementFactory.delete
(Query query, CassandraPersistentEntity<?> persistentEntity) Create a DELETE statement by mappingQuery
toDelete
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete>
StatementFactory.delete
(Query query, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a DELETE statement by mappingQuery
toDelete
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete>
StatementFactory.deleteById
(Object id, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create an DELETE statement by mappingid
to SELECT … WHERE consideringUpdateOptions
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.insert.RegularInsert>
StatementFactory.insert
(Object objectToInsert, WriteOptions options, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Creates a Query Object for an insert.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>
StatementFactory.select
(Query query, CassandraPersistentEntity<?> persistentEntity) Create a SELECT statement by mappingQuery
toSelect
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>
StatementFactory.select
(Query query, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a SELECT statement by mappingQuery
toSelect
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>
StatementFactory.selectOneById
(Object id, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create an SELECT statement by mappingid
to SELECT … WHERE consideringUpdateOptions
.StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update>
StatementFactory.update
(Object objectToUpdate, WriteOptions options, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update>
StatementFactory.update
(Query query, Update update, CassandraPersistentEntity<?> persistentEntity) -
Uses of CassandraPersistentEntity in org.springframework.data.cassandra.core.convert
Modifier and TypeMethodDescriptionSchemaFactory.getCreateIndexSpecificationsFor
(CassandraPersistentEntity<?> entity) Returnsindex specifications
derived fromCassandraPersistentEntity
.SchemaFactory.getCreateIndexSpecificationsFor
(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) SchemaFactory.getCreateTableSpecificationFor
(CassandraPersistentEntity<?> entity) Returns aCreateTableSpecification
for the given entity, including all mapping information.SchemaFactory.getCreateTableSpecificationFor
(CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Returns aCreateTableSpecification
for the given entity usingtable name
, including all mapping information.SchemaFactory.getCreateUserTypeSpecificationFor
(CassandraPersistentEntity<?> entity) Returns aCreateUserTypeSpecification
for the given entity, including all mapping information.CassandraConverter.getId
(Object object, CassandraPersistentEntity<?> entity) Returns the Id for an entity.MappingCassandraConverter.getId
(Object object, CassandraPersistentEntity<?> entity) List<com.datastax.oss.driver.api.core.CqlIdentifier>
QueryMapper.getMappedColumnNames
(Columns columns, CassandraPersistentEntity<?> entity) QueryMapper.getMappedObject
(Filter filter, CassandraPersistentEntity<?> entity) UpdateMapper.getMappedObject
(Update update, CassandraPersistentEntity<?> entity) QueryMapper.getMappedSelectors
(Columns columns, CassandraPersistentEntity<?> entity) QueryMapper.getMappedSort
(Sort sort, CassandraPersistentEntity<?> entity) void
CassandraConverter.write
(Object source, Object sink, CassandraPersistentEntity<?> entity) void
MappingCassandraConverter.write
(Object source, Object sink, CassandraPersistentEntity<?> entity) ModifierConstructorDescriptionMetadataBackedField
(ColumnName name, CassandraPersistentEntity<?> entity, MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext) Creates a newQueryMapper.MetadataBackedField
with the given name,CassandraPersistentEntity
andMappingContext
.MetadataBackedField
(ColumnName name, CassandraPersistentEntity<?> entity, MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext, CassandraPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,CassandraPersistentProperty
andMappingContext
with the givenCassandraPersistentProperty
.ModifierConstructorDescriptionMetadataBackedField
(ColumnName name, CassandraPersistentEntity<?> entity, MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext) Creates a newQueryMapper.MetadataBackedField
with the given name,CassandraPersistentEntity
andMappingContext
.MetadataBackedField
(ColumnName name, CassandraPersistentEntity<?> entity, MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext, CassandraPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,CassandraPersistentProperty
andMappingContext
with the givenCassandraPersistentProperty
.SchemaFactory
(MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext, CustomConversions customConversions, com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry codecRegistry) -
Uses of CassandraPersistentEntity in org.springframework.data.cassandra.core.mapping
Modifier and TypeClassDescriptionclass
Cassandra specificBasicPersistentEntity
implementation that adds Cassandra specific metadata.class
Cassandra Tuple-specificPersistentEntity
for a mapped tuples.class
PersistentEntity
for a mapped user-defined type (UDT).Modifier and TypeMethodDescriptionEmbeddedEntityOperations.getEntity
(CassandraPersistentProperty property) BasicCassandraPersistentProperty.getOwner()
Modifier and TypeMethodDescriptionCassandraMappingContext.getUserDefinedTypeEntities()
Returns only those entities representing a user defined type.Modifier and TypeMethodDescriptionstatic PersistentPropertyTranslator
PersistentPropertyTranslator.create
(CassandraPersistentEntity<?> targetEntity) Create a newPersistentPropertyTranslator
.static PersistentPropertyTranslator
PersistentPropertyTranslator.create
(CassandraPersistentEntity<?> targetEntity, Predicate<CassandraPersistentProperty> translationFilter) Create a newPersistentPropertyTranslator
accepting afilter predicate
whether the translation should happen at all.default String
NamingStrategy.getTableName
(CassandraPersistentEntity<?> entity) Create a table name from the givenCassandraPersistentEntity
.SnakeCaseNamingStrategy.getTableName
(CassandraPersistentEntity<?> entity) UsesClass.getSimpleName()
and separates camel case parts with '_'.TransformingNamingStrategy.getTableName
(CassandraPersistentEntity<?> entity) default String
NamingStrategy.getUserDefinedTypeName
(CassandraPersistentEntity<?> entity) Create a user-defined type name from the givenCassandraPersistentEntity
.SnakeCaseNamingStrategy.getUserDefinedTypeName
(CassandraPersistentEntity<?> entity) UsesClass.getSimpleName()
and separates camel case parts with '_'.TransformingNamingStrategy.getUserDefinedTypeName
(CassandraPersistentEntity<?> entity) void
BasicCassandraPersistentEntityMetadataVerifier.verify
(CassandraPersistentEntity<?> entity) void
CassandraPersistentEntityMetadataVerifier.verify
(CassandraPersistentEntity<?> entity) Performs verification on the Persistent Entity to ensure all markers and marker combinations are valid.void
CompositeCassandraPersistentEntityMetadataVerifier.verify
(CassandraPersistentEntity<?> entity) void
PrimaryKeyClassEntityMetadataVerifier.verify
(CassandraPersistentEntity<?> entity) ModifierConstructorDescriptionBasicCassandraPersistentProperty
(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) Create a newBasicCassandraPersistentProperty
.BasicCassandraPersistentTupleProperty
(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) Create a newBasicCassandraPersistentTupleProperty
.CachingCassandraPersistentProperty
(Property property, CassandraPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) VerifierMappingExceptions
(CassandraPersistentEntity<?> entity, String message) Create a newVerifierMappingExceptions
for the givenentity
and message.VerifierMappingExceptions
(CassandraPersistentEntity<?> entity, Collection<MappingException> exceptions) Create a newVerifierMappingExceptions
for the givenentity
and message.ModifierConstructorDescriptionEmbeddedEntityOperations
(MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext) -
Uses of CassandraPersistentEntity in org.springframework.data.cassandra.repository.query
Modifier and TypeMethodDescriptionprotected MappingContext<? extends CassandraPersistentEntity<?>,
CassandraPersistentProperty> CassandraRepositoryQuerySupport.getMappingContext()
protected MappingContext<? extends CassandraPersistentEntity<?>,
CassandraPersistentProperty> PartTreeCassandraQuery.getMappingContext()
Returns theMappingContext
used by this query to access mapping meta-data used to store (map) objects to Cassandra tables.protected MappingContext<? extends CassandraPersistentEntity<?>,
CassandraPersistentProperty> ReactivePartTreeCassandraQuery.getMappingContext()
Returns theMappingContext
used by this query to access mapping meta-data used to store (map) objects to Cassandra tables.ModifierConstructorDescriptionCassandraQueryMethod
(Method method, RepositoryMetadata repositoryMetadata, ProjectionFactory projectionFactory, MappingContext<? extends CassandraPersistentEntity<?>, ? extends CassandraPersistentProperty> mappingContext) Create a newCassandraQueryMethod
from the givenMethod
.CassandraRepositoryQuerySupport
(CassandraQueryMethod queryMethod, MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext) ReactiveCassandraQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends CassandraPersistentEntity<?>, ? extends CassandraPersistentProperty> mappingContext) Create a newReactiveCassandraQueryMethod
from the givenMethod
. -
Uses of CassandraPersistentEntity in org.springframework.data.cassandra.repository.support
ModifierConstructorDescriptionMappingCassandraEntityInformation
(CassandraPersistentEntity<T> entity, CassandraConverter converter) Create a newMappingCassandraEntityInformation
for the givenCassandraPersistentEntity
.