|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eocontrol.EOSortOrdering
er.extensions.eof.ERXSortOrdering
public class ERXSortOrdering
ERXSortOrdering is an EOSortOrdering subclass that provides support for chaining (like ERXKey).
Examples:
Person.COMPANY.dot(Company.NAME).asc().then(Person.FIRST_NAME.desc())
Nested Class Summary | |
---|---|
static class |
ERXSortOrdering.ERXSortOrderings
ERXSortOrderings is an NSMutableArray |
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOSortOrdering |
---|
com.webobjects.eocontrol.EOSortOrdering._MultipleSortValueHolder, com.webobjects.eocontrol.EOSortOrdering._MultipleValueComparator, com.webobjects.eocontrol.EOSortOrdering._SingleSortValueHolder, com.webobjects.eocontrol.EOSortOrdering._SingleValueComparator, com.webobjects.eocontrol.EOSortOrdering._SortValueHolder, com.webobjects.eocontrol.EOSortOrdering.Comparison, com.webobjects.eocontrol.EOSortOrdering.ComparisonSupport |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSCoding |
---|
com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Support |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
---|
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support |
Field Summary |
---|
Fields inherited from class com.webobjects.eocontrol.EOSortOrdering |
---|
_CLASS, CompareAscending, CompareCaseInsensitiveAscending, CompareCaseInsensitiveDescending, CompareDescending |
Constructor Summary | |
---|---|
ERXSortOrdering(ERXKey key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering). |
|
ERXSortOrdering(java.lang.String key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering). |
Method Summary | ||
---|---|---|
ERXSortOrdering.ERXSortOrderings |
array()
Returns this sort ordering as an array. |
|
boolean |
equals(java.lang.Object obj)
Provide the equals() method missing from EOSortOrder. |
|
|
sort(com.webobjects.foundation.NSMutableArray<T> array)
Sorts the given array with this sort ordering. |
|
|
sorted(com.webobjects.foundation.NSArray<T> array)
Returns an array sorted with this sort ordering. |
|
static ERXSortOrdering |
sortOrderingWithKey(ERXKey key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering). |
|
static ERXSortOrdering |
sortOrderingWithKey(java.lang.String key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering). |
|
ERXSortOrdering.ERXSortOrderings |
then(com.webobjects.eocontrol.EOSortOrdering nextSortOrdering)
Returns ERXSortOrderings with this sort ordering followed by the provided next sort ordering. |
Methods inherited from class com.webobjects.eocontrol.EOSortOrdering |
---|
_operatorSelectorForString, classForCoder, decodeObject, decodeWithKeyValueUnarchiver, encodeWithCoder, encodeWithKeyValueArchiver, key, selector, sortArrayUsingKeyOrderArray, sortedArrayUsingKeyOrderArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ERXSortOrdering(java.lang.String key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic ERXSortOrdering(ERXKey key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selectorMethod Detail |
---|
public ERXSortOrdering.ERXSortOrderings then(com.webobjects.eocontrol.EOSortOrdering nextSortOrdering)
nextSortOrdering
- the next sort ordering to chain to this
public ERXSortOrdering.ERXSortOrderings array()
public <T> com.webobjects.foundation.NSArray<T> sorted(com.webobjects.foundation.NSArray<T> array)
T
- the type of the arrayarray
- the array to sort
public <T> void sort(com.webobjects.foundation.NSMutableArray<T> array)
T
- the type of the arrayarray
- the array to sortpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the Object to compare to
true
if obj is an EOSortOrder with the same key and selector as this objectpublic static ERXSortOrdering sortOrderingWithKey(java.lang.String key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selector
public static ERXSortOrdering sortOrderingWithKey(ERXKey key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selector
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |