Interface CassandraParameterAccessor
- All Superinterfaces:
Iterable<Object>, ParameterAccessor
- All Known Implementing Classes:
CassandraParametersParameterAccessor, ConvertingParameterAccessor
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 TypeMethodDescription@Nullable CassandraTypefindCassandraType(int index) Returns theCassandraTypefor the declared method parameter.@Nullable com.datastax.oss.driver.api.core.type.DataTypegetDataType(int index) Returns the CassandraDataTypefor the declared parameter if the type is asimple type.Class<?> getParameterType(int index) The actual parameter type (after unwrapping).@Nullable QueryOptionsReturns theQueryOptionsassociated with the associated Repository query method.@Nullable ScoringFunction@Nullable ObjectgetValue(int parameterIndex) Get the value of the parameter at the given index.Object[]Returns the raw parameter values of the underlying query method.Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ParameterAccessor
findDynamicProjection, getBindableValue, getLimit, getPageable, getScore, getScoreRange, getSort, getVector, hasBindableNullValue, iterator
-
Method Details
-
findCassandraType
Returns theCassandraTypefor the declared method parameter.- Parameters:
index- the parameter index- Returns:
- the Cassandra
CassandraTypeor null. - See Also:
-
getDataType
@Nullable com.datastax.oss.driver.api.core.type.DataType getDataType(int index) Returns the CassandraDataTypefor the declared parameter if the type is asimple type. Parameter types may be specified usingCassandraType.- Parameters:
index- the parameter index- Returns:
- the Cassandra
DataTypeor null if the parameter type cannot be determined fromCassandraSimpleTypeHolder - See Also:
-
getParameterType
The actual parameter type (after unwrapping).- Parameters:
index- the parameter index- Returns:
- the parameter type, never null.
-
getValue
Get the value of the parameter at the given index. In contrast toParameterAccessor.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:
getScrollPositionin interfaceParameterAccessor
-
getScoringFunction
@Nullable ScoringFunction getScoringFunction()- Returns:
- the scoring function or null if none is provided.
- Since:
- 5.0
-
getQueryOptions
@Nullable QueryOptions getQueryOptions()Returns theQueryOptionsassociated with the associated Repository query method.- Returns:
- the
QueryOptionsor null if none. - Since:
- 2.0
-