public class FlexibleSearchNamedQueryConverter extends Object
FlexibleSearchNamedQueryService to build the final FlexibleSearchQuery object.| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLOSE_BRACKET |
protected static String |
COMMA |
protected static Integer |
DEFAULT_INITIAL_PAGE |
protected static String |
EMPTY_STRING |
protected static String |
OPEN_BRACKET |
protected static String |
ORDER_BY |
protected static String |
SPACE |
| Constructor and Description |
|---|
FlexibleSearchNamedQueryConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
appendSort(List<Sort> sort)
Append the order by clause if the Sort list is not empty.
|
FlexibleSearchQuery |
convert(NamedQueryConversionDto namedQueryConversion) |
protected Integer |
getDefaultPageSize() |
void |
setDefaultPageSize(Integer defaultPageSize) |
protected void |
setFlexibleSearchStartAndCount(FlexibleSearchQuery flexibleSearchQuery,
Integer requestedCurrentPage,
Integer requestedPageSize)
Set the requested currentPage and pageSize or use the default values.
|
protected static final String ORDER_BY
protected static final Integer DEFAULT_INITIAL_PAGE
protected static final String COMMA
protected static final String SPACE
protected static final String EMPTY_STRING
protected static final String OPEN_BRACKET
protected static final String CLOSE_BRACKET
public FlexibleSearchQuery convert(NamedQueryConversionDto namedQueryConversion) throws ConversionException
ConversionExceptionprotected String appendSort(List<Sort> sort)
sort - - a list of Sort objectsprotected void setFlexibleSearchStartAndCount(FlexibleSearchQuery flexibleSearchQuery, Integer requestedCurrentPage, Integer requestedPageSize)
flexibleSearchQuery - requestedCurrentPage - requestedPageSize - public void setDefaultPageSize(Integer defaultPageSize)
protected Integer getDefaultPageSize()
Copyright © 2000-2016 SAP SE. All Rights Reserved.