home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / EOMasterDetailAssociation.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  1.7 KB  |  40 lines

  1. // EOMasterDetailAssociation.h
  2. // Copyright (c)1995, NeXT Software, Inc. All rights reserved.
  3. //
  4. // The EOMasterDetailAssociation binds a detail DisplayGroup to a relationship
  5. // property of the selected object in a master Display group.
  6. //
  7. // Bindings:
  8. //     parent:          key for property in the master object to display in the detail.
  9. //
  10. // When the selected object in the parent DisplayGroup changes or the contents of the
  11. // detail property of the selected object change, the dataSource of the detail
  12. // Display group messaged with qualifyWithRelationshipKey:ofObject: and the
  13. // source dataSource is told to fetch.
  14.  
  15. #import <EOInterface/EOAssociation.h>
  16.  
  17. @interface EOMasterDetailAssociation : EOAssociation
  18. {
  19.     id _currentMasterValue;
  20.     id _currentMasterEO;
  21.     unsigned _lastCount;
  22. }
  23. @end
  24.  
  25. // The MasterPeer Association binds a detail EODisplayGroup with an
  26. // EODatabaseDataSource (as opposed to and EODetailDataSource) with
  27. // a master DisplayGroup creating a "Qualified Peer" configuration.
  28. // This configuration is different from Master-Detail in that any relatioship
  29. // of the master entity can be bound, even if it is not a class property.
  30. // However, with the Qualified Peer configuration, changes in the detail
  31. // DisplayGroup are not reflected in the object graph of the master (e.g.
  32. // and object inserted in the employees detail is not added to the employees
  33. // array in the master Department EO, and therefore, proper foreign key assignment
  34. // is not automatically performed).  In general, Qualified Peer is restricted to use
  35. // when when no insertions and deletions will be performed in the detail.
  36. @interface EOMasterPeerAssociation : EOMasterDetailAssociation
  37. {
  38. }
  39. @end
  40.