Class CassandraParametersParameterAccessor
java.lang.Object
org.springframework.data.repository.query.ParametersParameterAccessor
org.springframework.data.cassandra.repository.query.CassandraParametersParameterAccessor
- All Implemented Interfaces:
Iterable<Object>
,CassandraParameterAccessor
,ParameterAccessor
public class CassandraParametersParameterAccessor
extends ParametersParameterAccessor
implements CassandraParameterAccessor
Cassandra-specific
ParameterAccessor
exposing Cassandra types
that are supported by the
driver and parameter type.- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionCassandraParametersParameterAccessor
(CassandraQueryMethod method, Object... values) Create a newCassandraParametersParameterAccessor
. -
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
.getLimit()
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 class org.springframework.data.repository.query.ParametersParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getSort, getValue, hasBindableNullValue, iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.springframework.data.repository.query.ParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getSort, hasBindableNullValue, iterator
-
Constructor Details
-
CassandraParametersParameterAccessor
Create a newCassandraParametersParameterAccessor
.- Parameters:
method
- must not be null.values
- must not be null.
-
-
Method Details
-
getDataType
public com.datastax.oss.driver.api.core.type.DataType getDataType(int index) Description copied from interface:CassandraParameterAccessor
Returns the CassandraDataType
for the declared parameter if the type is asimple type
. Parameter types may be specified usingCassandraType
.- Specified by:
getDataType
in interfaceCassandraParameterAccessor
- Parameters:
index
- the parameter index- Returns:
- the Cassandra
DataType
or null if the parameter type cannot be determined fromCassandraSimpleTypeHolder
- See Also:
-
findCassandraType
Description copied from interface:CassandraParameterAccessor
Returns theCassandraType
for the declared method parameter.- Specified by:
findCassandraType
in interfaceCassandraParameterAccessor
- Parameters:
index
- the parameter index- Returns:
- the Cassandra
CassandraType
or null. - See Also:
-
getParameterType
Description copied from interface:CassandraParameterAccessor
The actual parameter type (after unwrapping).- Specified by:
getParameterType
in interfaceCassandraParameterAccessor
- Parameters:
index
- the parameter index- Returns:
- the parameter type, never null.
-
getParameters
- Overrides:
getParameters
in classParametersParameterAccessor
-
getValues
Description copied from interface:CassandraParameterAccessor
Returns the raw parameter values of the underlying query method.- Specified by:
getValues
in interfaceCassandraParameterAccessor
- Overrides:
getValues
in classParametersParameterAccessor
- Returns:
- the raw parameter values passed to the underlying query method.
-
getScrollPosition
- Specified by:
getScrollPosition
in interfaceCassandraParameterAccessor
- Specified by:
getScrollPosition
in interfaceParameterAccessor
- Overrides:
getScrollPosition
in classParametersParameterAccessor
-
getLimit
- Specified by:
getLimit
in interfaceParameterAccessor
- Overrides:
getLimit
in classParametersParameterAccessor
-
getQueryOptions
Description copied from interface:CassandraParameterAccessor
Returns theQueryOptions
associated with the associated Repository query method.- Specified by:
getQueryOptions
in interfaceCassandraParameterAccessor
- Returns:
- the
QueryOptions
or null if none.
-