Package | Description |
---|---|
org.springframework.data.cassandra.core |
Apache Cassandra core support.
|
org.springframework.data.cassandra.core.convert |
Spring Data Cassandra specific converter infrastructure.
|
org.springframework.data.cassandra.core.mapping |
Infrastructure for the Apache Cassandra row-to-object mapping subsystem.
|
org.springframework.data.cassandra.repository.query |
Query derivation mechanism for Apache Cassandra specific repositories.
|
org.springframework.data.cassandra.repository.support |
Support infrastructure for query derivation of Apache Cassandra specific repositories.
|
Modifier and Type | Method and Description |
---|---|
StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> |
StatementFactory.count(Query query,
CassandraPersistentEntity<?> persistentEntity)
Create a COUNT statement by mapping
Query to Select . |
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 mapping
Query to Select . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> |
StatementFactory.delete(Query query,
CassandraPersistentEntity<?> persistentEntity)
Create a DELETE statement by mapping
Query to Delete . |
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 mapping
Query to Delete . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> |
StatementFactory.select(Query query,
CassandraPersistentEntity<?> persistentEntity)
Create a SELECT statement by mapping
Query to Select . |
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 mapping
Query to Select . |
StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update> |
StatementFactory.update(Query query,
Update update,
CassandraPersistentEntity<?> persistentEntity)
|
Modifier and Type | Method and Description |
---|---|
List<CreateIndexSpecification> |
SchemaFactory.getCreateIndexSpecificationsFor(CassandraPersistentEntity<?> entity)
Returns
index specifications derived from CassandraPersistentEntity . |
List<CreateIndexSpecification> |
SchemaFactory.getCreateIndexSpecificationsFor(CassandraPersistentEntity<?> entity,
com.datastax.oss.driver.api.core.CqlIdentifier tableName)
|
CreateTableSpecification |
SchemaFactory.getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity)
Returns a
CreateTableSpecification for the given entity, including all mapping information. |
CreateTableSpecification |
SchemaFactory.getCreateTableSpecificationFor(CassandraPersistentEntity<?> entity,
com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Returns a
CreateTableSpecification for the given entity using table name , including
all mapping information. |
CreateUserTypeSpecification |
SchemaFactory.getCreateUserTypeSpecificationFor(CassandraPersistentEntity<?> entity)
Returns a
CreateUserTypeSpecification for the given entity, including all mapping information. |
Object |
MappingCassandraConverter.getId(Object object,
CassandraPersistentEntity<?> entity) |
Object |
CassandraConverter.getId(Object object,
CassandraPersistentEntity<?> entity)
Returns the Id for an entity.
|
List<com.datastax.oss.driver.api.core.CqlIdentifier> |
QueryMapper.getMappedColumnNames(Columns columns,
CassandraPersistentEntity<?> entity)
|
Filter |
QueryMapper.getMappedObject(Filter filter,
CassandraPersistentEntity<?> entity)
|
Update |
UpdateMapper.getMappedObject(Update update,
CassandraPersistentEntity<?> entity)
|
List<Columns.Selector> |
QueryMapper.getMappedSelectors(Columns columns,
CassandraPersistentEntity<?> entity)
|
org.springframework.data.domain.Sort |
QueryMapper.getMappedSort(org.springframework.data.domain.Sort sort,
CassandraPersistentEntity<?> entity) |
void |
MappingCassandraConverter.write(Object source,
Object sink,
CassandraPersistentEntity<?> entity) |
void |
CassandraConverter.write(Object source,
Object sink,
CassandraPersistentEntity<?> entity)
|
Constructor and Description |
---|
MetadataBackedField(ColumnName name,
CassandraPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext)
Creates a new
QueryMapper.MetadataBackedField with the given name, CassandraPersistentEntity and
MappingContext . |
MetadataBackedField(ColumnName name,
CassandraPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext,
CassandraPersistentProperty property)
Creates a new
QueryMapper.MetadataBackedField with the given name, CassandraPersistentProperty and
MappingContext with the given CassandraPersistentProperty . |
Constructor and Description |
---|
MetadataBackedField(ColumnName name,
CassandraPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext)
Creates a new
QueryMapper.MetadataBackedField with the given name, CassandraPersistentEntity and
MappingContext . |
MetadataBackedField(ColumnName name,
CassandraPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext,
CassandraPersistentProperty property)
Creates a new
QueryMapper.MetadataBackedField with the given name, CassandraPersistentProperty and
MappingContext with the given CassandraPersistentProperty . |
SchemaFactory(org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext,
org.springframework.data.convert.CustomConversions customConversions,
com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry codecRegistry)
|
Modifier and Type | Class and Description |
---|---|
class |
BasicCassandraPersistentEntity<T>
Cassandra specific
BasicPersistentEntity implementation that adds Cassandra specific metadata. |
class |
BasicCassandraPersistentTupleEntity<T>
Cassandra Tuple-specific
PersistentEntity for a mapped tuples. |
class |
CassandraUserTypePersistentEntity<T>
PersistentEntity for a mapped user-defined type (UDT). |
Modifier and Type | Method and Description |
---|---|
CassandraPersistentEntity<?> |
EmbeddedEntityOperations.getEntity(CassandraPersistentProperty property) |
CassandraPersistentEntity<?> |
BasicCassandraPersistentProperty.getOwner() |
Modifier and Type | Method and Description |
---|---|
Collection<CassandraPersistentEntity<?>> |
CassandraMappingContext.getUserDefinedTypeEntities()
Returns only those entities representing a user defined type.
|
Modifier and Type | Method and Description |
---|---|
static PersistentPropertyTranslator |
PersistentPropertyTranslator.create(CassandraPersistentEntity<?> targetEntity)
Create a new
PersistentPropertyTranslator . |
static PersistentPropertyTranslator |
PersistentPropertyTranslator.create(CassandraPersistentEntity<?> targetEntity,
Predicate<CassandraPersistentProperty> translationFilter)
Create a new
PersistentPropertyTranslator accepting a filter predicate whether the
translation should happen at all. |
String |
SnakeCaseNamingStrategy.getTableName(CassandraPersistentEntity<?> entity)
Uses
Class.getSimpleName() and separates camel case parts with '_'. |
String |
TransformingNamingStrategy.getTableName(CassandraPersistentEntity<?> entity) |
default String |
NamingStrategy.getTableName(CassandraPersistentEntity<?> entity)
Create a table name from the given
CassandraPersistentEntity . |
String |
SnakeCaseNamingStrategy.getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
Uses
Class.getSimpleName() and separates camel case parts with '_'. |
String |
TransformingNamingStrategy.getUserDefinedTypeName(CassandraPersistentEntity<?> entity) |
default String |
NamingStrategy.getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
Create a user-defined type name from the given
CassandraPersistentEntity . |
void |
BasicCassandraPersistentEntityMetadataVerifier.verify(CassandraPersistentEntity<?> entity) |
void |
PrimaryKeyClassEntityMetadataVerifier.verify(CassandraPersistentEntity<?> entity) |
void |
CompositeCassandraPersistentEntityMetadataVerifier.verify(CassandraPersistentEntity<?> entity) |
void |
CassandraPersistentEntityMetadataVerifier.verify(CassandraPersistentEntity<?> entity)
Performs verification on the Persistent Entity to ensure all markers and marker combinations are valid.
|
Constructor and Description |
---|
BasicCassandraPersistentProperty(org.springframework.data.mapping.model.Property property,
CassandraPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
Create a new
BasicCassandraPersistentProperty . |
BasicCassandraPersistentTupleProperty(org.springframework.data.mapping.model.Property property,
CassandraPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
Create a new
BasicCassandraPersistentTupleProperty . |
CachingCassandraPersistentProperty(org.springframework.data.mapping.model.Property property,
CassandraPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
VerifierMappingExceptions(CassandraPersistentEntity<?> entity,
Collection<org.springframework.data.mapping.MappingException> exceptions)
Create a new
VerifierMappingExceptions for the given entity and message. |
VerifierMappingExceptions(CassandraPersistentEntity<?> entity,
String message)
Create a new
VerifierMappingExceptions for the given entity and message. |
Constructor and Description |
---|
EmbeddedEntityOperations(org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> |
PartTreeCassandraQuery.getMappingContext()
Returns the
MappingContext used by this query to access mapping meta-data used to store (map) objects to
Cassandra tables. |
protected org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> |
ReactivePartTreeCassandraQuery.getMappingContext()
Returns the
MappingContext used by this query to access mapping meta-data used to store (map) objects to
Cassandra tables. |
Constructor and Description |
---|
CassandraQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata,
org.springframework.data.projection.ProjectionFactory projectionFactory,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,? extends CassandraPersistentProperty> mappingContext)
Create a new
CassandraQueryMethod from the given Method . |
CassandraRepositoryQuerySupport(CassandraQueryMethod queryMethod,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> mappingContext)
|
ReactiveCassandraQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory projectionFactory,
org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,? extends CassandraPersistentProperty> mappingContext)
Create a new
ReactiveCassandraQueryMethod from the given Method . |
Constructor and Description |
---|
MappingCassandraEntityInformation(CassandraPersistentEntity<T> entity,
CassandraConverter converter)
Create a new
MappingCassandraEntityInformation for the given CassandraPersistentEntity . |
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.