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

/* ResetRelationships.h created by cfeder on Thu 15-Dec-1994 */
#import <eoaccess/eoaccess.h>

// These extensions helps handle resetting relationship pointers when foreign
// key attributes in the source object have changed.  Most programs
// would be better off going the other direction: set the relationship pointer
// to the new destination object, and then use the methods above to fix
// up the keys.  RelationshipKeySetter handles this case.
@interface EODatabaseChannel (setForeignKey)
- objectForPrimaryKey:(NSDictionary *)key entity:(EOEntity *)entity;
- fetchObjectDescribedByQualifier:(EOQualifier *)qualifier;
- destinationObjectForRelationship:relationship sourceObject:sourceObject;
- (void)updateRelationshipsInObject:object forModifiedAttributes:(NSArray *)attributes;
@end



unix.superglobalmegacorp.com

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