Class JmixParameters
java.lang.Object
org.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
io.jmix.core.impl.repository.query.JmixParameters
- All Implemented Interfaces:
Iterable<JmixParameter>
,Supplier<Stream<JmixParameter>>
,org.springframework.data.util.Streamable<JmixParameter>
public class JmixParameters
extends org.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
Parameters
extension required to support FetchPlan
and JmixDataRepositoryContext
special parameters.-
Field Summary
Fields inherited from class org.springframework.data.repository.query.Parameters
TYPES
-
Constructor Summary
ConstructorDescriptionJmixParameters
(org.springframework.data.repository.query.ParametersSource parametersSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected JmixParameters
createFrom
(List<JmixParameter> parameters) protected int
findParameterIndexByType
(Class<?> clazz) int
int
boolean
boolean
Methods inherited from class org.springframework.data.repository.query.Parameters
createParameter, getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getLimitIndex, getNumberOfParameters, getPageableIndex, getParameter, getScrollPositionIndex, getSortIndex, hasDynamicProjection, hasLimitParameter, hasPageableParameter, hasParameterAt, hasScrollPositionParameter, hasSortParameter, hasSpecialParameter, isBindable, iterator, potentiallySortsDynamically
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.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, map, stream, toList, toSet
-
Constructor Details
-
JmixParameters
public JmixParameters(org.springframework.data.repository.query.ParametersSource parametersSource)
-
-
Method Details
-
findParameterIndexByType
-
createFrom
- Specified by:
createFrom
in classorg.springframework.data.repository.query.Parameters<JmixParameters,
JmixParameter>
-
hasFetchPlanParameter
public boolean hasFetchPlanParameter() -
getFetchPlanIndex
public int getFetchPlanIndex() -
hasJmixContextIndex
public boolean hasJmixContextIndex()- Returns:
- whether
JmixDataRepositoryContext
argument is present in theMethod
's parameter list
-
getJmixContextIndex
public int getJmixContextIndex()- Returns:
- the index of the
JmixDataRepositoryContext
Method
parameter if available. Will return -1 if there is noJmixDataRepositoryContext
argument in theMethod
's parameter list.
-