Class PartTreeCassandraQuery
java.lang.Object
org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
org.springframework.data.cassandra.repository.query.AbstractCassandraQuery
org.springframework.data.cassandra.repository.query.PartTreeCassandraQuery
- All Implemented Interfaces:
RepositoryQuery
RepositoryQuery implementation for Cassandra.- Author:
- Matthew Adams, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
log -
Constructor Summary
ConstructorsConstructorDescriptionPartTreeCassandraQuery(CassandraQueryMethod queryMethod, CassandraOperations operations) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.datastax.oss.driver.api.core.cql.SimpleStatementcreateQuery(CassandraParameterAccessor parameterAccessor) Creates aStatementusing the givenParameterAccessorprotected MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> Returns theMappingContextused by this query to access mapping meta-data used to store (map) objects to Cassandra tables.protected StatementFactoryReturns theStatementFactoryused by this query to construct and run Cassandra CQL statements.protected PartTreegetTree()Return thePartTreebacking the query.protected booleanReturns whether the query should get a count projection applied.protected booleanReturns whether the query should get an exists projection applied.protected booleanReturn whether the query has an explicit limit set.protected booleanReturns whether the query is a modifying query.Methods inherited from class org.springframework.data.cassandra.repository.query.AbstractCassandraQuery
execute, getOperationsMethods inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
getEntityInstantiators, getQueryMethod, getQueryStatementCreator
-
Constructor Details
-
PartTreeCassandraQuery
- Parameters:
queryMethod- must not be null.operations- must not be null.
-
-
Method Details
-
getMappingContext
protected MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> getMappingContext()Returns theMappingContextused by this query to access mapping meta-data used to store (map) objects to Cassandra tables.- Returns:
- the
MappingContextused by this query. - See Also:
-
getStatementFactory
Returns theStatementFactoryused by this query to construct and run Cassandra CQL statements.- Returns:
- the
StatementFactoryused by this query to construct and run Cassandra CQL statements. - See Also:
-
getTree
Return thePartTreebacking the query.- Returns:
- the tree
-
createQuery
protected com.datastax.oss.driver.api.core.cql.SimpleStatement createQuery(CassandraParameterAccessor parameterAccessor) Description copied from class:AbstractCassandraQueryCreates aStatementusing the givenParameterAccessor- Specified by:
createQueryin classAbstractCassandraQuery- Parameters:
parameterAccessor- must not be null.
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractCassandraQueryReturns whether the query should get a count projection applied.- Specified by:
isCountQueryin classAbstractCassandraQuery- Returns:
- a boolean value indicating whether the query is a count projection.
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractCassandraQueryReturns whether the query should get an exists projection applied.- Specified by:
isExistsQueryin classAbstractCassandraQuery- Returns:
- a boolean value indicating whether the query is an exists projection.
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractCassandraQueryReturn whether the query has an explicit limit set.- Specified by:
isLimitingin classAbstractCassandraQuery- Returns:
- a boolean value indicating whether the query has an explicit limit set.
-
isModifyingQuery
protected boolean isModifyingQuery()Description copied from class:AbstractCassandraQueryReturns whether the query is a modifying query.- Specified by:
isModifyingQueryin classAbstractCassandraQuery- Returns:
- a boolean value indicating whether the query is a modifying query.
-