Class JmixCustomLoadQuery
java.lang.Object
io.jmix.core.impl.repository.query.JmixAbstractQuery
io.jmix.core.impl.repository.query.JmixCustomLoadQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
RepositoryQuery
for query methods annotated with @Query
.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected String
Fields inherited from class io.jmix.core.impl.repository.query.JmixAbstractQuery
dataManager, factory, fetchPlanByAnnotation, fetchPlanIndex, fetchPlanRepository, jmixContextIndex, jmixMetadata, metadata, method, namedParametersBindings, pageableIndex, queryHints, queryMethod, queryStringProcessors, sortIndex
-
Constructor Summary
ConstructorDescriptionJmixCustomLoadQuery
(DataManager dataManager, Metadata jmixMetadata, FetchPlanRepository fetchPlanRepository, List<QueryStringProcessor> queryStringProcessors, Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, String query) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected void
matchQueryParameters
(Set<String> parameterNames, org.springframework.data.repository.query.Parameters<? extends org.springframework.data.repository.query.Parameters, ? extends org.springframework.data.repository.query.Parameter> bindableParameters, boolean fromPositionParameters) protected LoadContext<?>
prepareQueryContext
(Object[] parameters) Methods inherited from class io.jmix.core.impl.repository.query.JmixAbstractQuery
buildNamedParametersMap, collectHints, execute, formatMethod, getDataManager, getQueryMethod, getSortFromParams, processAccordingToReturnType, processSpecialParameters, setupFetchPlan, toString
-
Field Details
-
PARAMETER_TEMPLATE
- See Also:
-
PARAMETER_PREFIX
- See Also:
-
query
-
-
Constructor Details
-
JmixCustomLoadQuery
public JmixCustomLoadQuery(DataManager dataManager, Metadata jmixMetadata, FetchPlanRepository fetchPlanRepository, List<QueryStringProcessor> queryStringProcessors, Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, String query)
-
-
Method Details
-
prepareQueryContext
BuildsLoadContext
based onSuitable as is for count query.
- Specified by:
prepareQueryContext
in classJmixAbstractQuery
- Parameters:
parameters
- query method parameters- Returns:
LoadContext
withLoadContext.getQuery()
not null
-
matchQueryParameters
-
getQueryDescription
- Overrides:
getQueryDescription
in classJmixAbstractQuery
-