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:
org.springframework.data.repository.query.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
ConstructorDescriptionPartTreeCassandraQuery
(CassandraQueryMethod queryMethod, CassandraOperations operations) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.datastax.oss.driver.api.core.cql.SimpleStatement
createQuery
(CassandraParameterAccessor parameterAccessor) Creates aStatement
using the givenParameterAccessor
protected org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,
CassandraPersistentProperty> Returns theMappingContext
used by this query to access mapping meta-data used to store (map) objects to Cassandra tables.protected StatementFactory
Returns theStatementFactory
used by this query to construct and run Cassandra CQL statements.protected org.springframework.data.repository.query.parser.PartTree
getTree()
Return thePartTree
backing the query.protected boolean
Returns whether the query should get a count projection applied.protected boolean
Returns whether the query should get an exists projection applied.protected boolean
Return whether the query has an explicit limit set.protected boolean
Returns whether the query is a modifying query.Methods inherited from class org.springframework.data.cassandra.repository.query.AbstractCassandraQuery
execute, getOperations
Methods 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 org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> getMappingContext()Returns theMappingContext
used by this query to access mapping meta-data used to store (map) objects to Cassandra tables.- Overrides:
getMappingContext
in classCassandraRepositoryQuerySupport
- Returns:
- the
MappingContext
used by this query. - See Also:
-
getStatementFactory
Returns theStatementFactory
used by this query to construct and run Cassandra CQL statements.- Returns:
- the
StatementFactory
used by this query to construct and run Cassandra CQL statements. - See Also:
-
getTree
protected org.springframework.data.repository.query.parser.PartTree getTree()Return thePartTree
backing the query.- Returns:
- the tree
-
createQuery
protected com.datastax.oss.driver.api.core.cql.SimpleStatement createQuery(CassandraParameterAccessor parameterAccessor) Description copied from class:AbstractCassandraQuery
Creates aStatement
using the givenParameterAccessor
- Specified by:
createQuery
in classAbstractCassandraQuery
- Parameters:
parameterAccessor
- must not be null.
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractCassandraQuery
Returns whether the query should get a count projection applied.- Specified by:
isCountQuery
in classAbstractCassandraQuery
- Returns:
- a boolean value indicating whether the query is a count projection.
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractCassandraQuery
Returns whether the query should get an exists projection applied.- Specified by:
isExistsQuery
in classAbstractCassandraQuery
- Returns:
- a boolean value indicating whether the query is an exists projection.
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractCassandraQuery
Return whether the query has an explicit limit set.- Specified by:
isLimiting
in classAbstractCassandraQuery
- Returns:
- a boolean value indicating whether the query has an explicit limit set.
-
isModifyingQuery
protected boolean isModifyingQuery()Description copied from class:AbstractCassandraQuery
Returns whether the query is a modifying query.- Specified by:
isModifyingQuery
in classAbstractCassandraQuery
- Returns:
- a boolean value indicating whether the query is a modifying query.
-