Package org.apache.ofbiz.product.product
Class ProductSearch.SortProductField
java.lang.Object
org.apache.ofbiz.product.product.ProductSearch.ResultSortOrder
org.apache.ofbiz.product.product.ProductSearch.SortProductField
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProductSearch
- See Also:
-
Constructor Summary
ConstructorDescriptionSortProductField
(String fieldName, boolean ascending) Some good field names to try might include: [productName] [totalQuantityOrdered] for most popular or most purchased [lastModifiedDate] You can also include any other field on the Product entity. -
Method Summary
Modifier and TypeMethodDescriptionGets field name.boolean
prettyPrintSortOrder
(boolean detailed, Locale locale) void
setSortOrder
(ProductSearch.ProductSearchContext productSearchContext)
-
Constructor Details
-
SortProductField
Some good field names to try might include: [productName] [totalQuantityOrdered] for most popular or most purchased [lastModifiedDate] You can also include any other field on the Product entity.
-
-
Method Details
-
getFieldName
Gets field name.- Returns:
- the field name
-
setSortOrder
- Specified by:
setSortOrder
in classProductSearch.ResultSortOrder
-
getOrderName
- Specified by:
getOrderName
in classProductSearch.ResultSortOrder
-
prettyPrintSortOrder
- Specified by:
prettyPrintSortOrder
in classProductSearch.ResultSortOrder
-
isAscending
public boolean isAscending()- Specified by:
isAscending
in classProductSearch.ResultSortOrder
-