home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / dbkit / DBAssociation.h < prev    next >
Text File  |  1992-03-29  |  1KB  |  53 lines

  1. /*
  2. **      DBAssociation.h
  3. **      Database Kit, Release 3.0
  4. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  5. */
  6.  
  7. /*
  8. ** DBAssociation represents an association between an expression in the
  9. ** DBModule and an object, usually a UI object. In the generic case,
  10. ** the DBModule will automatically map data back and forth between the UI
  11. ** object and the DBRecordList.
  12. **
  13. ** DBAssociations are the run-time instantiation of connections.
  14. */
  15.  
  16. #import <objc/Object.h>
  17.  
  18. @class DBValue;
  19.  
  20. @interface DBAssociation : Object {
  21.     id        _destination;
  22.     id        _fetchGroup;
  23.     id        _expression;
  24. }
  25.  
  26. - initFetchGroup:aFetchGroup expression:anExpr destination:theDestination;
  27. - setDestination:newDestination;
  28. - destination;
  29. - fetchGroup;
  30. - expression;
  31.  
  32. /* notification and control methods sent from DBFetchGroup to associations */
  33. - contentsDidChange;
  34. - selectionDidChange;
  35. - currentRecordDidDelete;
  36. - setValue:value;
  37. - getValue:value;
  38. - validateEditing;
  39. - endEditing;
  40. - (unsigned)selectedRowAfter:(unsigned)previousRow;
  41. @end
  42.  
  43.  
  44. /* notifications sent to destination of custom associations */
  45. @interface Object(DBCustomAssociation)
  46. - associationContentsDidChange:association;
  47. - associationSelectionDidChange:association;
  48. - associationCurrentRecordDidDelete:association;
  49. - association:association setValue:(DBValue *)value;
  50. -$    Wociation:association getValue:(DBValue *)value;
  51. @end
  52.  
  53.