Package io.jmix.data.impl
Class JpqlQueryBuilder<Q extends JmixQuery>
java.lang.Object
io.jmix.data.impl.JpqlQueryBuilder<Q>
@Component("data_JpqlQueryBuilder")
@Scope("prototype")
public class JpqlQueryBuilder<Q extends JmixQuery>
extends Object
Builds
Query
instance to use in DataService.-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactory
protected Condition
protected ConditionJpqlGenerator
protected ParameterJpqlGenerator
protected CoreProperties
protected boolean
protected boolean
protected String
protected Object
protected List<?>
protected jakarta.persistence.LockModeType
protected Metadata
protected MetadataTools
protected boolean
protected int
protected QueryParamValuesManager
protected String
protected QueryTransformerFactory
protected String
protected UUID
protected Sort
protected SortJpqlGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
protected void
protected ConditionGenerationContext
createConditionGenerationContext
(Condition condition) protected MetaProperty
getQuery
(jakarta.persistence.EntityManager em) static String
printQuery
(String query) protected void
replaceParamsInMacros
(Q query) protected void
setCondition
(Condition condition) setDistinct
(boolean distinct) setEntityName
(String entityName) setLockMode
(jakarta.persistence.LockModeType lockMode) setPreviousResults
(UUID sessionId, int queryKey) setQueryParameters
(Map<String, Object> queryParams) setQueryString
(String queryString) setValueProperties
(List<String> valueProperties)
-
Field Details
-
id
-
ids
-
queryString
-
queryParameters
-
condition
-
sort
-
entityName
-
valueProperties
-
previousResults
protected boolean previousResults -
sessionId
-
queryKey
protected int queryKey -
countQuery
protected boolean countQuery -
lockMode
protected jakarta.persistence.LockModeType lockMode -
resultQuery
-
resultParameters
-
distinct
protected boolean distinct -
metadata
-
conditionJpqlGenerator
-
conditionParameterJpqlGenerator
-
sortJpqlGenerator
-
queryTransformerFactory
-
metadataTools
-
beanFactory
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory -
queryParamValuesManager
-
coreProperties
-
-
Constructor Details
-
JpqlQueryBuilder
public JpqlQueryBuilder()
-
-
Method Details
-
setId
-
setIds
-
setEntityName
-
setValueProperties
-
setQueryString
-
setQueryParameters
-
setCondition
-
setSort
-
setPreviousResults
-
setCountQuery
-
setLockMode
-
setDistinct
-
getResultQueryString
-
getResultParameters
-
getQuery
-
buildResultQuery
protected void buildResultQuery() -
applySorting
protected void applySorting() -
applyFiltering
protected void applyFiltering() -
createConditionGenerationContext
protected ConditionGenerationContext createConditionGenerationContext(@Nullable Condition condition) -
applyCount
protected void applyCount() -
applyDistinct
protected void applyDistinct() -
restrictByPreviousResults
protected void restrictByPreviousResults() -
replaceParamsInMacros
-
getPrimaryKeyProperty
-
printQuery
-