Package io.jmix.data.impl.jpql.generator
Class SortJpqlGenerator
java.lang.Object
io.jmix.data.impl.jpql.generator.SortJpqlGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected DbmsSpecifics
protected JpqlSortExpressionProvider
protected Metadata
protected MetadataTools
protected QueryTransformerFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getDatatypePropertySortExpression
(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected Map<String,
Sort.Direction> getEntityPropertySortExpression
(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected String
getLobPropertySortExpression
(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected Map<String,
Sort.Direction> getNotPersistentPropertySortExpression
(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected Map<String,
Sort.Direction> getPropertySortExpressions
(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected Map<String,
Sort.Direction> getUniqueSortExpression
(Map<String, Sort.Direction> sortExpressions, MetaClass metaClass, Sort.Direction direction) protected Map<String,
Sort.Direction> getValuePropertySortExpression
(String property, List<String> valueProperties, List<String> selectedExpressions, Sort.Direction sortDirection) protected boolean
supportsLobSorting
(MetaPropertyPath metaPropertyPath) protected String
transformQuery
(String queryString, Map<String, Sort.Direction> sortExpressions, Sort.Direction direction)
-
Field Details
-
metadata
-
metadataTools
-
queryTransformerFactory
-
jpqlSortExpressionProvider
-
dbmsSpecifics
-
-
Constructor Details
-
SortJpqlGenerator
public SortJpqlGenerator()
-
-
Method Details
-
processQuery
-
getUniqueSortExpression
protected Map<String,Sort.Direction> getUniqueSortExpression(Map<String, Sort.Direction> sortExpressions, MetaClass metaClass, Sort.Direction direction) -
transformQuery
protected String transformQuery(String queryString, Map<String, Sort.Direction> sortExpressions, Sort.Direction direction) -
getPropertySortExpressions
protected Map<String,Sort.Direction> getPropertySortExpressions(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) -
getDatatypePropertySortExpression
protected String getDatatypePropertySortExpression(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) -
getLobPropertySortExpression
@Nullable protected String getLobPropertySortExpression(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) -
getEntityPropertySortExpression
protected Map<String,Sort.Direction> getEntityPropertySortExpression(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) -
getNotPersistentPropertySortExpression
protected Map<String,Sort.Direction> getNotPersistentPropertySortExpression(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) -
getValuePropertySortExpression
protected Map<String,Sort.Direction> getValuePropertySortExpression(String property, List<String> valueProperties, List<String> selectedExpressions, Sort.Direction sortDirection) -
supportsLobSorting
-