File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / FlatFileDataSource / TableDataSource.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:42 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3


#define @QUALIFIER_ALL @"*"
#define @QPROPERTY @"PROPERTY"
#define @QVALUE @"VALUE"
@class NSArray, NSMutableArray, NSDictionary, NSMutableDictionary;
@class NSString, NSNumber;
@class EOEntity;
#import <eoaccess/eoaccess.h>

@interface TableDataSource:NSObject <EODataSources, EOMasterDataSources>
{
    NSString *table;
	NSMutableArray	*eos;
	NSMutableDictionary	*lookupTables;
	NSMutableDictionary *qualifier;
	NSString *uniqueKey;
	EOEntity *entity;
	NSMutableArray *detailSources;
	NSString *orderByKey;
	BOOL orderDescendantSources;
}

- initWithEOGenericRecords:(NSArray *)records tablePath:(NSString *)tablePath;
- initWithEntity:(EOEntity *)anEntity tablePath:(NSString *)tablePath;
- (void)dealloc;
- addLookupTableForKey:(NSString *)key;
- (NSString *)tablePath;
- setTablePath:(NSString *)aPath;
- (EOEntity *)entity;

- setEntityQualifier;
- setEmptySetQualifier;
- setQualifier:(NSMutableDictionary *)newQualifier;
- qualifyForProperty:(NSString *)key andValue:value;
- (NSArray *)fetchAllObjects;
- objectForPrimaryKey:value;
- (BOOL)orderBy:(NSString *)key;
- setOrderDescendantSources:(BOOL)aFlag;
- (BOOL)deleteAllObjects;


@end


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.