* EOControl/EOFetchSpecification.m

(-[EOFetchSpecification
        fetchSpecificationNamed:entityNamed:]}:
        Implemented upon bug report by Philip Moetteli.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@17958 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2003-10-23 10:51:49 +00:00
parent 45b740ce02
commit eba1e7bcea
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-10-23 David Ayers <d.ayers@inode.at>
* EOControl/EOFetchSpecification.m
(-[EOFetchSpecification fetchSpecificationNamed:entityNamed:]}:
Implemented upon bug report by Philip Moetteli.
2003-09-29 Philip Moetteli <Philip.Moetteli@tele2.ch>
* EOControl/EOClassDescription.m

View file

@ -55,6 +55,13 @@ RCS_ID("$Id$")
#include <EOControl/EONSAddOns.h>
#include <EOControl/EOQualifier.h>
@interface NSObject (EOAccess)
/* EOEntity.h */
- (EOFetchSpecification *)fetchSpecificationNamed: (NSString *)fetchSpecName;
/* EOModelGroup */
- (id)entityNamed:(NSString *)entityName;
+ (id)defaultGroup;
@end
@implementation EOFetchSpecification
@ -143,6 +150,12 @@ RCS_ID("$Id$")
+ (EOFetchSpecification *)fetchSpecificationNamed: (NSString *)name
entityNamed: (NSString *)entityName
{
Class modelGroupClass = GSClassFromName("EOModelGroup");
if (modelGroupClass != Nil)
{
return [[[modelGroupClass defaultGroup] entityNamed: entityName]
fetchSpecificationNamed: name];
}
return nil;
}