Package io.jmix.data.impl.jpql.generator
Class SortJpqlGenerator
java.lang.Object
io.jmix.data.impl.jpql.generator.SortJpqlGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DbmsSpecificsprotected JpqlSortExpressionProviderprotected Metadataprotected MetadataToolsprotected QueryTransformerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetDatatypePropertySortExpression(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected Map<String,Sort.Direction> getEntityPropertySortExpression(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) protected StringgetLobPropertySortExpression(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 booleansupportsLobSorting(MetaPropertyPath metaPropertyPath) protected StringtransformQuery(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
-