Package io.jmix.eclipselink.impl
Class JmixEclipseLinkQuery<E>
java.lang.Object
io.jmix.eclipselink.impl.JmixEclipseLinkQuery<E>
- All Implemented Interfaces:
JmixQuery<E>
,javax.persistence.Query
,javax.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 javax.persistence.FlushModeType
protected QueryHintsProcessor
protected boolean
protected javax.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
(javax.persistence.EntityManager entityManager, org.springframework.beans.factory.BeanFactory beanFactory, boolean isNative, String qlString, Class<E> resultClass) -
Method Summary
Modifier and TypeMethodDescriptionint
int
javax.persistence.FlushModeType
getHints()
javax.persistence.LockModeType
int
javax.persistence.Parameter<?>
getParameter
(int position) <T> javax.persistence.Parameter<T>
getParameter
(int position, Class<T> type) javax.persistence.Parameter<?>
getParameter
(String name) <T> javax.persistence.Parameter<T>
getParameter
(String name, Class<T> type) Set<javax.persistence.Parameter<?>>
getParameterValue
(int position) getParameterValue
(String name) <T> T
getParameterValue
(javax.persistence.Parameter<T> param) boolean
isBound
(javax.persistence.Parameter<?> param) javax.persistence.TypedQuery<E>
setFirstResult
(int startPosition) javax.persistence.TypedQuery<E>
setFlushMode
(javax.persistence.FlushModeType flushMode) javax.persistence.TypedQuery<E>
javax.persistence.TypedQuery<E>
setLockMode
(javax.persistence.LockModeType lockMode) javax.persistence.TypedQuery<E>
setMaxResults
(int maxResult) javax.persistence.TypedQuery<E>
setParameter
(int position, Object value) javax.persistence.TypedQuery<E>
setParameter
(int position, Calendar value, javax.persistence.TemporalType temporalType) javax.persistence.TypedQuery<E>
setParameter
(int position, Date value, javax.persistence.TemporalType temporalType) javax.persistence.TypedQuery<E>
setParameter
(String name, Object value) javax.persistence.TypedQuery<E>
setParameter
(String name, Calendar value, javax.persistence.TemporalType temporalType) javax.persistence.TypedQuery<E>
setParameter
(String name, Date value, javax.persistence.TemporalType temporalType) javax.persistence.TypedQuery<E>
setParameter
(javax.persistence.Parameter<Calendar> param, Calendar value, javax.persistence.TemporalType temporalType) javax.persistence.TypedQuery<E>
setParameter
(javax.persistence.Parameter<Date> param, Date value, javax.persistence.TemporalType temporalType) <T> javax.persistence.TypedQuery<E>
setParameter
(javax.persistence.Parameter<T> param, T value) 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 javax.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 javax.persistence.LockModeType lockMode -
fetchPlans
-
maxResults
-
firstResult
-
singleResultExpected
protected boolean singleResultExpected -
cacheable
protected boolean cacheable -
flushMode
protected javax.persistence.FlushModeType flushMode
-
-
Constructor Details
-
JmixEclipseLinkQuery
-
-
Method Details
-
getResultList
- Specified by:
getResultList
in interfacejavax.persistence.Query
- Specified by:
getResultList
in interfacejavax.persistence.TypedQuery<E>
-
getSingleResult
- Specified by:
getSingleResult
in interfacejavax.persistence.Query
- Specified by:
getSingleResult
in interfacejavax.persistence.TypedQuery<E>
-
setMaxResults
- Specified by:
setMaxResults
in interfacejavax.persistence.Query
- Specified by:
setMaxResults
in interfacejavax.persistence.TypedQuery<E>
-
setFirstResult
- Specified by:
setFirstResult
in interfacejavax.persistence.Query
- Specified by:
setFirstResult
in interfacejavax.persistence.TypedQuery<E>
-
setHint
- Specified by:
setHint
in interfacejavax.persistence.Query
- Specified by:
setHint
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public <T> javax.persistence.TypedQuery<E> setParameter(javax.persistence.Parameter<T> param, T value) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public javax.persistence.TypedQuery<E> setParameter(javax.persistence.Parameter<Calendar> param, Calendar value, javax.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public javax.persistence.TypedQuery<E> setParameter(javax.persistence.Parameter<Date> param, Date value, javax.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public javax.persistence.TypedQuery<E> setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public javax.persistence.TypedQuery<E> setParameter(String name, Date value, javax.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public javax.persistence.TypedQuery<E> setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setParameter
public javax.persistence.TypedQuery<E> setParameter(int position, Date value, javax.persistence.TemporalType temporalType) - Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<E>
-
setFlushMode
- Specified by:
setFlushMode
in interfacejavax.persistence.Query
- Specified by:
setFlushMode
in interfacejavax.persistence.TypedQuery<E>
-
setLockMode
- Specified by:
setLockMode
in interfacejavax.persistence.Query
- Specified by:
setLockMode
in interfacejavax.persistence.TypedQuery<E>
-
executeUpdate
public int executeUpdate()- Specified by:
executeUpdate
in interfacejavax.persistence.Query
-
getMaxResults
public int getMaxResults()- Specified by:
getMaxResults
in interfacejavax.persistence.Query
-
getFirstResult
public int getFirstResult()- Specified by:
getFirstResult
in interfacejavax.persistence.Query
-
getHints
- Specified by:
getHints
in interfacejavax.persistence.Query
-
getParameters
- Specified by:
getParameters
in interfacejavax.persistence.Query
-
getParameter
- Specified by:
getParameter
in interfacejavax.persistence.Query
-
getParameter
- Specified by:
getParameter
in interfacejavax.persistence.Query
-
getParameter
public javax.persistence.Parameter<?> getParameter(int position) - Specified by:
getParameter
in interfacejavax.persistence.Query
-
getParameter
- Specified by:
getParameter
in interfacejavax.persistence.Query
-
isBound
public boolean isBound(javax.persistence.Parameter<?> param) - Specified by:
isBound
in interfacejavax.persistence.Query
-
getParameterValue
public <T> T getParameterValue(javax.persistence.Parameter<T> param) - Specified by:
getParameterValue
in interfacejavax.persistence.Query
-
getParameterValue
- Specified by:
getParameterValue
in interfacejavax.persistence.Query
-
getParameterValue
- Specified by:
getParameterValue
in interfacejavax.persistence.Query
-
getFlushMode
public javax.persistence.FlushModeType getFlushMode()- Specified by:
getFlushMode
in interfacejavax.persistence.Query
-
getLockMode
public javax.persistence.LockModeType getLockMode()- Specified by:
getLockMode
in interfacejavax.persistence.Query
-
unwrap
- Specified by:
unwrap
in interfacejavax.persistence.Query
-
getSingleResultOrNull
-
getQueryString
- Specified by:
getQueryString
in interfaceJmixQuery<E>
-
setQueryString
- Specified by:
setQueryString
in interfaceJmixQuery<E>
-
setSingleResultExpected
public void setSingleResultExpected(boolean singleResultExpected)
-