Class CassandraParameters

java.lang.Object
org.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
org.springframework.data.cassandra.repository.query.CassandraParameters
All Implemented Interfaces:
Iterable<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>, Supplier<Stream<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>>, org.springframework.data.util.Streamable<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>

public class CassandraParameters extends org.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
Custom extension of Parameters discovering additional properties of query method parameters.
Author:
Matthew Adams, Mark Paluch
  • Field Summary

    Fields inherited from class org.springframework.data.repository.query.Parameters

    TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new CassandraParameters instance from the given Method
  • Method Summary

    Modifier and Type
    Method
    Description
    createFrom(List<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter> parameters)
     
    protected org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter
    createParameter(org.springframework.core.MethodParameter parameter)
     
    int
    Returns the index of the QueryOptions parameter to be applied to queries.

    Methods inherited from class org.springframework.data.repository.query.Parameters

    getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getNumberOfParameters, getPageableIndex, getParameter, getSortIndex, hasDynamicProjection, hasPageableParameter, hasParameterAt, hasSortParameter, hasSpecialParameter, isBindable, iterator, potentiallySortsDynamically

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.springframework.data.util.Streamable

    and, and, and, and, filter, flatMap, get, isEmpty, map, stream, toList, toSet
  • Constructor Details

    • CassandraParameters

      public CassandraParameters(Method method)
      Create a new CassandraParameters instance from the given Method
      Parameters:
      method - must not be null.
  • Method Details

    • createParameter

      protected org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter createParameter(org.springframework.core.MethodParameter parameter)
      Overrides:
      createParameter in class org.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
    • createFrom

      protected CassandraParameters createFrom(List<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter> parameters)
      Specified by:
      createFrom in class org.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
    • getQueryOptionsIndex

      public int getQueryOptionsIndex()
      Returns the index of the QueryOptions parameter to be applied to queries.
      Returns:
      Since:
      2.0