Package io.jmix.eclipselink.impl
Class JmixEclipseLinkQuery<E>
java.lang.Object
io.jmix.eclipselink.impl.JmixEclipseLinkQuery<E>
- All Implemented Interfaces:
JmixQuery<E>
,jakarta.persistence.Query
,jakarta.persistence.TypedQuery<E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<AdditionalCriteriaProvider>
protected org.springframework.beans.factory.BeanFactory
protected boolean
protected Collection<QueryConstantHandler>
protected DbmsSpecifics
protected EntityChangedEventManager
protected EntityFetcher
protected org.springframework.core.env.Environment
protected ExtendedEntities
protected FetchGroupManager
protected FetchPlanRepository
protected Integer
protected jakarta.persistence.FlushModeType
protected QueryHintsProcessor
protected boolean
protected jakarta.persistence.LockModeType
protected Collection<QueryMacroHandler>
protected Integer
protected Metadata
protected MetadataTools
protected Set<io.jmix.eclipselink.impl.JmixEclipseLinkQuery.Param>
protected org.eclipse.persistence.jpa.JpaQuery
protected QueryCacheManager
protected QueryParamValuesManager
protected String
protected QueryTransformerFactory
protected boolean
protected EclipselinkPersistenceSupport
protected String
-
Constructor Summary
ConstructorDescriptionJmixEclipseLinkQuery
(jakarta.persistence.EntityManager entityManager, org.springframework.beans.factory.BeanFactory beanFactory, boolean isNative, String qlString, Class<E> resultClass) -
Method Summary
Modifier and TypeMethodDescriptionint
int
jakarta.persistence.FlushModeType
getHints()
jakarta.persistence.LockModeType
int
jakarta.persistence.Parameter<?>
getParameter
(int position) <T> jakarta.persistence.Parameter<T>
getParameter
(int position, Class<T> type) jakarta.persistence.Parameter<?>
getParameter
(String name) <T> jakarta.persistence.Parameter<T>
getParameter
(String name, Class<T> type) Set<jakarta.persistence.Parameter<?>>
getParameterValue
(int position) <T> T
getParameterValue
(jakarta.persistence.Parameter<T> param) getParameterValue
(String name) boolean
isBound
(jakarta.persistence.Parameter<?> param) jakarta.persistence.TypedQuery<E>
setFirstResult
(int startPosition) jakarta.persistence.TypedQuery<E>
setFlushMode
(jakarta.persistence.FlushModeType flushMode) jakarta.persistence.TypedQuery<E>
jakarta.persistence.TypedQuery<E>
setLockMode
(jakarta.persistence.LockModeType lockMode) jakarta.persistence.TypedQuery<E>
setMaxResults
(int maxResult) jakarta.persistence.TypedQuery<E>
setParameter
(int position, Object value) jakarta.persistence.TypedQuery<E>
setParameter
(int position, Calendar value, jakarta.persistence.TemporalType temporalType) jakarta.persistence.TypedQuery<E>
setParameter
(int position, Date value, jakarta.persistence.TemporalType temporalType) jakarta.persistence.TypedQuery<E>
setParameter
(jakarta.persistence.Parameter<Calendar> param, Calendar value, jakarta.persistence.TemporalType temporalType) jakarta.persistence.TypedQuery<E>
setParameter
(jakarta.persistence.Parameter<Date> param, Date value, jakarta.persistence.TemporalType temporalType) <T> jakarta.persistence.TypedQuery<E>
setParameter
(jakarta.persistence.Parameter<T> param, T value) jakarta.persistence.TypedQuery<E>
setParameter
(String name, Object value) jakarta.persistence.TypedQuery<E>
setParameter
(String name, Calendar value, jakarta.persistence.TemporalType temporalType) jakarta.persistence.TypedQuery<E>
setParameter
(String name, Date value, jakarta.persistence.TemporalType temporalType) void
setQueryString
(String queryString) void
setSingleResultExpected
(boolean singleResultExpected) <T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.TypedQuery
getResultStream
-
Field Details
-
beanFactory
protected org.springframework.beans.factory.BeanFactory beanFactory -
environment
protected org.springframework.core.env.Environment environment -
metadata
-
metadataTools
-
extendedEntities
-
fetchPlanRepository
-
support
-
entityChangedEventManager
-
fetchGroupMgr
-
entityFetcher
-
queryCacheMgr
-
queryTransformerFactory
-
hintsProcessor
-
dbmsSpecifics
-
macroHandlers
-
constantHandlers
-
additionalCriteriaProviders
-
queryParamValuesManager
-
query
protected org.eclipse.persistence.jpa.JpaQuery query -
isNative
protected boolean isNative -
queryString
-
transformedQueryString
-
params
-
hints
-
lockMode
protected jakarta.persistence.LockModeType lockMode -
fetchPlans
-
maxResults
-
firstResult
-
singleResultExpected
protected boolean singleResultExpected -
cacheable
protected boolean cacheable -
flushMode
protected jakarta.persistence.FlushModeType flushMode
-
-
Constructor Details
-
JmixEclipseLinkQuery
-
-
Method Details
-
getResultList
- Specified by:
getResultList
in interfacejakarta.persistence.Query
- Specified by:
getResultList
in interfacejakarta.persistence.TypedQuery<E>
-
getSingleResult
- Specified by:
getSingleResult
in interfacejakarta.persistence.Query
- Specified by:
getSingleResult
in interfacejakarta.persistence.TypedQuery<E>
-
setMaxResults
- Specified by:
setMaxResults
in interfacejakarta.persistence.Query
- Specified by:
setMaxResults
in interfacejakarta.persistence.TypedQuery<E>
-
setFirstResult
- Specified by:
setFirstResult
in interfacejakarta.persistence.Query
- Specified by:
setFirstResult
in interfacejakarta.persistence.TypedQuery<E>
-
setHint
- Specified by:
setHint
in interfacejakarta.persistence.Query
- Specified by:
setHint
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
public <T> jakarta.persistence.TypedQuery<E> setParameter(jakarta.persistence.Parameter<T> param, T value) - Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.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 interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.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 interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
- Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
public jakarta.persistence.TypedQuery<E> setParameter(String name, Calendar value, jakarta.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
public jakarta.persistence.TypedQuery<E> setParameter(String name, Date value, jakarta.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
- Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
public jakarta.persistence.TypedQuery<E> setParameter(int position, Calendar value, jakarta.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setParameter
public jakarta.persistence.TypedQuery<E> setParameter(int position, Date value, jakarta.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejakarta.persistence.Query
- Specified by:
setParameter
in interfacejakarta.persistence.TypedQuery<E>
-
setFlushMode
- Specified by:
setFlushMode
in interfacejakarta.persistence.Query
- Specified by:
setFlushMode
in interfacejakarta.persistence.TypedQuery<E>
-
setLockMode
- Specified by:
setLockMode
in interfacejakarta.persistence.Query
- Specified by:
setLockMode
in interfacejakarta.persistence.TypedQuery<E>
-
executeUpdate
public int executeUpdate()- Specified by:
executeUpdate
in interfacejakarta.persistence.Query
-
getMaxResults
public int getMaxResults()- Specified by:
getMaxResults
in interfacejakarta.persistence.Query
-
getFirstResult
public int getFirstResult()- Specified by:
getFirstResult
in interfacejakarta.persistence.Query
-
getHints
- Specified by:
getHints
in interfacejakarta.persistence.Query
-
getParameters
- Specified by:
getParameters
in interfacejakarta.persistence.Query
-
getParameter
- Specified by:
getParameter
in interfacejakarta.persistence.Query
-
getParameter
- Specified by:
getParameter
in interfacejakarta.persistence.Query
-
getParameter
public jakarta.persistence.Parameter<?> getParameter(int position) - Specified by:
getParameter
in interfacejakarta.persistence.Query
-
getParameter
- Specified by:
getParameter
in interfacejakarta.persistence.Query
-
isBound
public boolean isBound(jakarta.persistence.Parameter<?> param) - Specified by:
isBound
in interfacejakarta.persistence.Query
-
getParameterValue
public <T> T getParameterValue(jakarta.persistence.Parameter<T> param) - Specified by:
getParameterValue
in interfacejakarta.persistence.Query
-
getParameterValue
- Specified by:
getParameterValue
in interfacejakarta.persistence.Query
-
getParameterValue
- Specified by:
getParameterValue
in interfacejakarta.persistence.Query
-
getFlushMode
public jakarta.persistence.FlushModeType getFlushMode()- Specified by:
getFlushMode
in interfacejakarta.persistence.Query
-
getLockMode
public jakarta.persistence.LockModeType getLockMode()- Specified by:
getLockMode
in interfacejakarta.persistence.Query
-
unwrap
- Specified by:
unwrap
in interfacejakarta.persistence.Query
-
getSingleResultOrNull
-
getQueryString
- Specified by:
getQueryString
in interfaceJmixQuery<E>
-
setQueryString
- Specified by:
setQueryString
in interfaceJmixQuery<E>
-
setSingleResultExpected
public void setSingleResultExpected(boolean singleResultExpected)
-