| java.lang.Object org.andromda.utils.beans.SortCriteria
SortCriteria | public class SortCriteria (Code) | | Used to contain sort criteria.
author: Chad Brandon |
Inner Class :final public static class Ordering | |
Method Summary | |
public Ordering | getOrdering() Gets the current ordering to be used. | public String | getSortBy() Gets the sort by name. | public void | setOrdering(Ordering ordering) Sets the ordering to use for sorting. | public void | setSortBy(String sortBy) Sets the name of the property by which to sort. |
SortCriteria | public SortCriteria(String sortBy)(Code) | | Creates a SortCriteria object with the default ascending ordering
Parameters: sortBy - |
SortCriteria | public SortCriteria(String sortBy, Ordering ordering)(Code) | | Creates a new instance of this SortCriteria class.
Parameters: sortBy - the property to sort by, this canbe nested. Parameters: ordering - the ordering to sort by, "ASCENDING", "DESCENDING". |
getOrdering | public Ordering getOrdering()(Code) | | Gets the current ordering to be used.
Ordering |
getSortBy | public String getSortBy()(Code) | | Gets the sort by name.
String |
setOrdering | public void setOrdering(Ordering ordering)(Code) | | Sets the ordering to use for sorting.
Parameters: ordering - the ordering. |
setSortBy | public void setSortBy(String sortBy)(Code) | | Sets the name of the property by which to sort.
Parameters: sortBy - the name of the property by which to sort. |
|
|