Class CassandraParameters
java.lang.Object
org.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
org.springframework.data.cassandra.repository.query.CassandraParameters
- All Implemented Interfaces:
Iterable<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>,Supplier<Stream<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>>,org.springframework.data.util.Streamable<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
public class CassandraParameters
extends org.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
Custom extension of
Parameters discovering additional properties of query method parameters.- Author:
- Matthew Adams, Mark Paluch
-
Field Summary
Fields inherited from class org.springframework.data.repository.query.Parameters
TYPES -
Constructor Summary
ConstructorsConstructorDescriptionCassandraParameters(Method method) Create a newCassandraParametersinstance from the givenMethod -
Method Summary
Modifier and TypeMethodDescriptionprotected CassandraParameterscreateFrom(List<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter> parameters) protected org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParametercreateParameter(org.springframework.core.MethodParameter parameter) intReturns the index of theQueryOptionsparameter to be applied to queries.Methods inherited from class org.springframework.data.repository.query.Parameters
getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getNumberOfParameters, getPageableIndex, getParameter, getSortIndex, hasDynamicProjection, hasPageableParameter, hasParameterAt, hasSortParameter, hasSpecialParameter, isBindable, iterator, potentiallySortsDynamicallyMethods 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.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, map, stream, toList, toSet
-
Constructor Details
-
CassandraParameters
Create a newCassandraParametersinstance from the givenMethod- Parameters:
method- must not be null.
-
-
Method Details
-
createParameter
protected org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter createParameter(org.springframework.core.MethodParameter parameter) - Overrides:
createParameterin classorg.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
-
createFrom
protected CassandraParameters createFrom(List<org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter> parameters) - Specified by:
createFromin classorg.springframework.data.repository.query.Parameters<CassandraParameters,org.springframework.data.cassandra.repository.query.CassandraParameters.CassandraParameter>
-
getQueryOptionsIndex
public int getQueryOptionsIndex()Returns the index of theQueryOptionsparameter to be applied to queries.- Returns:
- Since:
- 2.0
-