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.
See Also:
  • Field Details

    • method

      protected final Method 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

      protected UnconstrainedDataManager dataManager
      UnconstrainedDataManager or DataManager will be chosen depending on ApplyConstraints annotation on method/repository or ancestor method/repository
    • jmixMetadata

      protected Metadata jmixMetadata
    • namedParametersBindings

      protected Map<String,Integer> namedParametersBindings
    • sortIndex

      protected int sortIndex
    • pageableIndex

      protected int pageableIndex
    • queryHints

      protected Map<String,Serializable> queryHints
    • fetchPlan

      protected String 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 interface org.springframework.data.repository.query.RepositoryQuery
    • getDataManager

      public UnconstrainedDataManager getDataManager()
    • buildNamedParametersMap

      protected Map<String,Object> buildNamedParametersMap(Object[] values)
    • processSpecialParameters

      protected void processSpecialParameters()
    • formatMethod

      protected static String formatMethod(Method method)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getQueryDescription

      protected String getQueryDescription()