Class JmixAbstractQuery
java.lang.Object
io.jmix.core.impl.repository.query.JmixAbstractQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
- Direct Known Subclasses:
JmixCustomLoadQuery
,JmixStructuredQuery
public abstract class JmixAbstractQuery
extends Object
implements org.springframework.data.repository.query.RepositoryQuery
Query implementation for Jmix. If you need different types of queries, you can either extend this class or implement parent interface.
-
Field Summary
Modifier and TypeFieldDescriptionprotected UnconstrainedDataManager
UnconstrainedDataManager
orDataManager
will be chosen depending onApplyConstraints
annotation on method/repository or ancestor method/repositoryprotected final org.springframework.data.projection.ProjectionFactory
protected String
protected Metadata
protected final org.springframework.data.repository.core.RepositoryMetadata
protected final Method
protected int
protected Map<String,
Serializable> protected final org.springframework.data.repository.query.QueryMethod
protected int
-
Constructor Summary
ConstructorDescriptionJmixAbstractQuery
(DataManager dataManager, Metadata jmixMetadata, Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionbuildNamedParametersMap
(Object[] values) protected static String
formatMethod
(Method method) protected String
org.springframework.data.repository.query.QueryMethod
protected void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.query.RepositoryQuery
execute
-
Field Details
-
method
-
metadata
protected final org.springframework.data.repository.core.RepositoryMetadata metadata -
factory
protected final org.springframework.data.projection.ProjectionFactory factory -
queryMethod
protected final org.springframework.data.repository.query.QueryMethod queryMethod -
dataManager
UnconstrainedDataManager
orDataManager
will be chosen depending onApplyConstraints
annotation on method/repository or ancestor method/repository -
jmixMetadata
-
namedParametersBindings
-
sortIndex
protected int sortIndex -
pageableIndex
protected int pageableIndex -
queryHints
-
fetchPlan
-
-
Constructor Details
-
JmixAbstractQuery
public JmixAbstractQuery(DataManager dataManager, Metadata jmixMetadata, Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
-
-
Method Details
-
getQueryMethod
public org.springframework.data.repository.query.QueryMethod getQueryMethod()- Specified by:
getQueryMethod
in interfaceorg.springframework.data.repository.query.RepositoryQuery
-
getDataManager
-
buildNamedParametersMap
-
processSpecialParameters
protected void processSpecialParameters() -
formatMethod
-
toString
-
getQueryDescription
-