|
|
1.1 root 1:
2: #define @QUALIFIER_ALL @"*"
3: #define @QPROPERTY @"PROPERTY"
4: #define @QVALUE @"VALUE"
5: @class NSArray, NSMutableArray, NSDictionary, NSMutableDictionary;
6: @class NSString, NSNumber;
7: @class EOEntity;
8: #import <eoaccess/eoaccess.h>
9:
10: @interface TableDataSource:NSObject <EODataSources, EOMasterDataSources>
11: {
12: NSString *table;
13: NSMutableArray *eos;
14: NSMutableDictionary *lookupTables;
15: NSMutableDictionary *qualifier;
16: NSString *uniqueKey;
17: EOEntity *entity;
18: NSMutableArray *detailSources;
19: NSString *orderByKey;
20: BOOL orderDescendantSources;
21: }
22:
23: - initWithEOGenericRecords:(NSArray *)records tablePath:(NSString *)tablePath;
24: - initWithEntity:(EOEntity *)anEntity tablePath:(NSString *)tablePath;
25: - (void)dealloc;
26: - addLookupTableForKey:(NSString *)key;
27: - (NSString *)tablePath;
28: - setTablePath:(NSString *)aPath;
29: - (EOEntity *)entity;
30:
31: - setEntityQualifier;
32: - setEmptySetQualifier;
33: - setQualifier:(NSMutableDictionary *)newQualifier;
34: - qualifyForProperty:(NSString *)key andValue:value;
35: - (NSArray *)fetchAllObjects;
36: - objectForPrimaryKey:value;
37: - (BOOL)orderBy:(NSString *)key;
38: - setOrderDescendantSources:(BOOL)aFlag;
39: - (BOOL)deleteAllObjects;
40:
41:
42: @end
43:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.