Interface CassandraParameterAccessor

All Superinterfaces:
Iterable<Object>, ParameterAccessor
All Known Implementing Classes:
CassandraParametersParameterAccessor, ConvertingParameterAccessor

public interface CassandraParameterAccessor extends ParameterAccessor
Cassandra-specific ParameterAccessor exposing a Cassandra types that are supported by the driver and parameter type.
Author:
Matthew Adams, Mark Paluch
  • 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

      @Nullable 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.
    • getValue

      @Nullable Object getValue(int parameterIndex)
      Get the value of the parameter at the given index. In contrast to ParameterAccessor.getBindableValue(int), this method has access to all parameters.
      Parameters:
      parameterIndex -
      Returns:
      Since:
      5.0
    • 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
    • getScrollPosition

      CassandraScrollPosition getScrollPosition()
      Specified by:
      getScrollPosition in interface ParameterAccessor
    • getScoringFunction

      @Nullable ScoringFunction getScoringFunction()
      Returns the ScoringFunction from a Score or Range of scores if such a parameter is declared.
      Returns:
      the scoring function or null if none is provided.
      Since:
      5.0
    • getQueryOptions

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