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:
java.io.Serializable
- Enclosing class:
- ProductSearch
public static class ProductSearch.SortProductField extends ProductSearch.ResultSortOrder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortProductField(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOrderName()
boolean
isAscending()
java.lang.String
prettyPrintSortOrder(boolean detailed, java.util.Locale locale)
void
setSortOrder(ProductSearch.ProductSearchContext productSearchContext)
-
-
-
Constructor Detail
-
SortProductField
public SortProductField(java.lang.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 Detail
-
setSortOrder
public void setSortOrder(ProductSearch.ProductSearchContext productSearchContext)
- Specified by:
setSortOrder
in classProductSearch.ResultSortOrder
-
getOrderName
public java.lang.String getOrderName()
- Specified by:
getOrderName
in classProductSearch.ResultSortOrder
-
prettyPrintSortOrder
public java.lang.String prettyPrintSortOrder(boolean detailed, java.util.Locale locale)
- Specified by:
prettyPrintSortOrder
in classProductSearch.ResultSortOrder
-
isAscending
public boolean isAscending()
- Specified by:
isAscending
in classProductSearch.ResultSortOrder
-
-