2004-04-17 11:30:47 +00:00
|
|
|
/* -*-objc-*-
|
2002-11-15 22:57:05 +00:00
|
|
|
EOModel.h
|
|
|
|
|
2005-08-17 08:07:57 +00:00
|
|
|
Copyright (C) 2000-2002,2003,2004,2005 Free Software Foundation, Inc.
|
2002-11-15 22:57:05 +00:00
|
|
|
|
2006-09-14 16:06:21 +00:00
|
|
|
Author: Mirko Viviani <mirko.viviani@gmail.com>
|
2002-11-15 22:57:05 +00:00
|
|
|
Date: February 2000
|
|
|
|
|
|
|
|
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 2 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,
|
2005-08-17 08:07:57 +00:00
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-11-15 22:57:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __EOModel_h__
|
|
|
|
#define __EOModel_h__
|
|
|
|
|
2002-12-30 22:10:43 +00:00
|
|
|
|
2004-03-19 16:41:21 +00:00
|
|
|
#ifdef GNUSTEP
|
2003-03-31 00:24:15 +00:00
|
|
|
#include <Foundation/NSString.h>
|
|
|
|
#else
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
#endif
|
2003-08-25 20:01:59 +00:00
|
|
|
#include <GNUstepBase/GCObject.h>
|
2002-11-15 22:57:05 +00:00
|
|
|
|
2003-03-31 00:24:15 +00:00
|
|
|
#include <EOAccess/EODefines.h>
|
|
|
|
#include <EOAccess/EOPropertyListEncoding.h>
|
2002-11-15 22:57:05 +00:00
|
|
|
|
2002-12-30 22:10:43 +00:00
|
|
|
|
|
|
|
@class NSArray;
|
|
|
|
@class NSDictionary;
|
* EOAccess/EOSQLExpression.h (deleteStatementWithQualifier:entity:)
* EOAccess/EOSQLExpressionPriv.h (_aliasForRelationshipPath:)
(_flattenRelPath:entity:, _aliasForRelatedAttribute:relationshipPath:)
* EOAccess/EOSQLExpression.m (insertStatementForRow:entity:)
(updateStatementForRow:qualifier:entity:)
(deleteStatementWithQualifier:entity:)
(selectStatementForAttributes:lock:fetchSpecification:entity:)
(_aliasForRelationshipPath:)
* EOAccess/EORelationship.h (intermediateEntity)
(_foreignKeyForSourceRow:)
* EOAccess/EORelationship.m (_foreignKeyForSourceRow:, _leftSideKeyMap)
* EOAccess/EODatabaseContext.h (databaseOperationForObject:)
(databaseOperationForGlobalID:, recordDatabaseOperation:)
(_openChannelWithLoginPanel:)
* EOAccess/EODatabaseContextPriv.h (primaryKeyForObject:)
(_currentCommittedSnapshotForObject:)
* EOAccess/EOEntityPriv.h (_keyMapForRelationshipPath:)
(_keyMapForIdenticalKeyRelationshipPath:, _mapAttribute:)
(_relationshipPathIsToMany: valueForSQLExpression:)
(_parsePropertyName:, classPropertyAttributeNames)
(classPropertyToManyRelationshipNames)
(classPropertyToOneRelationshipNames, dbSnapshotKeys)
* EOAccess/EOUtilities.m (rawRowsForEntityNamed:qualifierFormat:)
(rawRowsMatchingValue:forKey:entityNamed:)
(rawRowsMatchingValues:entityNamed:, rawRowsWithSQL:modelNamed:)
(rawRowsWithStoredProcedureNamed:arguments:)
(executeStoredProcedureNamed:arguments:, databaseContextForModelNamed:)
(primaryKeyForObject:)
(destinationKeyForSourceObject:relationshipNamed:)
* EOAccess/EOEntity.m
(_mapAttribute:toDestinationAttributeInLastComponentOfRelationshipPath:)
* EOAccess/EOAdaptor.h (adaptorWithModel:,adaptorWithName:)
* EOAccess/EOModel.h (_classDescriptionNeeded:,_entityForClass:)
(_addEntityWithPropertyList:)
* EOAdaptors/Postgres95/Postgres95Channel.h
(_evaluateExpression:withAttributes:)
* EOControl/EOMutableKnownKeyDictionary.h/m (arrayMappingForKeys:)
(subsetMappingForSourceDictionaryInitializer:sourceKeys:destinationKeys:)
(subsetMappingForSourceDictionaryInitializer:)
(setObject:forKey:, removeObjectForKey:, indexForKey:, objectForKey:)
* EOControl/EOEditingContext.m (handleErrors:,setSharedEditingContext:)
(faultForRawRow:entityNamed:)
* GDL2Palette/KeyWrapper.h (setKey:, _key):
* EOModeler/EOModelerEditor.h (selectionWithinViewedObject)
* EOModeler/EOModelerEditor.m (initWithDocument:)
(initWithParentEditor:)
Correct method signatures. Add necessary forward @class declations.
* EOInterface/EOMasterDetailAssociation.m (establishConnection):
* DBModeler/ModelerTableEmbedibleEditor.m
(addDefaultTableColumnsForTableView:displayGroup:)
* DBModeler/DefaultColumnProvider.m (setupTitleForColumn:named:)
Cast types to avoid compiler warnings.
* EOControl/EOCheapArray.m (dealloc): Supress compiler warning.
* EOAdaptors/Postgres95/LoginPanel/Postgres95LoginPanel.m (dealloc)
* EOModeler/EOModelerEditor.m (dealloc):
* DBModeler/ModelerAttributeEditor.m (dealloc): Add missing call
to super.
* DBModeler/Preferences.m (sharedPreferences): Fix implementation for
new compiler semantics.
* EOControl/EOMultiReaderLock.m (init): Correct NSConditionLock
initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23472 72102866-910b-0410-8b05-ffd578937521
2006-09-12 19:36:24 +00:00
|
|
|
@class NSNotification;
|
2002-12-30 22:10:43 +00:00
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
@class EOEntity;
|
2003-04-18 19:01:06 +00:00
|
|
|
@class EOAttribute;
|
2002-11-15 22:57:05 +00:00
|
|
|
@class EOModelGroup;
|
|
|
|
@class EOStoredProcedure;
|
|
|
|
|
|
|
|
|
|
|
|
@interface EOModel : GCObject
|
|
|
|
{
|
|
|
|
NSString *_name;
|
|
|
|
NSString *_path;
|
|
|
|
NSString *_adaptorName;
|
|
|
|
NSString *_adaptorClassName;
|
|
|
|
float _version;
|
|
|
|
NSDictionary *_connectionDictionary;
|
|
|
|
NSDictionary *_userInfo;
|
|
|
|
NSDictionary * _internalInfo;
|
|
|
|
NSString *_docComment;
|
|
|
|
void *_entitiesByClass;
|
|
|
|
|
|
|
|
/* Garbage collectable objects */
|
|
|
|
EOModelGroup *_group;
|
|
|
|
|
|
|
|
GCArray *_entities;
|
|
|
|
GCMutableDictionary *_entitiesByName;
|
|
|
|
GCMutableArray *_storedProcedures;
|
|
|
|
GCMutableDictionary *_subEntitiesCache;
|
|
|
|
//GCMutableDictionary *_prototypesByName;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
BOOL createsMutableObjects:1;
|
|
|
|
BOOL errors:1;
|
|
|
|
} _flags;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (EOModel *)model;
|
|
|
|
|
|
|
|
/** Getting the filename **/
|
2004-04-17 11:30:47 +00:00
|
|
|
- (NSString *)path;
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
/** Getting the name **/
|
|
|
|
- (NSString *)name;
|
|
|
|
- (NSString *)adaptorName;
|
|
|
|
- (NSString *)adaptorClassName;
|
|
|
|
|
|
|
|
/** Using entities **/
|
2004-04-17 11:30:47 +00:00
|
|
|
- (EOEntity *)entityNamed: (NSString *)name;
|
2002-11-15 22:57:05 +00:00
|
|
|
- (NSArray *)entities;
|
|
|
|
- (NSArray *)entityNames;
|
|
|
|
|
|
|
|
- (NSArray *)storedProcedureNames;
|
|
|
|
- (EOStoredProcedure *)storedProcedureNamed: (NSString *)name;
|
|
|
|
- (NSArray *)storedProcedures;
|
|
|
|
|
|
|
|
/** Getting an object's entity **/
|
2004-04-17 11:30:47 +00:00
|
|
|
- (EOEntity *)entityForObject: (id)object;
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
/** Accessing the connection dictionary **/
|
|
|
|
- (NSDictionary *)connectionDictionary;
|
|
|
|
|
|
|
|
/** Accessing the user dictionary **/
|
|
|
|
- (NSDictionary *)userInfo;
|
|
|
|
|
|
|
|
/** Accessing documentation comments **/
|
2004-04-17 11:30:47 +00:00
|
|
|
- (NSString *)docComment;
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
- (EOModelGroup *)modelGroup;
|
|
|
|
|
2003-04-18 19:01:06 +00:00
|
|
|
- (EOAttribute *)prototypeAttributeNamed: (NSString *)attributeName;
|
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface EOModel (EOModelFileAccess)
|
|
|
|
|
|
|
|
+ (EOModel *)modelWithContentsOfFile: (NSString *)path;
|
2004-04-17 11:30:47 +00:00
|
|
|
- (id)initWithContentsOfFile: (NSString *)path;
|
2002-11-15 22:57:05 +00:00
|
|
|
- (void)writeToFile: (NSString *)path;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface EOModel (EOModelPropertyList) <EOPropertyListEncoding>
|
|
|
|
|
2004-04-17 11:30:47 +00:00
|
|
|
- (id)initWithTableOfContentsPropertyList: (NSDictionary *)tableOfContents
|
|
|
|
path: (NSString *)path;
|
2002-11-27 06:44:53 +00:00
|
|
|
- (void)encodeTableOfContentsIntoPropertyList: (NSMutableDictionary *)propertyList;
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
- (void)encodeIntoPropertyList: (NSMutableDictionary *)propertyList;
|
|
|
|
- (void)awakeWithPropertyList: (NSDictionary *)propertyList;
|
|
|
|
- (id)initWithPropertyList: (NSDictionary *)propertyList
|
|
|
|
owner: (id)owner;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface EOModel (EOModelHidden)
|
|
|
|
|
|
|
|
- (void)_resetPrototypeCache;
|
|
|
|
- (BOOL)isPrototypesEntity: (id)param0;
|
* EOAccess/EOSQLExpression.h (deleteStatementWithQualifier:entity:)
* EOAccess/EOSQLExpressionPriv.h (_aliasForRelationshipPath:)
(_flattenRelPath:entity:, _aliasForRelatedAttribute:relationshipPath:)
* EOAccess/EOSQLExpression.m (insertStatementForRow:entity:)
(updateStatementForRow:qualifier:entity:)
(deleteStatementWithQualifier:entity:)
(selectStatementForAttributes:lock:fetchSpecification:entity:)
(_aliasForRelationshipPath:)
* EOAccess/EORelationship.h (intermediateEntity)
(_foreignKeyForSourceRow:)
* EOAccess/EORelationship.m (_foreignKeyForSourceRow:, _leftSideKeyMap)
* EOAccess/EODatabaseContext.h (databaseOperationForObject:)
(databaseOperationForGlobalID:, recordDatabaseOperation:)
(_openChannelWithLoginPanel:)
* EOAccess/EODatabaseContextPriv.h (primaryKeyForObject:)
(_currentCommittedSnapshotForObject:)
* EOAccess/EOEntityPriv.h (_keyMapForRelationshipPath:)
(_keyMapForIdenticalKeyRelationshipPath:, _mapAttribute:)
(_relationshipPathIsToMany: valueForSQLExpression:)
(_parsePropertyName:, classPropertyAttributeNames)
(classPropertyToManyRelationshipNames)
(classPropertyToOneRelationshipNames, dbSnapshotKeys)
* EOAccess/EOUtilities.m (rawRowsForEntityNamed:qualifierFormat:)
(rawRowsMatchingValue:forKey:entityNamed:)
(rawRowsMatchingValues:entityNamed:, rawRowsWithSQL:modelNamed:)
(rawRowsWithStoredProcedureNamed:arguments:)
(executeStoredProcedureNamed:arguments:, databaseContextForModelNamed:)
(primaryKeyForObject:)
(destinationKeyForSourceObject:relationshipNamed:)
* EOAccess/EOEntity.m
(_mapAttribute:toDestinationAttributeInLastComponentOfRelationshipPath:)
* EOAccess/EOAdaptor.h (adaptorWithModel:,adaptorWithName:)
* EOAccess/EOModel.h (_classDescriptionNeeded:,_entityForClass:)
(_addEntityWithPropertyList:)
* EOAdaptors/Postgres95/Postgres95Channel.h
(_evaluateExpression:withAttributes:)
* EOControl/EOMutableKnownKeyDictionary.h/m (arrayMappingForKeys:)
(subsetMappingForSourceDictionaryInitializer:sourceKeys:destinationKeys:)
(subsetMappingForSourceDictionaryInitializer:)
(setObject:forKey:, removeObjectForKey:, indexForKey:, objectForKey:)
* EOControl/EOEditingContext.m (handleErrors:,setSharedEditingContext:)
(faultForRawRow:entityNamed:)
* GDL2Palette/KeyWrapper.h (setKey:, _key):
* EOModeler/EOModelerEditor.h (selectionWithinViewedObject)
* EOModeler/EOModelerEditor.m (initWithDocument:)
(initWithParentEditor:)
Correct method signatures. Add necessary forward @class declations.
* EOInterface/EOMasterDetailAssociation.m (establishConnection):
* DBModeler/ModelerTableEmbedibleEditor.m
(addDefaultTableColumnsForTableView:displayGroup:)
* DBModeler/DefaultColumnProvider.m (setupTitleForColumn:named:)
Cast types to avoid compiler warnings.
* EOControl/EOCheapArray.m (dealloc): Supress compiler warning.
* EOAdaptors/Postgres95/LoginPanel/Postgres95LoginPanel.m (dealloc)
* EOModeler/EOModelerEditor.m (dealloc):
* DBModeler/ModelerAttributeEditor.m (dealloc): Add missing call
to super.
* DBModeler/Preferences.m (sharedPreferences): Fix implementation for
new compiler semantics.
* EOControl/EOMultiReaderLock.m (init): Correct NSConditionLock
initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23472 72102866-910b-0410-8b05-ffd578937521
2006-09-12 19:36:24 +00:00
|
|
|
- (void)_classDescriptionNeeded: (NSNotification *)notification;
|
2002-11-15 22:57:05 +00:00
|
|
|
- (id)_instantiatedEntities;
|
|
|
|
- (void)_setPath: (NSString *)path;
|
* EOAccess/EOSQLExpression.h (deleteStatementWithQualifier:entity:)
* EOAccess/EOSQLExpressionPriv.h (_aliasForRelationshipPath:)
(_flattenRelPath:entity:, _aliasForRelatedAttribute:relationshipPath:)
* EOAccess/EOSQLExpression.m (insertStatementForRow:entity:)
(updateStatementForRow:qualifier:entity:)
(deleteStatementWithQualifier:entity:)
(selectStatementForAttributes:lock:fetchSpecification:entity:)
(_aliasForRelationshipPath:)
* EOAccess/EORelationship.h (intermediateEntity)
(_foreignKeyForSourceRow:)
* EOAccess/EORelationship.m (_foreignKeyForSourceRow:, _leftSideKeyMap)
* EOAccess/EODatabaseContext.h (databaseOperationForObject:)
(databaseOperationForGlobalID:, recordDatabaseOperation:)
(_openChannelWithLoginPanel:)
* EOAccess/EODatabaseContextPriv.h (primaryKeyForObject:)
(_currentCommittedSnapshotForObject:)
* EOAccess/EOEntityPriv.h (_keyMapForRelationshipPath:)
(_keyMapForIdenticalKeyRelationshipPath:, _mapAttribute:)
(_relationshipPathIsToMany: valueForSQLExpression:)
(_parsePropertyName:, classPropertyAttributeNames)
(classPropertyToManyRelationshipNames)
(classPropertyToOneRelationshipNames, dbSnapshotKeys)
* EOAccess/EOUtilities.m (rawRowsForEntityNamed:qualifierFormat:)
(rawRowsMatchingValue:forKey:entityNamed:)
(rawRowsMatchingValues:entityNamed:, rawRowsWithSQL:modelNamed:)
(rawRowsWithStoredProcedureNamed:arguments:)
(executeStoredProcedureNamed:arguments:, databaseContextForModelNamed:)
(primaryKeyForObject:)
(destinationKeyForSourceObject:relationshipNamed:)
* EOAccess/EOEntity.m
(_mapAttribute:toDestinationAttributeInLastComponentOfRelationshipPath:)
* EOAccess/EOAdaptor.h (adaptorWithModel:,adaptorWithName:)
* EOAccess/EOModel.h (_classDescriptionNeeded:,_entityForClass:)
(_addEntityWithPropertyList:)
* EOAdaptors/Postgres95/Postgres95Channel.h
(_evaluateExpression:withAttributes:)
* EOControl/EOMutableKnownKeyDictionary.h/m (arrayMappingForKeys:)
(subsetMappingForSourceDictionaryInitializer:sourceKeys:destinationKeys:)
(subsetMappingForSourceDictionaryInitializer:)
(setObject:forKey:, removeObjectForKey:, indexForKey:, objectForKey:)
* EOControl/EOEditingContext.m (handleErrors:,setSharedEditingContext:)
(faultForRawRow:entityNamed:)
* GDL2Palette/KeyWrapper.h (setKey:, _key):
* EOModeler/EOModelerEditor.h (selectionWithinViewedObject)
* EOModeler/EOModelerEditor.m (initWithDocument:)
(initWithParentEditor:)
Correct method signatures. Add necessary forward @class declations.
* EOInterface/EOMasterDetailAssociation.m (establishConnection):
* DBModeler/ModelerTableEmbedibleEditor.m
(addDefaultTableColumnsForTableView:displayGroup:)
* DBModeler/DefaultColumnProvider.m (setupTitleForColumn:named:)
Cast types to avoid compiler warnings.
* EOControl/EOCheapArray.m (dealloc): Supress compiler warning.
* EOAdaptors/Postgres95/LoginPanel/Postgres95LoginPanel.m (dealloc)
* EOModeler/EOModelerEditor.m (dealloc):
* DBModeler/ModelerAttributeEditor.m (dealloc): Add missing call
to super.
* DBModeler/Preferences.m (sharedPreferences): Fix implementation for
new compiler semantics.
* EOControl/EOMultiReaderLock.m (init): Correct NSConditionLock
initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23472 72102866-910b-0410-8b05-ffd578937521
2006-09-12 19:36:24 +00:00
|
|
|
- (EOEntity *)_entityForClass: (Class)param0;
|
2002-11-15 22:57:05 +00:00
|
|
|
- (id)_childrenForEntityNamed: (id)param0;
|
|
|
|
- (void)_registerChild: (id)param0
|
|
|
|
forParent: (id)param1;
|
|
|
|
- (void)_setInheritanceLinks: (id)param0;
|
|
|
|
- (void)_removeEntity: (id)param0;
|
* EOAccess/EOSQLExpression.h (deleteStatementWithQualifier:entity:)
* EOAccess/EOSQLExpressionPriv.h (_aliasForRelationshipPath:)
(_flattenRelPath:entity:, _aliasForRelatedAttribute:relationshipPath:)
* EOAccess/EOSQLExpression.m (insertStatementForRow:entity:)
(updateStatementForRow:qualifier:entity:)
(deleteStatementWithQualifier:entity:)
(selectStatementForAttributes:lock:fetchSpecification:entity:)
(_aliasForRelationshipPath:)
* EOAccess/EORelationship.h (intermediateEntity)
(_foreignKeyForSourceRow:)
* EOAccess/EORelationship.m (_foreignKeyForSourceRow:, _leftSideKeyMap)
* EOAccess/EODatabaseContext.h (databaseOperationForObject:)
(databaseOperationForGlobalID:, recordDatabaseOperation:)
(_openChannelWithLoginPanel:)
* EOAccess/EODatabaseContextPriv.h (primaryKeyForObject:)
(_currentCommittedSnapshotForObject:)
* EOAccess/EOEntityPriv.h (_keyMapForRelationshipPath:)
(_keyMapForIdenticalKeyRelationshipPath:, _mapAttribute:)
(_relationshipPathIsToMany: valueForSQLExpression:)
(_parsePropertyName:, classPropertyAttributeNames)
(classPropertyToManyRelationshipNames)
(classPropertyToOneRelationshipNames, dbSnapshotKeys)
* EOAccess/EOUtilities.m (rawRowsForEntityNamed:qualifierFormat:)
(rawRowsMatchingValue:forKey:entityNamed:)
(rawRowsMatchingValues:entityNamed:, rawRowsWithSQL:modelNamed:)
(rawRowsWithStoredProcedureNamed:arguments:)
(executeStoredProcedureNamed:arguments:, databaseContextForModelNamed:)
(primaryKeyForObject:)
(destinationKeyForSourceObject:relationshipNamed:)
* EOAccess/EOEntity.m
(_mapAttribute:toDestinationAttributeInLastComponentOfRelationshipPath:)
* EOAccess/EOAdaptor.h (adaptorWithModel:,adaptorWithName:)
* EOAccess/EOModel.h (_classDescriptionNeeded:,_entityForClass:)
(_addEntityWithPropertyList:)
* EOAdaptors/Postgres95/Postgres95Channel.h
(_evaluateExpression:withAttributes:)
* EOControl/EOMutableKnownKeyDictionary.h/m (arrayMappingForKeys:)
(subsetMappingForSourceDictionaryInitializer:sourceKeys:destinationKeys:)
(subsetMappingForSourceDictionaryInitializer:)
(setObject:forKey:, removeObjectForKey:, indexForKey:, objectForKey:)
* EOControl/EOEditingContext.m (handleErrors:,setSharedEditingContext:)
(faultForRawRow:entityNamed:)
* GDL2Palette/KeyWrapper.h (setKey:, _key):
* EOModeler/EOModelerEditor.h (selectionWithinViewedObject)
* EOModeler/EOModelerEditor.m (initWithDocument:)
(initWithParentEditor:)
Correct method signatures. Add necessary forward @class declations.
* EOInterface/EOMasterDetailAssociation.m (establishConnection):
* DBModeler/ModelerTableEmbedibleEditor.m
(addDefaultTableColumnsForTableView:displayGroup:)
* DBModeler/DefaultColumnProvider.m (setupTitleForColumn:named:)
Cast types to avoid compiler warnings.
* EOControl/EOCheapArray.m (dealloc): Supress compiler warning.
* EOAdaptors/Postgres95/LoginPanel/Postgres95LoginPanel.m (dealloc)
* EOModeler/EOModelerEditor.m (dealloc):
* DBModeler/ModelerAttributeEditor.m (dealloc): Add missing call
to super.
* DBModeler/Preferences.m (sharedPreferences): Fix implementation for
new compiler semantics.
* EOControl/EOMultiReaderLock.m (init): Correct NSConditionLock
initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23472 72102866-910b-0410-8b05-ffd578937521
2006-09-12 19:36:24 +00:00
|
|
|
- (EOEntity *)_addEntityWithPropertyList: (NSDictionary *)propertyList;
|
2002-11-15 22:57:05 +00:00
|
|
|
- (void)_addFakeEntityWithPropertyList: (NSDictionary *)propertyList;
|
|
|
|
- (id)_addEntity: (EOEntity *)entity;
|
|
|
|
- (void)_setEntity: (id)entity
|
|
|
|
forEntityName: (NSString *)entityName
|
|
|
|
className: (NSString *)className;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface EOModel (EOModelEditing)
|
|
|
|
|
|
|
|
/* Accessing the adaptor bundle */
|
|
|
|
- (void)setName: (NSString *)name;
|
|
|
|
- (void)setAdaptorName: (NSString *)adaptorName;
|
|
|
|
|
|
|
|
- (void)setConnectionDictionary: (NSDictionary *)connectionDictionary;
|
|
|
|
- (void)setUserInfo: (NSDictionary *)dictionary;
|
|
|
|
|
|
|
|
- (void)addEntity: (EOEntity *)entity;
|
|
|
|
- (void)removeEntity: (EOEntity *)entity;
|
|
|
|
- (void)removeEntityAndReferences: (EOEntity *)entity;
|
|
|
|
|
|
|
|
- (void)addStoredProcedure: (EOStoredProcedure *)storedProcedure;
|
|
|
|
- (void)removeStoredProcedure: (EOStoredProcedure *)storedProcedure;
|
|
|
|
|
|
|
|
- (void)setModelGroup: (EOModelGroup *)group;
|
|
|
|
- (void)loadAllModelObjects;
|
|
|
|
|
|
|
|
/* Checking references */
|
2004-04-17 11:30:47 +00:00
|
|
|
- (NSArray *)referencesToProperty: (id)property;
|
2002-11-15 22:57:05 +00:00
|
|
|
- (NSArray *)externalModelsReferenced;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface EOModel (EOModelBeautifier)
|
|
|
|
|
|
|
|
- (void)beautifyNames;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2003-03-31 00:24:15 +00:00
|
|
|
GDL2ACCESS_EXPORT NSString *EOEntityLoadedNotification;
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
#endif /* __EOModel_h__ */
|