Class JmixEclipseLinkQuery<E>

java.lang.Object
io.jmix.eclipselink.impl.JmixEclipseLinkQuery<E>
All Implemented Interfaces:
JmixQuery<E>, jakarta.persistence.Query, jakarta.persistence.TypedQuery<E>

public class JmixEclipseLinkQuery<E> extends Object implements JmixQuery<E>
  • Field Details

    • beanFactory

      protected org.springframework.beans.factory.BeanFactory beanFactory
    • environment

      protected org.springframework.core.env.Environment environment
    • metadata

      protected Metadata metadata
    • metadataTools

      protected MetadataTools metadataTools
    • extendedEntities

      protected ExtendedEntities extendedEntities
    • fetchPlanRepository

      protected FetchPlanRepository fetchPlanRepository
    • support

      protected EclipselinkPersistenceSupport support
    • entityChangedEventManager

      protected EntityChangedEventManager entityChangedEventManager
    • fetchGroupMgr

      protected FetchGroupManager fetchGroupMgr
    • entityFetcher

      protected EntityFetcher entityFetcher
    • queryCacheMgr

      protected QueryCacheManager queryCacheMgr
    • queryTransformerFactory

      protected QueryTransformerFactory queryTransformerFactory
    • hintsProcessor

      protected QueryHintsProcessor hintsProcessor
    • dbmsSpecifics

      protected DbmsSpecifics dbmsSpecifics
    • macroHandlers

      protected Collection<QueryMacroHandler> macroHandlers
    • constantHandlers

      protected Collection<QueryConstantHandler> constantHandlers
    • additionalCriteriaProviders

      protected List<AdditionalCriteriaProvider> additionalCriteriaProviders
    • queryParamValuesManager

      protected QueryParamValuesManager queryParamValuesManager
    • query

      protected org.eclipse.persistence.jpa.JpaQuery query
    • isNative

      protected boolean isNative
    • queryString

      protected String queryString
    • transformedQueryString

      protected String transformedQueryString
    • params

      protected Set<io.jmix.eclipselink.impl.JmixEclipseLinkQuery.Param> params
    • hints

      protected Map<String,Object> hints
    • lockMode

      protected jakarta.persistence.LockModeType lockMode
    • fetchPlans

      protected List<FetchPlan> fetchPlans
    • maxResults

      protected Integer maxResults
    • firstResult

      protected Integer firstResult
    • singleResultExpected

      protected boolean singleResultExpected
    • cacheable

      protected boolean cacheable
    • flushMode

      protected jakarta.persistence.FlushModeType flushMode
  • Constructor Details

    • JmixEclipseLinkQuery

      public JmixEclipseLinkQuery(jakarta.persistence.EntityManager entityManager, org.springframework.beans.factory.BeanFactory beanFactory, boolean isNative, String qlString, @Nullable Class<E> resultClass)
  • Method Details

    • getResultList

      public List<E> getResultList()
      Specified by:
      getResultList in interface jakarta.persistence.Query
      Specified by:
      getResultList in interface jakarta.persistence.TypedQuery<E>
    • getSingleResult

      public E getSingleResult()
      Specified by:
      getSingleResult in interface jakarta.persistence.Query
      Specified by:
      getSingleResult in interface jakarta.persistence.TypedQuery<E>
    • setMaxResults

      public jakarta.persistence.TypedQuery<E> setMaxResults(int maxResult)
      Specified by:
      setMaxResults in interface jakarta.persistence.Query
      Specified by:
      setMaxResults in interface jakarta.persistence.TypedQuery<E>
    • setFirstResult

      public jakarta.persistence.TypedQuery<E> setFirstResult(int startPosition)
      Specified by:
      setFirstResult in interface jakarta.persistence.Query
      Specified by:
      setFirstResult in interface jakarta.persistence.TypedQuery<E>
    • setHint

      public jakarta.persistence.TypedQuery<E> setHint(String hintName, Object value)
      Specified by:
      setHint in interface jakarta.persistence.Query
      Specified by:
      setHint in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public <T> jakarta.persistence.TypedQuery<E> setParameter(jakarta.persistence.Parameter<T> param, T value)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(jakarta.persistence.Parameter<Calendar> param, Calendar value, jakarta.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(jakarta.persistence.Parameter<Date> param, Date value, jakarta.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(String name, Object value)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(String name, Calendar value, jakarta.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(String name, Date value, jakarta.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(int position, Object value)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(int position, Calendar value, jakarta.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setParameter

      public jakarta.persistence.TypedQuery<E> setParameter(int position, Date value, jakarta.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface jakarta.persistence.Query
      Specified by:
      setParameter in interface jakarta.persistence.TypedQuery<E>
    • setFlushMode

      public jakarta.persistence.TypedQuery<E> setFlushMode(jakarta.persistence.FlushModeType flushMode)
      Specified by:
      setFlushMode in interface jakarta.persistence.Query
      Specified by:
      setFlushMode in interface jakarta.persistence.TypedQuery<E>
    • setLockMode

      public jakarta.persistence.TypedQuery<E> setLockMode(jakarta.persistence.LockModeType lockMode)
      Specified by:
      setLockMode in interface jakarta.persistence.Query
      Specified by:
      setLockMode in interface jakarta.persistence.TypedQuery<E>
    • executeUpdate

      public int executeUpdate()
      Specified by:
      executeUpdate in interface jakarta.persistence.Query
    • getMaxResults

      public int getMaxResults()
      Specified by:
      getMaxResults in interface jakarta.persistence.Query
    • getFirstResult

      public int getFirstResult()
      Specified by:
      getFirstResult in interface jakarta.persistence.Query
    • getHints

      public Map<String,Object> getHints()
      Specified by:
      getHints in interface jakarta.persistence.Query
    • getParameters

      public Set<jakarta.persistence.Parameter<?>> getParameters()
      Specified by:
      getParameters in interface jakarta.persistence.Query
    • getParameter

      public jakarta.persistence.Parameter<?> getParameter(String name)
      Specified by:
      getParameter in interface jakarta.persistence.Query
    • getParameter

      public <T> jakarta.persistence.Parameter<T> getParameter(String name, Class<T> type)
      Specified by:
      getParameter in interface jakarta.persistence.Query
    • getParameter

      public jakarta.persistence.Parameter<?> getParameter(int position)
      Specified by:
      getParameter in interface jakarta.persistence.Query
    • getParameter

      public <T> jakarta.persistence.Parameter<T> getParameter(int position, Class<T> type)
      Specified by:
      getParameter in interface jakarta.persistence.Query
    • isBound

      public boolean isBound(jakarta.persistence.Parameter<?> param)
      Specified by:
      isBound in interface jakarta.persistence.Query
    • getParameterValue

      public <T> T getParameterValue(jakarta.persistence.Parameter<T> param)
      Specified by:
      getParameterValue in interface jakarta.persistence.Query
    • getParameterValue

      public Object getParameterValue(String name)
      Specified by:
      getParameterValue in interface jakarta.persistence.Query
    • getParameterValue

      public Object getParameterValue(int position)
      Specified by:
      getParameterValue in interface jakarta.persistence.Query
    • getFlushMode

      public jakarta.persistence.FlushModeType getFlushMode()
      Specified by:
      getFlushMode in interface jakarta.persistence.Query
    • getLockMode

      public jakarta.persistence.LockModeType getLockMode()
      Specified by:
      getLockMode in interface jakarta.persistence.Query
    • unwrap

      public <T> T unwrap(Class<T> cls)
      Specified by:
      unwrap in interface jakarta.persistence.Query
    • getSingleResultOrNull

      @Nullable public E getSingleResultOrNull()
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface JmixQuery<E>
    • setQueryString

      public void setQueryString(String queryString)
      Specified by:
      setQueryString in interface JmixQuery<E>
    • setSingleResultExpected

      public void setSingleResultExpected(boolean singleResultExpected)