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
ConstructorsConstructorDescriptionCassandraParametersParameterAccessor(CassandraQueryMethod method, Object... values) Create a newCassandraParametersParameterAccessor. -
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 class org.springframework.data.repository.query.ParametersParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getScrollPosition, getSort, getValue, hasBindableNullValue, iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.springframework.data.repository.query.ParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getScrollPosition, 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:CassandraParameterAccessorReturns the CassandraDataTypefor the declared parameter if the type is asimple type. Parameter types may be specified usingCassandraType.- Specified by:
getDataTypein interfaceCassandraParameterAccessor- Parameters:
index- the parameter index- Returns:
- the Cassandra
DataTypeor null if the parameter type cannot be determined fromCassandraSimpleTypeHolder - See Also:
-
findCassandraType
Description copied from interface:CassandraParameterAccessorReturns theCassandraTypefor the declared method parameter.- Specified by:
findCassandraTypein interfaceCassandraParameterAccessor- Parameters:
index- the parameter index- Returns:
- the Cassandra
CassandraTypeor null. - See Also:
-
getParameterType
Description copied from interface:CassandraParameterAccessorThe actual parameter type (after unwrapping).- Specified by:
getParameterTypein interfaceCassandraParameterAccessor- Parameters:
index- the parameter index- Returns:
- the parameter type, never null.
-
getParameters
- Overrides:
getParametersin classParametersParameterAccessor
-
getValues
Description copied from interface:CassandraParameterAccessorReturns the raw parameter values of the underlying query method.- Specified by:
getValuesin interfaceCassandraParameterAccessor- Overrides:
getValuesin classParametersParameterAccessor- Returns:
- the raw parameter values passed to the underlying query method.
-
getQueryOptions
Description copied from interface:CassandraParameterAccessorReturns theQueryOptionsassociated with the associated Repository query method.- Specified by:
getQueryOptionsin interfaceCassandraParameterAccessor- Returns:
- the
QueryOptionsor null if none.
-