EOModelGroup Delegate
Declared in: EOAccess/EOModelGroup.h
Protocol Description
An EOModelGroup object should have a delegate which can influence how it finds and loads models. The EOModelGroup instance delegate can implement the methods below:
- entity:relationshipForRow:relationship:
- subEntityForEntity:primaryKey:isFinal:
- entity:failedToLookupClassNamed:
- entity:classForObjectWithGlobalID:
In addition to the delegates you assign to EOModelGroup instances, the EOModelGroup class itself can have a delegate. The class delegate implements a single method- defaultModelGroup. For more information, see the EOModelGroup Class Delegate protocol description.
Instance Methods
entity:classForObjectWithGlobalID:
- (Class)entity:(EOEntity
*)entity
classForObjectWithGlobalID:(EOGlobalID
*)globalID
entity:failedToLookupClassNamed:
- (Class)entity:(EOEntity
*)entity
failedToLookupClassNamed:(NSString
*)className
entity:relationshipForRow:relationship:
- (EORelationship *)entity:(EOEntity
*)entity
relationshipForRow:(NSDictionary
*)row
relationship:(EORelationship *)relationship
modelGroup:entityNamed:
- (EOModel *)modelGroup:(EOModelGroup
*)group
entityNamed:(NSString *)name
relationship:failedToLookupDestinationNamed:
- (EOEntity *)relationship:(EORelationship
*)relationship
failedToLookupDestinationNamed:(NSString
*)entityName
subEntityForEntity:primaryKey:isFinal:
- (EOEntity *)subEntityForEntity:(EOEntity
*)entity
primaryKey:(NSDictionary *)primaryKey
isFinal:(BOOL *)flag