Class StringBasedCassandraQuery

All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery

public class StringBasedCassandraQuery extends AbstractCassandraQuery
String-based AbstractCassandraQuery implementation.

A StringBasedCassandraQuery expects a query method to be annotated with Query with a CQL query. String-based queries support named, index-based and expression parameters that are resolved during query execution.

Author:
Matthew Adams, Mark Paluch
See Also:
  • Constructor Details

  • Method Details

    • getStringBasedQuery

      protected org.springframework.data.cassandra.repository.query.StringBasedQuery getStringBasedQuery()
    • createQuery

      public com.datastax.oss.driver.api.core.cql.SimpleStatement createQuery(CassandraParameterAccessor parameterAccessor)
      Description copied from class: AbstractCassandraQuery
      Creates a Statement using the given ParameterAccessor
      Specified by:
      createQuery in class AbstractCassandraQuery
      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 class AbstractCassandraQuery
      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 class AbstractCassandraQuery
      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 class AbstractCassandraQuery
      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 class AbstractCassandraQuery
      Returns:
      a boolean value indicating whether the query is a modifying query.