ERXSortOrdering Class Reference

Inherits com::webobjects::eocontrol::EOSortOrdering.

Collaboration diagram for ERXSortOrdering:

Collaboration graph
[legend]

List of all members.

Classes

class  ERXSortOrderings

Public Member Functions

ERXSortOrderings array ()
boolean equals (Object obj)
 ERXSortOrdering (ERXKey key, NSSelector selector)
 ERXSortOrdering (String key, NSSelector selector)
ERXSortOrderings then (EOSortOrdering nextSortOrdering)

Static Public Member Functions

static ERXSortOrdering sortOrderingWithKey (ERXKey key, NSSelector selector)
static ERXSortOrdering sortOrderingWithKey (String key, NSSelector selector)

Package Functions

public< T > void sort (NSMutableArray< T > array)
public< T > NSArray< T > sorted (NSArray< T > array)


Detailed Description

ERXSortOrdering is an EOSortOrdering subclass that provides support for chaining (like ERXKey).

Examples:

 Person.COMPANY.dot(Company.NAME).asc().then(Person.FIRST_NAME.desc())
 

Author:
mschrag

Constructor & Destructor Documentation

ERXSortOrdering ( String  key,
NSSelector  selector 
)

Constructs an ERXSortOrdering (see EOSortOrdering).

Parameters:
key the key to sort on
selector the sort selector

ERXSortOrdering ( ERXKey  key,
NSSelector  selector 
)

Constructs an ERXSortOrdering (see EOSortOrdering).

Parameters:
key the key to sort on
selector the sort selector


Member Function Documentation

ERXSortOrderings array (  ) 

Returns this sort ordering as an array.

Returns:
this sort ordering as an array

boolean equals ( Object  obj  ) 

Provide the equals() method missing from EOSortOrder.

Parameters:
obj the Object to compare to
Returns:
true if obj is an EOSortOrder with the same key and selector as this object

public<T> void sort ( NSMutableArray< T >  array  )  [package]

Sorts the given array with this sort ordering.

Parameters:
<T> the type of the array
array the array to sort

public<T> NSArray<T> sorted ( NSArray< T >  array  )  [package]

Returns an array sorted with this sort ordering.

Parameters:
<T> the type of the array
array the array to sort
Returns:
a sorted copy of the array

static ERXSortOrdering sortOrderingWithKey ( ERXKey  key,
NSSelector  selector 
) [static]

Constructs an ERXSortOrdering (see EOSortOrdering).

Parameters:
key the key to sort on
selector the sort selector
Returns:
a new ERXSortOrdering

static ERXSortOrdering sortOrderingWithKey ( String  key,
NSSelector  selector 
) [static]

Constructs an ERXSortOrdering (see EOSortOrdering).

Parameters:
key the key to sort on
selector the sort selector
Returns:
a new ERXSortOrdering

ERXSortOrderings then ( EOSortOrdering  nextSortOrdering  ) 

Returns ERXSortOrderings with this sort ordering followed by the provided next sort ordering.

Parameters:
nextSortOrdering the next sort ordering to chain to this
Returns:
an array of sort orderings


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:11 2012 for Project Wonder by  doxygen 1.5.8