1 // $Id: EOGenericRecord.h 1 2004-08-20 10:38:46Z znek $
3 #ifndef __eoaccess_EOGenericRecord_H__
4 #define __eoaccess_EOGenericRecord_H__
6 #import <EOControl/EOGenericRecord.h>
11 @interface EOGenericRecord(EOAccess)
13 // Initializing new instances
15 - (id)initWithPrimaryKey:(NSDictionary *)aKey entity:(EOEntity *)anEntity;
17 // Getting the associated entity
24 * Informal protocol. NOT implemented by NSObject.
25 * Before sending one of this messages the caller must
26 * check if the object responds to them.
29 @interface NSObject(EOGenericRecord)
32 * Initialize an new instance of an object.
33 * If an enterprise object does not respond
34 * to this method it will receive -init.
36 - (id)initWithPrimaryKey:(NSDictionary *)key entity:(EOEntity *)entity;
39 * Determines the entity of user defined objects,
40 * when more than one entity uses the same class for its objects.
45 * Determine the class for object based on its fetched row.
46 * The returned class *must* be a subclass of the class that
47 * receives this method.
49 + (Class)classForEntity:(EOEntity *)entity values:(NSDictionary *)values;
53 #endif /* __eoaccess_EOGenericRecord_H__ */