@Component(value="cuba_SortJpqlGenerator")
public class SortJpqlGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected JpqlSortExpressionProvider |
jpqlSortExpressionProvider |
protected Metadata |
metadata |
protected MetadataTools |
metadataTools |
static java.lang.String |
NAME |
protected QueryTransformerFactory |
queryTransformerFactory |
Constructor and Description |
---|
SortJpqlGenerator() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDatatypePropertySortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc) |
protected java.util.List<java.lang.String> |
getEntityPropertySortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc) |
protected java.lang.String |
getLobPropertySortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc) |
protected java.util.List<java.lang.String> |
getNotPersistentPropertySortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc) |
protected java.util.List<java.lang.String> |
getPropertySortExpressions(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc) |
protected java.util.List<java.lang.String> |
getValuePropertySortExpression(java.lang.String property,
java.util.List<java.lang.String> valueProperties,
java.util.List<java.lang.String> selectedExpressions,
boolean sortDirectionAsc) |
java.lang.String |
processQuery(java.lang.String entityName,
java.util.List<java.lang.String> valueProperties,
java.lang.String queryString,
Sort sort) |
protected boolean |
supportsLobSorting(MetaPropertyPath metaPropertyPath) |
protected java.lang.String |
transformQuery(java.lang.String queryString,
java.util.List<java.lang.String> sortExpressions,
boolean asc) |
public static final java.lang.String NAME
@Inject protected Metadata metadata
@Inject protected MetadataTools metadataTools
@Inject protected QueryTransformerFactory queryTransformerFactory
@Inject protected JpqlSortExpressionProvider jpqlSortExpressionProvider
public java.lang.String processQuery(java.lang.String entityName, java.util.List<java.lang.String> valueProperties, java.lang.String queryString, Sort sort)
protected java.lang.String transformQuery(java.lang.String queryString, java.util.List<java.lang.String> sortExpressions, boolean asc)
protected java.util.List<java.lang.String> getPropertySortExpressions(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
protected java.lang.String getDatatypePropertySortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
protected java.lang.String getLobPropertySortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
protected java.util.List<java.lang.String> getEntityPropertySortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
protected java.util.List<java.lang.String> getNotPersistentPropertySortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
protected java.util.List<java.lang.String> getValuePropertySortExpression(java.lang.String property, java.util.List<java.lang.String> valueProperties, java.util.List<java.lang.String> selectedExpressions, boolean sortDirectionAsc)
protected boolean supportsLobSorting(MetaPropertyPath metaPropertyPath)