Class CassandraQueryCreator
java.lang.Object
org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,Filter>
org.springframework.data.cassandra.repository.query.CassandraQueryCreator
Custom query creator to create Cassandra criteria.
Only intended for internal use.
- Author:
- Matthew Adams, Mark Paluch, John Blum, Chris Bono
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraQueryCreator(PartTree tree, CassandraParameterAccessor parameterAccessor, MappingContext<?, CassandraPersistentProperty> mappingContext) Create a newCassandraQueryCreatorfrom the givenPartTree,ConvertingParameterAccessorandMappingContext. -
Method Summary
Modifier and TypeMethodDescriptionprotected Filterprotected Queryprotected Filterprotected MappingContext<?, CassandraPersistentProperty> Returns theMappingContextused by this template to access mapping meta-data used to store (map) object to Cassandra tables.protected org.springframework.data.cassandra.repository.query.CassandraQueryCreator.QueryBuilderReturns theCassandraQueryCreator.QueryBuilderused to construct Cassandra CQL queries.protected Objectprotected FilterMethods inherited from class AbstractQueryCreator
createQuery, createQuery
-
Constructor Details
-
CassandraQueryCreator
public CassandraQueryCreator(PartTree tree, CassandraParameterAccessor parameterAccessor, MappingContext<?, CassandraPersistentProperty> mappingContext) Create a newCassandraQueryCreatorfrom the givenPartTree,ConvertingParameterAccessorandMappingContext.- Parameters:
tree- must not be null.parameterAccessor- must not be null.mappingContext- must not be null.
-
-
Method Details
-
getMappingContext
Returns theMappingContextused by this template to access mapping meta-data used to store (map) object to Cassandra tables.- Returns:
- the
MappingContextused by this template. - See Also:
-
getQueryBuilder
protected org.springframework.data.cassandra.repository.query.CassandraQueryCreator.QueryBuilder getQueryBuilder()Returns theCassandraQueryCreator.QueryBuilderused to construct Cassandra CQL queries.- Returns:
- the
CassandraQueryCreator.QueryBuilderused to construct Cassandra CQL queries.
-
create
-
and
-
or
-
complete
-
like
-