GNUstep Core Data
0.1
|
00001 /* Interface of the NSFetchRequest class for the GNUstep 00002 Core Data framework. 00003 Copyright (C) 2005 Free Software Foundation, Inc. 00004 00005 Written by: Saso Kiselkov <diablos@manga.sk> 00006 Date: August 2005 00007 00008 This file is part of the GNUstep Core Data framework. 00009 00010 This library is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU Lesser General Public 00012 License as published by the Free Software Foundation; either 00013 version 2.1 of the License, or (at your option) any later version. 00014 00015 This library is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 Lesser General Public License for more details. 00019 00020 You should have received a copy of the GNU Lesser General Public 00021 License along with this library; if not, write to the Free 00022 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. 00023 */ 00024 00025 #ifndef _NSFetchRequest_h_ 00026 #define _NSFetchRequest_h_ 00027 00028 #import <Foundation/NSObject.h> 00029 00030 @class NSArray, NSPredicate; 00031 @class NSEntityDescription; 00032 00033 @interface NSFetchRequest : NSObject <NSCopying, NSCoding> 00034 { 00035 NSArray * _affectedStores; 00036 NSEntityDescription * _entity; 00037 unsigned int _fetchLimit; 00038 NSPredicate * _predicate; 00039 NSArray * _sortDescriptors; 00040 } 00041 00042 #ifndef NO_GNUSTEP 00043 00044 - (id) _initWithAffectedStores: (NSArray *) affectedStores 00045 entity: (NSEntityDescription *) entity 00046 fetchLimit: (unsigned int) fetchLimit 00047 predicate: (NSPredicate *) predicate 00048 sortDescriptors: (NSArray *) sortDescriptors; 00049 00050 #endif // NO_GNUSTEP 00051 00052 - (NSArray *) affectedStores; 00053 - (void) setAffectedStores: (NSArray *) someStores; 00054 00055 - (NSEntityDescription *) entity; 00056 - (void) setEntity: (NSEntityDescription *) anEntityDescription; 00057 00058 - (unsigned int) fetchLimit; 00059 - (void) setFetchLimit: (unsigned int) aFetchLimit; 00060 00061 - (NSPredicate *) predicate; 00062 - (void) setPredicate: (NSPredicate *) aPredicate; 00063 00064 - (NSArray *) sortDescriptors; 00065 - (void) setSortDescriptors: (NSArray *) someSortDescriptors; 00066 00067 @end 00068 00069 #endif // _NSFetchRequest_h_