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 boolean
protected String
protected Object
protected List<?>
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 ConditionGenerationContext
createConditionGenerationContext
(Condition condition) protected MetaProperty
getQuery
(javax.persistence.EntityManager em) static String
printQuery
(String query) protected void
replaceParamsInMacros
(Q query) protected void
setCondition
(Condition condition) setEntityName
(String entityName) 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 -
resultQuery
-
resultParameters
-
metadata
-
conditionJpqlGenerator
-
conditionParameterJpqlGenerator
-
sortJpqlGenerator
-
queryTransformerFactory
-
metadataTools
-
beanFactory
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory -
queryParamValuesManager
-
-
Constructor Details
-
JpqlQueryBuilder
public JpqlQueryBuilder()
-
-
Method Details
-
setId
-
setIds
-
setEntityName
-
setValueProperties
-
setQueryString
-
setQueryParameters
-
setCondition
-
setSort
-
setPreviousResults
-
setCountQuery
-
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() -
restrictByPreviousResults
protected void restrictByPreviousResults() -
replaceParamsInMacros
-
getPrimaryKeyProperty
-
printQuery
-