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
ConstructorsConstructorDescriptionJmixParameters(org.springframework.data.repository.query.ParametersSource parametersSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected JmixParameterscreateFrom(List<JmixParameter> parameters) protected intfindParameterIndexByType(Class<?> clazz) intintbooleanbooleanMethods inherited from class org.springframework.data.repository.query.Parameters
getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getLimitIndex, getNumberOfParameters, getPageableIndex, getParameter, getScrollPositionIndex, getSortIndex, hasDynamicProjection, hasLimitParameter, hasPageableParameter, hasParameterAt, hasScrollPositionParameter, 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
-
JmixParameters
public JmixParameters(org.springframework.data.repository.query.ParametersSource parametersSource)
-
-
Method Details
-
findParameterIndexByType
-
createFrom
- Specified by:
createFromin classorg.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
-
hasFetchPlanParameter
public boolean hasFetchPlanParameter() -
getFetchPlanIndex
public int getFetchPlanIndex() -
hasJmixContextIndex
public boolean hasJmixContextIndex()- Returns:
- whether
JmixDataRepositoryContextargument is present in theMethod's parameter list
-
getJmixContextIndex
public int getJmixContextIndex()- Returns:
- the index of the
JmixDataRepositoryContextMethodparameter if available. Will return -1 if there is noJmixDataRepositoryContextargument in theMethod's parameter list.
-