home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / dbkit / DBModule.h < prev    next >
Text File  |  1992-07-10  |  2KB  |  74 lines

  1. /*
  2. **      DBModule.h
  3. **      Database Kit, Release 3.0
  4. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  5. */
  6.  
  7.  
  8. #import <objc/Object.h>
  9. #import <objc/hashtable.h>
  10. #import <dbkit/enums.h>        // for failure codes
  11.  
  12. @class List;
  13.  
  14.  
  15. @interface DBModule : Object
  16. {
  17.     id database;
  18.     id delegate;
  19.     id _fetchGroupList;
  20.     id _scratchValue;
  21.     NXHashTable *_associationTable;
  22.     id _editingAssoc$    Ton;
  23.     id _mainWindow;
  24.     struct {
  25.     int _reserved : 32;
  26.     } _mflags;
  27.     id _reserved;
  28. }
  29.  
  30. /* Access to structure */
  31. - initDatabase:newDatabase entity:newEntity;
  32. - database;
  33.  
  34. - entity;
  35.  
  36. - setDelegate:anObject;
  37. - delegate;
  38.  
  39. /* client control and configuration */
  40. - addFetchGroup:newFetchGroup;
  41. - fetchGroupNamed:(const char *)searchName;
  42. - getFetchGroups:(List *)returnList;
  43. - rootFetchGroup;
  44. - editingAssociation;
  45. - associationForObject:anObject;
  46. - fetchContentsOf:aSource usingQualifier:aQualifier;
  47.  
  48. /* target-action methods */
  49. - fetchAllRecords:sender;
  50. - saveChanges:sender;
  51. - discardChanges:sender;
  52. - deleteRecord:sender;
  53. - appendNewRecord:sender;
  54. - insertNewRecord:sender;
  55. - nextRecord:sender;
  56. - previousRecord:sender;
  57. - takeValueFrom:sender;
  58.  
  59. /* Text delegate methods implemented for tracking edits (editingAssociation) */
  60. - (BOOL)textWillChange:textObject;
  61. - (BOOL)textWillEnd:textObject;
  62. - textDidEnd:textObject endChar:(unsigned short)whyEnd;
  63. @end
  64.  
  65.  
  66. /* methods sent to the DBModule's delegate */
  67. @interface Object(DBModuleDelegate)
  68. - (BOOL)moduleWillSave:module;
  69. - moduleDidSave:module;
  70. - (BOOL)moduleWillLoseChanges:module;
  71. @end
  72.  
  73.  
  74.