GNUstep Core Data  0.1
Instance Methods | List of all members
NSFetchRequest Class Reference

An object for storing details about managed object fetches. More...

Inherits NSObject, <NSCopying>, and <NSCoding>.

Instance Methods

(id) - _initWithAffectedStores:entity:fetchLimit:predicate:sortDescriptors:
 A shorthand method for quick initialization.
 
(NSArray *) - affectedStores
 Returns an array of stores on which this fetch will executed.
 
(void) - setAffectedStores:
 Sets the stores on which this fetch will be executed.
 
(NSEntityDescription *) - entity
 Returns the entity of the fetch request. More...
 
(void) - setEntity:
 Sets the entity of the fetch request. More...
 
(unsigned int) - fetchLimit
 Returns the fetch limit of the receiver. More...
 
(void) - setFetchLimit:
 Sets the fetch limit of the receiver.
 
(NSPredicate *) - predicate
 Returns the predicate of the receiver. More...
 
(void) - setPredicate:
 Sets the predicate of the receiver. More...
 
(NSArray *) - sortDescriptors
 Returns the receiver's sort descriptors. More...
 
(void) - setSortDescriptors:
 Sets the sort descriptors of the receiver. More...
 

Detailed Description

An object for storing details about managed object fetches.

A fetch request records information on which objects to fetch from an object context when the -[NSManagedObjectContext executeFetchRequest:] method is invoked.

You can easily assemble fetch requests with the help of the DataBuilder application at project design-time, and later access them at run-time through the managed object model.

Definition at line 33 of file NSFetchRequest.h.

Method Documentation

◆ entity

- (NSEntityDescription *) entity

Returns the entity of the fetch request.

See also -[NSFetchRequest setEntity:].

Definition at line 1 of file NSFetchRequest.m.

◆ fetchLimit

- (unsigned int) fetchLimit

Returns the fetch limit of the receiver.

See also -[NSFetchRequest setFetchLimit:].

Definition at line 1 of file NSFetchRequest.m.

◆ predicate

- (NSPredicate *) predicate

Returns the predicate of the receiver.

See also -[NSFetchRequest setPredicate:].

Definition at line 1 of file NSFetchRequest.m.

◆ setEntity:

- (void) setEntity: (NSEntityDescription *)  entity

Sets the entity of the fetch request.

If not ‘nil’, objects must have the given entity set in order to be fetched by this fetch request.

Definition at line 1 of file NSFetchRequest.m.

◆ setPredicate:

- (void) setPredicate: (NSPredicate *)  predicate

Sets the predicate of the receiver.

If not ‘nil’, objects must evaluate to YES in order to be fetched by this fetch request.

Definition at line 1 of file NSFetchRequest.m.

◆ setSortDescriptors:

- (void) setSortDescriptors: (NSArray *)  sortDescriptors

Sets the sort descriptors of the receiver.

If not ‘nil’, after the fetch, the fetched objects are sorted using these sort descriptors.

Definition at line 1 of file NSFetchRequest.m.

◆ sortDescriptors

- (NSArray *) sortDescriptors

Returns the receiver's sort descriptors.

See also -[NSFetchRequest setSortDescriptors:].

Definition at line 1 of file NSFetchRequest.m.


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