GNUstep Core Data  0.1
NSFetchRequest.h
1 /* Interface of the NSFetchRequest class for the GNUstep
2  Core Data framework.
3  Copyright (C) 2005 Free Software Foundation, Inc.
4 
5  Written by: Saso Kiselkov <diablos@manga.sk>
6  Date: August 2005
7 
8  This file is part of the GNUstep Core Data framework.
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 2.1 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free
22  Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
23  */
24 
25 #ifndef _NSFetchRequest_h_
26 #define _NSFetchRequest_h_
27 
28 #import <Foundation/NSObject.h>
29 
30 @class NSArray, NSPredicate;
31 @class NSEntityDescription;
32 
33 @interface NSFetchRequest : NSObject <NSCopying, NSCoding>
34 {
35  NSArray * _affectedStores;
36  NSEntityDescription * _entity;
37  unsigned int _fetchLimit;
38  NSPredicate * _predicate;
39  NSArray * _sortDescriptors;
40 }
41 
42 #ifndef NO_GNUSTEP
43 
44 - (id) _initWithAffectedStores: (NSArray *) affectedStores
45  entity: (NSEntityDescription *) entity
46  fetchLimit: (unsigned int) fetchLimit
47  predicate: (NSPredicate *) predicate
48  sortDescriptors: (NSArray *) sortDescriptors;
49 
50 #endif // NO_GNUSTEP
51 
52 - (NSArray *) affectedStores;
53 - (void) setAffectedStores: (NSArray *) someStores;
54 
55 - (NSEntityDescription *) entity;
56 - (void) setEntity: (NSEntityDescription *) anEntityDescription;
57 
58 - (unsigned int) fetchLimit;
59 - (void) setFetchLimit: (unsigned int) aFetchLimit;
60 
61 - (NSPredicate *) predicate;
62 - (void) setPredicate: (NSPredicate *) aPredicate;
63 
64 - (NSArray *) sortDescriptors;
65 - (void) setSortDescriptors: (NSArray *) someSortDescriptors;
66 
67 @end
68 
69 #endif // _NSFetchRequest_h_
An object for storing details about managed object fetches.