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

  1. // EOGenericRecord.h
  2. // Copyright (c) 1994, NeXT Software, Inc. All rights reserved.
  3.  
  4. #import <EOControl/EOControl.h>
  5.  
  6. @class EOEntity;
  7.  
  8. // EOGenericRecords are associated with EOEntities for which you haven't
  9. // defined custom Enterprise Object classes.  When a record from the entity's
  10. // table is fetched by an database-layer object, an EOGenericRecord is
  11. // instantiated and filled with the data from the row.  Any other enterprise
  12. // object class is uniquely associated with an EOEntity object in a given
  13. // EOModel.  Since EOGenericRecords need to be used for any entity, an
  14. // EOGenericRecord holds the entity with which it's associated.
  15.  
  16. @interface EOGenericRecord:NSObject
  17. {
  18.     EOEntity *entity;
  19.     NSMutableDictionary *dictionary;
  20. }
  21.  
  22. - initWithEditingContext:(EOEditingContext *)ec
  23.     classDescription:(EOClassDescription *)classDesc
  24.     globalID:(EOGlobalID *)globalID;
  25.     // Initializes a newly allocated EOGenericRecord, associating it with
  26.     // entity.
  27.  
  28. - (id)valueForKey:(NSString *)key;
  29. - (void)takeValue:(id)value forKey:(NSString *)key;
  30.     // These are the standard methods for getting data into and out of
  31.     // Enterprise Objects.  See EOKeyValueCoding.h.
  32.  
  33. - (EOEntity *)entity;
  34. @end
  35.  
  36.