Class JmixQueryLookupStrategy
java.lang.Object
io.jmix.core.impl.repository.query.utils.JmixQueryLookupStrategy
- All Implemented Interfaces:
org.springframework.data.repository.query.QueryLookupStrategy
public class JmixQueryLookupStrategy
extends Object
implements org.springframework.data.repository.query.QueryLookupStrategy
Determines query type and creates
RepositoryQueries for Jmix data repositories-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.query.QueryLookupStrategy
org.springframework.data.repository.query.QueryLookupStrategy.Key -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJmixQueryLookupStrategy(DataManager dataManager, Metadata jmixMetadata, FetchPlanRepository fetchPlanRepository, List<QueryStringProcessor> processors) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks whether the return type of themethodallows omitting the definition of return properties.protected booleanisEntityReturnType(Method method) org.springframework.data.repository.query.RepositoryQueryresolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries)
-
Field Details
-
PROPERTY_NAME
Property name forKeyValueEntity- See Also:
-
-
Constructor Details
-
JmixQueryLookupStrategy
public JmixQueryLookupStrategy(DataManager dataManager, Metadata jmixMetadata, FetchPlanRepository fetchPlanRepository, List<QueryStringProcessor> processors)
-
-
Method Details
-
resolveQuery
public org.springframework.data.repository.query.RepositoryQuery resolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries) - Specified by:
resolveQueryin interfaceorg.springframework.data.repository.query.QueryLookupStrategy
-
isEntityReturnType
-
checkPropertyNamesGenerationPossible
Checks whether the return type of themethodallows omitting the definition of return properties.- Throws:
DevelopmentException- in case ofKeyValueEntitybeing returned because it may contain any number of return properties
-