Interface CassandraParameterAccessor
- All Superinterfaces:
Iterable<Object>
,ParameterAccessor
- All Known Implementing Classes:
CassandraParametersParameterAccessor
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 TypeMethodDescriptionfindCassandraType
(int index) Returns theCassandraType
for the declared method parameter.com.datastax.oss.driver.api.core.type.DataType
getDataType
(int index) Returns the CassandraDataType
for the declared parameter if the type is asimple type
.Class<?>
getParameterType
(int index) The actual parameter type (after unwrapping).Returns theQueryOptions
associated with the associated Repository query method.Object[]
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, getLimit, getPageable, getSort, hasBindableNullValue, iterator
-
Method Details
-
findCassandraType
Returns theCassandraType
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 CassandraDataType
for the declared parameter if the type is asimple type
. Parameter types may be specified usingCassandraType
.- Parameters:
index
- the parameter index- Returns:
- the Cassandra
DataType
or 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.
-
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 interfaceParameterAccessor
-
getQueryOptions
Returns theQueryOptions
associated with the associated Repository query method.- Returns:
- the
QueryOptions
or null if none. - Since:
- 2.0
-