SOA Governance and API Management : CentraSite Developers 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- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback