Class AbstractReactiveCassandraQuery
java.lang.Object
org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
org.springframework.data.cassandra.repository.query.AbstractReactiveCassandraQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
- Direct Known Subclasses:
ReactivePartTreeCassandraQuery,ReactiveStringBasedCassandraQuery
Base class for reactive
RepositoryQuery implementations for Cassandra.- Since:
- 2.0
- Author:
- Mark Paluch, Hleb Albau
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
log -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReactiveCassandraQuery(ReactiveCassandraQueryMethod method, ReactiveCassandraOperations operations) Create a newAbstractReactiveCassandraQueryfrom the givenCassandraQueryMethodandCassandraOperations. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract reactor.core.publisher.Mono<com.datastax.oss.driver.api.core.cql.SimpleStatement>createQuery(CassandraParameterAccessor accessor) Creates a string query using the givenParameterAccessorprotected ReactiveCassandraOperationsprotected abstract booleanReturns whether the query should get a count projection applied.protected abstract booleanReturns whether the query should get an exists projection applied.protected abstract booleanReturn whether the query has an explicit limit set.protected abstract booleanReturns whether the query is a modifying query.Methods inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
getEntityInstantiators, getMappingContext, getQueryStatementCreator
-
Constructor Details
-
AbstractReactiveCassandraQuery
public AbstractReactiveCassandraQuery(ReactiveCassandraQueryMethod method, ReactiveCassandraOperations operations) Create a newAbstractReactiveCassandraQueryfrom the givenCassandraQueryMethodandCassandraOperations.- Parameters:
method- must not be null.operations- must not be null.
-
-
Method Details
-
getQueryMethod
- Specified by:
getQueryMethodin interfaceorg.springframework.data.repository.query.RepositoryQuery- Overrides:
getQueryMethodin classCassandraRepositoryQuerySupport
-
execute
-
createQuery
protected abstract reactor.core.publisher.Mono<com.datastax.oss.driver.api.core.cql.SimpleStatement> createQuery(CassandraParameterAccessor accessor) Creates a string query using the givenParameterAccessor- Parameters:
accessor- must not be null.
-
getReactiveCassandraOperations
-
isCountQuery
protected abstract boolean isCountQuery()Returns whether the query should get a count projection applied.- Returns:
- a boolean value indicating whether the query is a count projection.
- Since:
- 2.1
-
isExistsQuery
protected abstract boolean isExistsQuery()Returns whether the query should get an exists projection applied.- Returns:
- a boolean value indicating whether the query is an exists projection.
- Since:
- 2.1
-
isLimiting
protected abstract boolean isLimiting()Return whether the query has an explicit limit set.- Returns:
- a boolean value indicating whether the query has an explicit limit set.
- Since:
- 2.0.4
-
isModifyingQuery
protected abstract boolean isModifyingQuery()Returns whether the query is a modifying query.- Returns:
- a boolean value indicating whether the query is a modifying query.
- Since:
- 2.2
-