mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-05-31 01:11:16 +00:00
* EOAccess/EOGenericRecord.h/m ([-entity]): New category.
* EOAccess/GNUmakefile (EOGenericRecord): Build and install new category. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27922 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c95034cfa5
commit
68f788d944
5 changed files with 98 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-02-18 David Ayers <ayers@fsfe.org>
|
||||||
|
|
||||||
|
* EOAccess/EOGenericRecord.h/m ([-entity]): New category.
|
||||||
|
* EOAccess/GNUmakefile (EOGenericRecord): Build and install new
|
||||||
|
category.
|
||||||
|
|
||||||
2009-02-18 David Ayers <ayers@fsfe.org>
|
2009-02-18 David Ayers <ayers@fsfe.org>
|
||||||
|
|
||||||
* configure.ac (disable-gui-projects): New option to disable builing
|
* configure.ac (disable-gui-projects): New option to disable builing
|
||||||
|
|
38
EOAccess/EOGenericRecord.h
Normal file
38
EOAccess/EOGenericRecord.h
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/* -*-objc-*-
|
||||||
|
EOGenericRecord.h
|
||||||
|
|
||||||
|
Copyright (C) 2009 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
Author: David Ayers
|
||||||
|
Date: February 2009
|
||||||
|
|
||||||
|
This file is part of the GNUstep Database Library.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; see the file COPYING.LIB.
|
||||||
|
If not, write to the Free Software Foundation,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __EOAccess_EOGenericRecord_h__
|
||||||
|
#define __EOAccces_EOGenericRecord_h__
|
||||||
|
|
||||||
|
#include <EOControl/EOGenericRecord.h>
|
||||||
|
|
||||||
|
@class EOEntity;
|
||||||
|
|
||||||
|
@interface EOGenericRecord (EOAccessAdditions)
|
||||||
|
- (EOEntity *)entity;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif /* __EOAccess_EOGenericRecord_h__ */
|
51
EOAccess/EOGenericRecord.m
Normal file
51
EOAccess/EOGenericRecord.m
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
/* -*-objc-*-
|
||||||
|
EOGenericRecord.m <title>EOGenericRecord Category</title>
|
||||||
|
|
||||||
|
Copyright (C) 2009 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
Author: David Ayers
|
||||||
|
Date: February 2009
|
||||||
|
|
||||||
|
This file is part of the GNUstep Database Library.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; see the file COPYING.LIB.
|
||||||
|
If not, write to the Free Software Foundation,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
RCS_ID("$Id: EOEntity.m 27910 2009-02-18 05:52:42Z ayers $")
|
||||||
|
|
||||||
|
#ifndef GNUSTEP
|
||||||
|
#include <GNUstepBase/GNUstep.h>
|
||||||
|
#include <GNUstepBase/GSObjCRuntime.h>
|
||||||
|
#include <GNUstepBase/GSCategories.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <EOAccess/EOEntity.h>
|
||||||
|
|
||||||
|
#include <EOControl/EOGenericRecord.h>
|
||||||
|
|
||||||
|
@implementation EOGenericRecord (EOAccessAdditions)
|
||||||
|
/**
|
||||||
|
* Determins and returns the receivers entity.
|
||||||
|
*/
|
||||||
|
- (EOEntity *)entity
|
||||||
|
{
|
||||||
|
if ([classDescription respondsToSelector:@selector(entity)])
|
||||||
|
return [(EOEntityClassDescription *)classDescription entity];
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
@end
|
|
@ -2244,7 +2244,7 @@ else if([attribute isDerived] == YES)
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSMutableDictionary *)bindVariableDictionaryForAttribute: (EOAttribute *)attribute
|
- (NSMutableDictionary *)bindVariableDictionaryForAttribute: (EOAttribute *)attribute
|
||||||
value: value
|
value: (id)value
|
||||||
{
|
{
|
||||||
[self subclassResponsibility: _cmd];
|
[self subclassResponsibility: _cmd];
|
||||||
return nil;
|
return nil;
|
||||||
|
|
|
@ -59,6 +59,7 @@ EODatabaseChannel.m \
|
||||||
EODatabaseContext.m \
|
EODatabaseContext.m \
|
||||||
EOAccessFault.m \
|
EOAccessFault.m \
|
||||||
EODatabaseDataSource.m \
|
EODatabaseDataSource.m \
|
||||||
|
EOGenericRecord.m \
|
||||||
EOUtilities.m \
|
EOUtilities.m \
|
||||||
EOPrivate.m
|
EOPrivate.m
|
||||||
|
|
||||||
|
@ -86,6 +87,7 @@ EOPropertyListEncoding.h \
|
||||||
EODatabaseDataSource.h \
|
EODatabaseDataSource.h \
|
||||||
EOSchemaSynchronization.h \
|
EOSchemaSynchronization.h \
|
||||||
EOSchemaGeneration.h \
|
EOSchemaGeneration.h \
|
||||||
|
EOGenericRecord.h \
|
||||||
EOUtilities.h \
|
EOUtilities.h \
|
||||||
EODefines.h \
|
EODefines.h \
|
||||||
EODeprecated.h \
|
EODeprecated.h \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue