Interface CassandraParameterAccessor

All Superinterfaces:
Iterable<Object>, org.springframework.data.repository.query.ParameterAccessor
All Known Implementing Classes:
CassandraParametersParameterAccessor

public interface CassandraParameterAccessor extends org.springframework.data.repository.query.ParameterAccessor
Cassandra-specific ParameterAccessor exposing a Cassandra types that are supported by the driver and parameter type.
Author:
Matthew Adams, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    findCassandraType(int index)
    Returns the CassandraType for the declared method parameter.
    com.datastax.oss.driver.api.core.type.DataType
    getDataType(int index)
    Returns the Cassandra DataType for the declared parameter if the type is a simple type.
    getParameterType(int index)
    The actual parameter type (after unwrapping).
    Returns the QueryOptions associated with the associated Repository query method.
    Returns the raw parameter values of the underlying query method.

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.springframework.data.repository.query.ParameterAccessor

    findDynamicProjection, getBindableValue, getPageable, getScrollPosition, getSort, hasBindableNullValue, iterator
  • Method Details

    • findCassandraType

      @Nullable CassandraType findCassandraType(int index)
      Returns the CassandraType for the declared method parameter.
      Parameters:
      index - the parameter index
      Returns:
      the Cassandra CassandraType or null.
      See Also:
    • getDataType

      com.datastax.oss.driver.api.core.type.DataType getDataType(int index)
      Returns the Cassandra DataType for the declared parameter if the type is a simple type. Parameter types may be specified using CassandraType.
      Parameters:
      index - the parameter index
      Returns:
      the Cassandra DataType or null if the parameter type cannot be determined from CassandraSimpleTypeHolder
      See Also:
    • getParameterType

      Class<?> getParameterType(int index)
      The actual parameter type (after unwrapping).
      Parameters:
      index - the parameter index
      Returns:
      the parameter type, never null.
    • getValues

      Object[] getValues()
      Returns the raw parameter values of the underlying query method.
      Returns:
      the raw parameter values passed to the underlying query method.
      Since:
      1.5
    • getQueryOptions

      @Nullable QueryOptions getQueryOptions()
      Returns the QueryOptions associated with the associated Repository query method.
      Returns:
      the QueryOptions or null if none.
      Since:
      2.0