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

  1. // EOJoin.h
  2. // Copyright (c) 1994, NeXT Software, Inc. All rights reserved. 
  3.  
  4. #import <EOControl/EOControl.h>
  5.  
  6. @class EOEntity;
  7. @class EOAttribute;
  8.  
  9. // An EOJoin describes one source/destination attribute pair for a relationship.
  10.  
  11.  
  12. @interface EOJoin : NSObject
  13. {
  14.     EOAttribute *_sourceAttribute;
  15.     EOAttribute *_destinationAttribute;
  16. }
  17.  
  18. - initWithSourceAttribute:(EOAttribute *)source
  19.     destinationAttribute:(EOAttribute *)destination;
  20.     // Initializes a newly allocated EOJoin with the given information.
  21.     // Returns self.
  22.  
  23. - (EOAttribute *)sourceAttribute;
  24. - (EOAttribute *)destinationAttribute;
  25.     // These methods return the information held by the EOJoin.
  26.  
  27. - (BOOL)isReciprocalToJoin:(EOJoin *)otherJoin;
  28.     // Is this a back-pointing join (part of in inverse relationship)
  29. @end
  30.