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 theCassandraTypefor the declared method parameter.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).Returns theQueryOptionsassociated 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, spliteratorMethods inherited from interface org.springframework.data.repository.query.ParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getScrollPosition, getSort, hasBindableNullValue, iterator
-
Method Details
-
findCassandraType
Returns theCassandraTypefor the declared method parameter.- Parameters:
index- the parameter index- Returns:
- the Cassandra
CassandraTypeor null. - See Also:
-
getDataType
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.
-
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
Returns theQueryOptionsassociated with the associated Repository query method.- Returns:
- the
QueryOptionsor null if none. - Since:
- 2.0
-