home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / 3.3Headers / eoaccess / EODetailDatabaseDataSource.h < prev    next >
Encoding:
Text File  |  1994-11-16  |  1.9 KB  |  63 lines

  1. // EODetailDatabaseDataSource.h
  2. // Copyright (c) 1994, NeXT Computer, Inc. All rights reserved.
  3.  
  4. #import    "EODataSources.h"
  5.  
  6. #import <foundation/NSArray.h>
  7. #import <foundation/NSData.h>
  8. #import <foundation/NSDictionary.h>
  9. #import <foundation/NSObject.h>
  10. #import <foundation/NSString.h>
  11.  
  12. @class EODatabaseChannel;
  13. @class EOQualifier;
  14. @class EOEntity;
  15. @class EODatabaseDataSource;
  16.  
  17. // EODetailDBDataSource is a detail data source which has its master
  18. // handle all the fetching. These are used to implement master-detail
  19. // browsers.
  20. //
  21. // Instances of this class are created by sending
  22. // -dataSourceQualifiedByKey:ofObject: to an EODatabaseDataSource or
  23. // EODetailDBDataSource.  You should never allocate and initialize an
  24. // EODetailDBDataSource yourself.
  25.  
  26.  
  27. @interface EODetailDatabaseDataSource:NSObject <EOMasterDataSources, EOQualifiableDataSources, EORollbackDataSources>
  28. {
  29.     NSString *detailKey;
  30.     EODatabaseDataSource *masterDataSource;
  31.     NSArray *dbArray;
  32.     id masterObject;
  33.     EOEntity *entity;
  34.     BOOL isRelationshipToOne;
  35. }
  36.  
  37. - initWithMasterDataSource: (EODatabaseDataSource *)m 
  38.     entity: (EOEntity *)e;
  39.     // Initializes a newly allocated EODetailDBDataSource with the given
  40.     // information.  Instances of this class are created by sending
  41.     // -dataSourceQualifiedByKey: to an EODatabaseDataSource or
  42.     // EODetailDBDataSource.  You should never allocate and initialize an
  43.     // EODetailDBDataSource yourself.
  44.  
  45. - (EOEntity *)entity;
  46.     // Returns the entity that the receiver fetches object for.
  47.  
  48. - (EODatabaseDataSource *)masterDataSource;
  49.     // Returns the data source that the receiver is a detail data source for.
  50.  
  51. - masterObject;
  52.     // Returns the object in the master data source that roots the detail data
  53.     // source.
  54.  
  55. - (NSString *)detailKey;
  56.     // Returns the key used to fetch objects.  This is a relationship key from
  57.     // the master object.
  58.  
  59. - (NSArray *)array;
  60.     // Returns the array of objects supplied by the receiver.
  61.  
  62. @end
  63.