* EOAccess/EORelationship.h/m (-setInverseRelationship:): Rename to...

(-_setInverseRelationship:): ... and move to local privat method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26596 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2008-06-06 09:21:35 +00:00
parent a6415d024a
commit 35ea180bdc
3 changed files with 20 additions and 17 deletions

View file

@ -1,3 +1,8 @@
2008-06-06 David Ayers <ayers@fsfe.org>
* EOAccess/EORelationship.h/m (-setInverseRelationship:): Rename to...
(-_setInverseRelationship:): ... and move to local privat method.
2008-06-05 Matt Rice <ratmice@gmail.com>
* EOAccess/EOModel.m (-setName:, -setAdaptorName:, -setDocComment):

View file

@ -185,18 +185,6 @@ typedef enum {
@end
@interface EORelationship (EORelationshipPrivate)
/*+ (EORelationship *)relationshipFromPropertyList: (id)propertyList
model: (EOModel *)model;
- (void)replaceStringsWithObjects;
- (void)initFlattenedRelationship;
- (id)propertyList;*/
- (void)setInverseRelationship: (EORelationship *)relationship;
@end /* EORelationship (EORelationshipPrivate) */
@interface EORelationship (EORelationshipXX)
- (NSArray *)_intermediateAttributes;

View file

@ -69,6 +69,10 @@ RCS_ID("$Id$")
#include "EOAttributePriv.h"
#include "EOEntityPriv.h"
@interface EORelationship (EORelationshipPrivate)
- (void)_setInverseRelationship: (EORelationship *)relationship;
@end
@implementation EORelationship
@ -1033,7 +1037,7 @@ relationships. Nil if none" **/
addObject: inverseRelationship]; //not very clean !!!
EOFLOGObjectLevel(@"EORelationship", @"set inverse rel");
[inverseRelationship setInverseRelationship: self];
[inverseRelationship _setInverseRelationship: self];
EOFLOGObjectFnStop();
@ -1083,7 +1087,7 @@ relationships. Nil if none" **/
EOFLOGObjectLevel(@"EORelationship", @"set inverse rel");
[inverseRelationship setInverseRelationship: self];
[inverseRelationship _setInverseRelationship: self];
/* call this last to avoid calls to [_destination _setIsEdited] */
[inverseRelationship setEntity: _destination];
@ -1691,10 +1695,16 @@ becomes "name", and "FIRST_NAME" becomes "firstName".*/
@implementation EORelationship (EORelationshipPrivate)
/* TODO this method should probably be private. */
- (void)setInverseRelationship: (EORelationship*)relationship
/*
This method is private to GDL2 to allow the inverse relationship
to be set from the original relationship. It exists to avoid the
ASSIGN(inverseRelationship->_inverseRelationship, self);
and to insure that associations will be updated if we ever display
inverse relationships in DBModeler.
*/
- (void)_setInverseRelationship: (EORelationship*)relationship
{
[self willChange]; // TODO: verify
[self willChange];
ASSIGN(_inverseRelationship,relationship);
}