2 Copyright (C) 2000-2004 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __EOFetchSpecification_h__
23 #define __EOFetchSpecification_h__
25 #import <Foundation/NSObject.h>
27 @class NSArray, NSString, NSDictionary;
30 @interface EOFetchSpecification : NSObject < NSCopying >
33 EOQualifier *qualifier;
34 NSArray *sortOrderings;
45 + (EOFetchSpecification *)fetchSpecificationWithEntityName:(NSString *)_ename
46 qualifier:(EOQualifier *)_qualifier
47 sortOrderings:(NSArray *)sortOrderings;
49 - (id)initWithEntityName:(NSString *)_name
50 qualifier:(EOQualifier *)_qualifier
51 sortOrderings:(NSArray *)_sortOrderings
52 usesDistinct:(BOOL)_dflag isDeep:(BOOL)_isDeep
53 hints:(NSDictionary *)_hints;
57 - (void)setEntityName:(NSString *)_name;
58 - (NSString *)entityName;
60 - (void)setQualifier:(EOQualifier *)_qualifier;
61 - (EOQualifier *)qualifier;
63 - (void)setSortOrderings:(NSArray *)_orderings;
64 - (NSArray *)sortOrderings;
66 - (void)setUsesDistinct:(BOOL)_flag;
69 - (void)setIsDeep:(BOOL)_flag;
72 - (void)setLocksObjects:(BOOL)_flag;
75 - (void)setFetchLimit:(unsigned)_limit;
76 - (unsigned)fetchLimit;
78 - (void)setHints:(NSDictionary *)_hints;
79 - (NSDictionary *)hints;
83 - (EOFetchSpecification *)fetchSpecificationWithQualifierBindings:(NSDictionary *)_bindings;
87 - (EOFetchSpecification *)fetchSpecificationByApplyingKeyMap:(NSDictionary *)_m;
91 #endif /* __EOFetchSpecification_h__ */