webMethods and Intelligent Business Operations 10.2 | CentraSite Developer's Guide | Application Framework | Querying the Registry | Application Framework Simple Search | Defining the Order of the Search Results
 
Defining the Order of the Search Results
You can define the order using one of the following Order (com.softwareag.centrasite.appl.framework.persistence.search.Order) static methods, which create ascending or descending order for a given property:
*asc(String propertyName) for ascending
*desc(String propertyName) for descending
The rules for the property name when creating Order are the same as when creating a Predicate. The user must know whether the bean types added to the search object support the property passed to the Order asc(String propertyName) or desc(String propertyName) methods. You can add multiple orders to the search object.
Example:
Order order = Order.asc("description");

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release