OOCSet : OOCCollection
Unsorted collection
- (id) get:(NSString*)id
Gets a model by id
if it belongs to the set.
- (OOCSet) find:(NSDictionary)dict
Creates a new set by keeping only the elements that satisfy all conditions in dict
. For dict
format see Ohmoc
.-find:model:
- (OOCSet) except:(NSDictionary)dict
Creates a new set by removing all the elements that satisfy any condition in dict
. For dict
format see Ohmoc
.-find:model:
- (OOCSet) combine:(NSDictionary)dict
Creates a new set by keeping only the elements that satisfy any condition in dict
. For dict
format see Ohmoc
.-find:model:
- (OOCSet) union:(NSDictionary)dict
Creates a new set by adding all the elements that satisfy all conditions in dict
. For dict
format see Ohmoc
.-find:model:
- (id) first
Returns any element in the set.
- (id) firstBy:(NSString)by get:(NSString)get order:(NSString*)order
Returns the get
property of the first element in the set sorted by by
using an order
criteria.
For more information about these parameters see Ohmoc
.`-sortBy:limit:offset:order:.
- (id) firstBy:(NSString)by order:(NSString)order
Returns the first element in the set sorted by by
using an order
criteria.
For more information about these parameters see Ohmoc
.`-sortBy:limit:offset:order:.
Updated less than a minute ago