* EOAccess/EOSQLExpression.h (deleteStatementWithQualifier:entity:)

* EOAccess/EOSQLExpressionPriv.h (_aliasForRelationshipPath:)
	(_flattenRelPath:entity:, _aliasForRelatedAttribute:relationshipPath:)
	* EOAccess/EOSQLExpression.m (insertStatementForRow:entity:)
	(updateStatementForRow:qualifier:entity:)
	(deleteStatementWithQualifier:entity:)
	(selectStatementForAttributes🔒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
This commit is contained in:
David Ayers 2006-09-12 19:36:24 +00:00
parent 7b0373241f
commit ad43813eb0
29 changed files with 173 additions and 95 deletions

View file

@ -3,6 +3,70 @@
* Version: Update to 0.10.0 * Version: Update to 0.10.0
* GNUmakefile: Set package name for release targets. * GNUmakefile: Set package name for release targets.
* 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.
2006-09-07 Matt Rice <ratmice@yahoo.com> 2006-09-07 Matt Rice <ratmice@yahoo.com>
* DBModeler/Resources/DBModeler.tiff: New file. * DBModeler/Resources/DBModeler.tiff: New file.

View file

@ -163,7 +163,7 @@ void registerColumnsForClass(struct column_info columns[], int count, Class aCla
- (void) setupTitleForColumn:(NSTableColumn *)tc named:(NSString *)name - (void) setupTitleForColumn:(NSTableColumn *)tc named:(NSString *)name
{ {
NSTableHeaderCell *headerCell = [tc headerCell]; NSTableHeaderCell *headerCell = (id)[tc headerCell];
if ([name isEqual:@"Primary key"]) if ([name isEqual:@"Primary key"])
{ {
NSImage *img = [NSImage imageNamed:@"Key_Header"]; NSImage *img = [NSImage imageNamed:@"Key_Header"];

View file

@ -165,6 +165,7 @@
RELEASE(_mainView); RELEASE(_mainView);
RELEASE(_relationships_dg); RELEASE(_relationships_dg);
RELEASE(_attributes_dg); RELEASE(_attributes_dg);
[super dealloc];
} }
- (NSView *)mainView - (NSView *)mainView

View file

@ -78,7 +78,7 @@
for (i = 0, c = [columnNames count]; i < c; i++) for (i = 0, c = [columnNames count]; i < c; i++)
{ {
NSString *columnName = [columnNames objectAtIndex:i]; NSString *columnName = [columnNames objectAtIndex:i];
NSPopUpButton *cv = [tv cornerView]; NSPopUpButton *cv = (id)[tv cornerView];
NSMenuItem <NSMenuItem>*item; NSMenuItem <NSMenuItem>*item;
id <EOMColumnProvider>provider; id <EOMColumnProvider>provider;
NSTableColumn *tc = [[NSTableColumn alloc] initWithIdentifier:nil]; NSTableColumn *tc = [[NSTableColumn alloc] initWithIdentifier:nil];

View file

@ -68,7 +68,11 @@ static NSString *_switches[][2] =
@implementation DBModelerPrefs : NSObject @implementation DBModelerPrefs : NSObject
+ (DBModelerPrefs *) sharedPreferences + (DBModelerPrefs *) sharedPreferences
{ {
return _sharedPrefs ? _sharedPrefs : _sharedPrefs = [self new]; if (_sharedPrefs == nil)
{
_sharedPrefs = [self new];
}
return _sharedPrefs;
} }
- (id) init - (id) init

View file

@ -75,8 +75,8 @@ GDL2ACCESS_EXPORT NSString *EOGeneralAdaptorException;
} }
/* Creating an EOAdaptor */ /* Creating an EOAdaptor */
+ (EOAdaptor *)adaptorWithModel: (EOModel *)model; + (id)adaptorWithModel: (EOModel *)model;
+ (EOAdaptor *)adaptorWithName: (NSString *)name; + (id)adaptorWithName: (NSString *)name;
+ (void)setExpressionClassName: (NSString *)sqlExpressionClassName + (void)setExpressionClassName: (NSString *)sqlExpressionClassName
adaptorClassName: (NSString *)adaptorClassName; adaptorClassName: (NSString *)adaptorClassName;

View file

@ -249,9 +249,9 @@ It's invoked after prepareForSaveWithCoordinator:editingContext: and before owns
sourceObject: (id)sourceObject sourceObject: (id)sourceObject
destinationObject: (id)destinationObject; destinationObject: (id)destinationObject;
- (id)databaseOperationForObject: (id)param0; - (EODatabaseOperation*)databaseOperationForObject: (id)object;
- (id)databaseOperationForGlobalID: (id)param0; - (EODatabaseOperation*)databaseOperationForGlobalID: (EOGlobalID *)gid;
- (void)recordDatabaseOperation: (id)param0; - (void)recordDatabaseOperation: (EODatabaseOperation*)databaseOpe;
- (void)recordDeleteForObject: (id)param0; - (void)recordDeleteForObject: (id)param0;
- (void)recordInsertForObject: (id)param0; - (void)recordInsertForObject: (id)param0;
@ -343,7 +343,7 @@ Only searches locally (in the transaction scope), not in the EODatabase. **/
- (void)_commitTransaction; - (void)_commitTransaction;
- (void)_beginTransaction; - (void)_beginTransaction;
- (EODatabaseChannel *)_obtainOpenChannel; - (EODatabaseChannel *)_obtainOpenChannel;
- (BOOL)_openChannelWithLoginPanel: (id)param0; - (BOOL)_openChannelWithLoginPanel: (EODatabaseChannel *)databaseChannel;
- (void)_forceDisconnect; - (void)_forceDisconnect;
- (void)initializeObject: (id)object - (void)initializeObject: (id)object
row: (NSDictionary *)row row: (NSDictionary *)row

View file

@ -60,10 +60,10 @@
- (void)_verifyNoChangesToReadonlyEntity: (EODatabaseOperation *)dbOpe; - (void)_verifyNoChangesToReadonlyEntity: (EODatabaseOperation *)dbOpe;
- (EOGlobalID *)_globalIDForObject: (id)object; - (EOGlobalID *)_globalIDForObject: (id)object;
- (id)_primaryKeyForObject: (id)object; - (NSDictionary *)_primaryKeyForObject: (id)object;
- (NSDictionary *)_primaryKeyForObject: (id)object - (NSDictionary *)_primaryKeyForObject: (id)object
raiseException: (BOOL)raiseException; raiseException: (BOOL)raiseException;
- (id)_currentCommittedSnapshotForObject: (id)object; - (NSDictionary *)_currentCommittedSnapshotForObject: (id)object;
- (id)_addDatabaseContextStateToException: (id)param0; - (id)_addDatabaseContextStateToException: (id)param0;
- (id)_databaseContextState; - (id)_databaseContextState;
- (void)_cleanUpAfterSave; - (void)_cleanUpAfterSave;

View file

@ -3765,8 +3765,8 @@ returns nil if there's no key in the instanceDictionaryInitializer
return keyMap; return keyMap;
} }
- (EOAttribute*) _mapAttribute: (EOAttribute*)attribute - (EOAttribute *)_mapAttribute: (EOAttribute *)attribute
toDestinationAttributeInLastComponentOfRelationshipPath: (NSString*)path toDestinationAttributeInLastComponentOfRelationshipPath: (NSString *)path
{ {
NSArray *components = nil; NSArray *components = nil;
EORelationship *rel = nil; EORelationship *rel = nil;

View file

@ -32,6 +32,7 @@
@class EORelationship; @class EORelationship;
@class EOExpressionArray; @class EOExpressionArray;
@class EOSQLExpression;
@interface EOEntity (EOEntityPrivate) @interface EOEntity (EOEntityPrivate)
@ -97,18 +98,18 @@
@interface EOEntity (EOEntityRelationshipPrivate) @interface EOEntity (EOEntityRelationshipPrivate)
- (EORelationship *)_inverseRelationshipPathForPath: (NSString *)path; - (EORelationship *)_inverseRelationshipPathForPath: (NSString *)path;
- (id)_keyMapForRelationshipPath: (NSString *)path; - (NSDictionary *)_keyMapForRelationshipPath: (NSString *)path;
- (id)_keyMapForIdenticalKeyRelationshipPath: (id)param0; - (NSDictionary*)_keyMapForIdenticalKeyRelationshipPath: (NSString *)path;
- (id)_mapAttribute: (id)param0 - (EOAttribute*)_mapAttribute: (EOAttribute*)attribute
toDestinationAttributeInLastComponentOfRelationshipPath: (NSString *)path; toDestinationAttributeInLastComponentOfRelationshipPath: (NSString *)path;
- (BOOL)_relationshipPathIsToMany: (id)param0; - (BOOL)_relationshipPathIsToMany: (NSString *)relPath;
- (BOOL)_relationshipPathHasIdenticalKeys: (id)param0; - (BOOL)_relationshipPathHasIdenticalKeys: (id)param0;
@end @end
@interface EOEntity (EOEntitySQLExpression) @interface EOEntity (EOEntitySQLExpression)
- (id)valueForSQLExpression: (id)param0; - (NSString *)valueForSQLExpression: (EOSQLExpression *)sqlExpression;
+ (id)valueForSQLExpression: (id)param0; + (NSString *)valueForSQLExpression: (EOSQLExpression *)sqlExpression;
@end @end
@interface EOEntity (EOEntityPrivateXX) @interface EOEntity (EOEntityPrivateXX)
@ -116,20 +117,20 @@ toDestinationAttributeInLastComponentOfRelationshipPath: (NSString *)path;
isFormat: (BOOL)isFormat isFormat: (BOOL)isFormat
arguments: (char *)param2; arguments: (char *)param2;
- (EOExpressionArray *)_parseRelationshipPath: (NSString *)path; - (EOExpressionArray *)_parseRelationshipPath: (NSString *)path;
- (id)_parsePropertyName: (id)param0; - (id)_parsePropertyName: (NSString *)propertyName;
//- (id)_newStringWithBuffer: (unsigned short *)param0 //- (id)_newStringWithBuffer: (unsigned short *)param0
// length: (unsigned int *)param1; // length: (unsigned int *)param1;
@end @end
@interface EOEntity (MethodSet11) @interface EOEntity (MethodSet11)
- (NSException *)validateObjectForDelete: (id)object; - (NSException *)validateObjectForDelete: (id)object;
- (id)classPropertyAttributeNames; - (NSArray *)classPropertyAttributeNames;
- (id)classPropertyToManyRelationshipNames; - (NSArray *)classPropertyToManyRelationshipNames;
- (id)classPropertyToOneRelationshipNames; - (NSArray *)classPropertyToOneRelationshipNames;
- (id)qualifierForDBSnapshot: (id)param0; - (id)qualifierForDBSnapshot: (id)param0;
- (void)_addAttributesToFetchForRelationshipPath: (NSString *)path - (void)_addAttributesToFetchForRelationshipPath: (NSString *)path
atts: (NSMutableDictionary *)atts; atts: (NSMutableDictionary *)atts;
- (id)dbSnapshotKeys; - (NSArray *)dbSnapshotKeys;
- (NSArray *)flattenedAttributes; - (NSArray *)flattenedAttributes;
@end @end

View file

@ -41,6 +41,7 @@
@class NSArray; @class NSArray;
@class NSDictionary; @class NSDictionary;
@class NSNotification;
@class EOEntity; @class EOEntity;
@class EOAttribute; @class EOAttribute;
@ -137,16 +138,16 @@
- (void)_resetPrototypeCache; - (void)_resetPrototypeCache;
- (BOOL)isPrototypesEntity: (id)param0; - (BOOL)isPrototypesEntity: (id)param0;
- (void)_classDescriptionNeeded: (id)param0; - (void)_classDescriptionNeeded: (NSNotification *)notification;
- (id)_instantiatedEntities; - (id)_instantiatedEntities;
- (void)_setPath: (NSString *)path; - (void)_setPath: (NSString *)path;
- (id)_entityForClass: (Class)param0; - (EOEntity *)_entityForClass: (Class)param0;
- (id)_childrenForEntityNamed: (id)param0; - (id)_childrenForEntityNamed: (id)param0;
- (void)_registerChild: (id)param0 - (void)_registerChild: (id)param0
forParent: (id)param1; forParent: (id)param1;
- (void)_setInheritanceLinks: (id)param0; - (void)_setInheritanceLinks: (id)param0;
- (void)_removeEntity: (id)param0; - (void)_removeEntity: (id)param0;
- (id)_addEntityWithPropertyList: (NSDictionary *)propertyList; - (EOEntity *)_addEntityWithPropertyList: (NSDictionary *)propertyList;
- (void)_addFakeEntityWithPropertyList: (NSDictionary *)propertyList; - (void)_addFakeEntityWithPropertyList: (NSDictionary *)propertyList;
- (id)_addEntity: (EOEntity *)entity; - (id)_addEntity: (EOEntity *)entity;
- (void)_setEntity: (id)entity - (void)_setEntity: (id)entity

View file

@ -45,6 +45,7 @@
@class EOEntity; @class EOEntity;
@class EOAttribute; @class EOAttribute;
@class EOExpressionArray; @class EOExpressionArray;
@class EOMutableKnownKeyDictionary;
@class EOMKKDSubsetMapping; @class EOMKKDSubsetMapping;
@class EOQualifier; @class EOQualifier;
@ -205,7 +206,7 @@ typedef enum {
- (NSArray *)_intermediateAttributes; - (NSArray *)_intermediateAttributes;
- (EORelationship *)lastRelationship; - (EORelationship *)lastRelationship;
- (EORelationship *)firstRelationship; - (EORelationship *)firstRelationship;
- (id)intermediateEntity; - (EOEntity*) intermediateEntity;
- (BOOL)isMultiHop; - (BOOL)isMultiHop;
- (void)_setSourceToDestinationKeyMap: (id)param0; - (void)_setSourceToDestinationKeyMap: (id)param0;
- (id)qualifierForDBSnapshot: (id)param0; - (id)qualifierForDBSnapshot: (id)param0;
@ -221,7 +222,7 @@ typedef enum {
- (id)qualifierOmittingAuxiliaryQualifierWithSourceRow: (id)param0; - (id)qualifierOmittingAuxiliaryQualifierWithSourceRow: (id)param0;
- (id)auxiliaryQualifier; - (id)auxiliaryQualifier;
- (void)setAuxiliaryQualifier: (id)param0; - (void)setAuxiliaryQualifier: (id)param0;
- (id)_foreignKeyForSourceRow: (NSDictionary *)row; - (EOMutableKnownKeyDictionary *)_foreignKeyForSourceRow: (NSDictionary *)row;
- (EOMKKDSubsetMapping *)_sourceRowToForeignKeyMapping; - (EOMKKDSubsetMapping *)_sourceRowToForeignKeyMapping;
- (NSArray *)_sourceAttributeNames; - (NSArray *)_sourceAttributeNames;
- (EOJoin *)joinForAttribute: (EOAttribute *)attribute; - (EOJoin *)joinForAttribute: (EOAttribute *)attribute;

View file

@ -2168,9 +2168,9 @@ dst entity primaryKeyAttributeNames
} }
/** Return dictionary of key/value for destination object of source row/object **/ /** Return dictionary of key/value for destination object of source row/object **/
- (NSDictionary*) _foreignKeyForSourceRow: (NSDictionary*)row - (EOMutableKnownKeyDictionary *) _foreignKeyForSourceRow: (NSDictionary*)row
{ {
NSDictionary *foreignKey = nil; EOMutableKnownKeyDictionary *foreignKey = nil;
EOMKKDSubsetMapping *sourceRowToForeignKeyMapping = nil; EOMKKDSubsetMapping *sourceRowToForeignKeyMapping = nil;
EOFLOGObjectFnStart(); EOFLOGObjectFnStart();
@ -2380,7 +2380,7 @@ dst entity primaryKeyAttributeNames
return keyMap; return keyMap;
} }
- (id) _leftSideKeyMap - (NSDictionary *) _leftSideKeyMap
{ {
NSDictionary *keyMap = nil; NSDictionary *keyMap = nil;

View file

@ -94,7 +94,7 @@ GDL2ACCESS_EXPORT NSString *EOBindVariableColumnKey;
/* The endity parameter is typed to 'id' for signature compatibility /* The endity parameter is typed to 'id' for signature compatibility
with EOF. Note that only EOEntity * objects should be passed. */ with EOF. Note that only EOEntity * objects should be passed. */
+ (EOSQLExpression *)deleteStatementWithQualifier: (EOQualifier *)qualifier + (EOSQLExpression *)deleteStatementWithQualifier: (EOQualifier *)qualifier
entity: (id)entity; entity: (EOEntity *)entity;
+ (EOSQLExpression *)selectStatementForAttributes: (NSArray *)attributes + (EOSQLExpression *)selectStatementForAttributes: (NSArray *)attributes
lock: (BOOL)yn lock: (BOOL)yn

View file

@ -162,7 +162,7 @@ NSString *EOBindVariableColumnKey = @"EOBindVariableColumnKey";
return exp; return exp;
} }
+ insertStatementForRow: (NSDictionary *)row + (EOSQLExpression *)insertStatementForRow: (NSDictionary *)row
entity: (EOEntity *)entity entity: (EOEntity *)entity
{ {
EOSQLExpression *sqlExpression; EOSQLExpression *sqlExpression;
@ -182,7 +182,7 @@ NSString *EOBindVariableColumnKey = @"EOBindVariableColumnKey";
return sqlExpression; return sqlExpression;
} }
+ updateStatementForRow: (NSDictionary *)row + (EOSQLExpression *)updateStatementForRow: (NSDictionary *)row
qualifier: (EOQualifier *)qualifier qualifier: (EOQualifier *)qualifier
entity: (EOEntity *)entity entity: (EOEntity *)entity
{ {
@ -215,7 +215,7 @@ NSString *EOBindVariableColumnKey = @"EOBindVariableColumnKey";
return sqlExpression; return sqlExpression;
} }
+ deleteStatementWithQualifier: (EOQualifier *)qualifier + (EOSQLExpression *)deleteStatementWithQualifier: (EOQualifier *)qualifier
entity: (EOEntity *)entity entity: (EOEntity *)entity
{ {
EOSQLExpression *sqlExpression; EOSQLExpression *sqlExpression;
@ -237,7 +237,7 @@ NSString *EOBindVariableColumnKey = @"EOBindVariableColumnKey";
return sqlExpression; return sqlExpression;
} }
+ selectStatementForAttributes: (NSArray *)attributes + (EOSQLExpression *)selectStatementForAttributes: (NSArray *)attributes
lock: (BOOL)flag lock: (BOOL)flag
fetchSpecification: (EOFetchSpecification *)fetchSpecification fetchSpecification: (EOFetchSpecification *)fetchSpecification
entity: (EOEntity *)entity entity: (EOEntity *)entity
@ -2288,7 +2288,7 @@ else if([anAttribute isDerived] == YES)
This add a new alias if there not already one This add a new alias if there not already one
This also add alias for all relationships used by relationshipPath (so joinExpression can build join expressions for really all used relationships) This also add alias for all relationships used by relationshipPath (so joinExpression can build join expressions for really all used relationships)
All relationshipPaths in _aliasesByRelationshipPath are direct paths **/ All relationshipPaths in _aliasesByRelationshipPath are direct paths **/
- (NSString*) _aliasForRelationshipPath:(NSString*)relationshipPath//toLanguage - (NSString*) _aliasForRelationshipPath:(NSString*)relationshipPath
{ {
//OK ? //OK ?
NSString *flattenRelPath; NSString *flattenRelPath;

View file

@ -37,13 +37,13 @@
@interface EOSQLExpression (EOSQLExpressionPrivate) @interface EOSQLExpression (EOSQLExpressionPrivate)
- (EOEntity *)_rootEntityForExpression; - (EOEntity *)_rootEntityForExpression;
- (id)_aliasForRelationshipPath: (id)param0; - (NSString*) _aliasForRelationshipPath:(NSString*)relationshipPath;
- (id)_flattenRelPath: (id)param0 - (NSString*) _flattenRelPath: (NSString*)relationshipPath
entity: (id)param1; entity: (EOEntity*)entity;
- (NSString *)_sqlStringForJoinSemantic: (EOJoinSemantic)joinSemantic - (NSString *)_sqlStringForJoinSemantic: (EOJoinSemantic)joinSemantic
matchSemantic: (int)param1; matchSemantic: (int)param1;
- (id)_aliasForRelatedAttribute: (id)param0 - (NSString*) _aliasForRelatedAttribute: (EOAttribute*)attribute
relationshipPath: (id)param1; relationshipPath: (NSString*)relationshipPath;
- (id)_entityForRelationshipPath: (id)param0 - (id)_entityForRelationshipPath: (id)param0
origin: (id)param1; origin: (id)param1;

View file

@ -557,7 +557,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
return object; return object;
} }
- (id)rawRowsForEntityNamed: (NSString *)entityName - (NSArray *)rawRowsForEntityNamed: (NSString *)entityName
qualifierFormat: (NSString *)format,... qualifierFormat: (NSString *)format,...
{ {
EOQualifier *qualifier; EOQualifier *qualifier;
@ -583,7 +583,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
return results; return results;
} }
- (id)rawRowsMatchingValue: (id)value - (NSArray *)rawRowsMatchingValue: (id)value
forKey: (NSString *)key forKey: (NSString *)key
entityNamed: (NSString *)entityName entityNamed: (NSString *)entityName
{ {
@ -603,7 +603,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
return results; return results;
} }
- (id)rawRowsMatchingValues: (NSDictionary *)values - (NSArray *)rawRowsMatchingValues: (NSDictionary *)values
entityNamed: (NSString *)entityName entityNamed: (NSString *)entityName
{ {
EOQualifier *qualifier; EOQualifier *qualifier;
@ -624,7 +624,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
return results; return results;
} }
- (id)rawRowsWithSQL: (NSString *)sqlString - (NSArray *)rawRowsWithSQL: (NSString *)sqlString
modelNamed: (NSString *)name modelNamed: (NSString *)name
{ {
EODatabaseContext *databaseContext; EODatabaseContext *databaseContext;
@ -666,7 +666,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
return results; return results;
} }
- (id)rawRowsWithStoredProcedureNamed: (NSString *)name - (NSArray *)rawRowsWithStoredProcedureNamed: (NSString *)name
arguments: (NSDictionary *)args arguments: (NSDictionary *)args
{ {
EODatabaseContext *databaseContext; EODatabaseContext *databaseContext;
@ -710,7 +710,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
return results; return results;
} }
- (id)executeStoredProcedureNamed: (NSString *)name - (NSDictionary *)executeStoredProcedureNamed: (NSString *)name
arguments: (NSDictionary *)args arguments: (NSDictionary *)args
{ {
EODatabaseContext *databaseContext; EODatabaseContext *databaseContext;
@ -758,7 +758,7 @@ NSString *NSObjectNotAvailableException = @"NSObjectNotAvailableException";
entityNamed: entityName]; entityNamed: entityName];
} }
- (id)databaseContextForModelNamed: (NSString*)name - (EODatabaseContext *)databaseContextForModelNamed: (NSString *)name;
{ {
EOModelGroup *modelGroup; EOModelGroup *modelGroup;
EOModel *model; EOModel *model;
@ -816,7 +816,7 @@ connectionDictionaryOverrides: (NSDictionary *)overrides
return object; return object;
} }
- (id)primaryKeyForObject: (id)object - (NSDictionary *)primaryKeyForObject: (id)object;
{ {
EOKeyGlobalID *gid; EOKeyGlobalID *gid;
EOEntity *entity; EOEntity *entity;
@ -834,7 +834,7 @@ connectionDictionaryOverrides: (NSDictionary *)overrides
return newDict; return newDict;
} }
- (id)destinationKeyForSourceObject: (id)object - (NSDictionary *)destinationKeyForSourceObject: (id)object
relationshipNamed: (NSString*)name relationshipNamed: (NSString*)name
{ {
EODatabaseContext *databaseContext; EODatabaseContext *databaseContext;

View file

@ -87,6 +87,7 @@ vfmaxf (int n, float aFloat, ...)
{ {
DESTROY(_databases); DESTROY(_databases);
DESTROY(_win); DESTROY(_win);
[super dealloc];
} }
- (NSString *) logoPath - (NSString *) logoPath

View file

@ -1,4 +1,4 @@
/* /* -*-objc-*-
Postgres95Channel.h Postgres95Channel.h
Copyright (C) 2000,2002,2003,2004,2005 Free Software Foundation, Inc. Copyright (C) 2000,2002,2003,2004,2005 Free Software Foundation, Inc.
@ -80,8 +80,7 @@
- (void)_describeDatabaseTypes; - (void)_describeDatabaseTypes;
- (BOOL)_evaluateExpression: (EOSQLExpression *)expression - (BOOL)_evaluateExpression: (EOSQLExpression *)expression
withAttributes: attrs; withAttributes: (NSArray*)attributes;
@end @end
@interface NSObject (Postgres95ChannelDelegate) @interface NSObject (Postgres95ChannelDelegate)

View file

@ -138,6 +138,8 @@ RCS_ID("$Id$")
} }
NSDeallocateObject(self); NSDeallocateObject(self);
/* Suppress compiler warning. */
if (0) [super dealloc];
#ifdef DEBUG #ifdef DEBUG
NSDebugFLog(@"Stop Dealloc EOCheapCopyArray %p. %@", NSDebugFLog(@"Stop Dealloc EOCheapCopyArray %p. %@",
@ -273,6 +275,8 @@ RCS_ID("$Id$")
DESTROY(_immutableCopy); DESTROY(_immutableCopy);
NSDeallocateObject(self); NSDeallocateObject(self);
/* Suppress compiler warning. */
if (0) [super dealloc];
#ifdef DEBUG #ifdef DEBUG
NSDebugFLog(@"Stop Dealloc EOCheapCopyMutableArray %p. %@", NSDebugFLog(@"Stop Dealloc EOCheapCopyMutableArray %p. %@",

View file

@ -2084,7 +2084,7 @@ _mergeValueForKey(id obj, id value,
return ok; return ok;
} }
- (BOOL) handleErrors: (id)p - (BOOL) handleErrors: (NSArray *)p
{ {
NSEmitTODO(); NSEmitTODO();
[self notImplemented: _cmd]; //TODO [self notImplemented: _cmd]; //TODO
@ -3184,7 +3184,7 @@ _mergeValueForKey(id obj, id value,
{ {
return _sharedContext; return _sharedContext;
} }
- (void)setSharedEditingContext:(EOEditingContext *)sharedEditingContext - (void)setSharedEditingContext:(EOSharedEditingContext *)sharedEditingContext
{ {
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
NSArray *sharedGIDs; NSArray *sharedGIDs;
@ -3213,7 +3213,7 @@ _mergeValueForKey(id obj, id value,
[NSException raise: NSInvalidArgumentException [NSException raise: NSInvalidArgumentException
format: @"Attempt to set illegal object as EOSharedEditingContext"]; format: @"Attempt to set illegal object as EOSharedEditingContext"];
} }
sharedGIDs = NSAllMapTableKeys(sharedEditingContext->_globalIDsByObject); sharedGIDs = NSAllMapTableKeys(((EOEditingContext *)sharedEditingContext)->_globalIDsByObject);
localGIDs = NSAllMapTableKeys(_globalIDsByObject); localGIDs = NSAllMapTableKeys(_globalIDsByObject);
if ([sharedGIDs count] && [localGIDs count]) if ([sharedGIDs count] && [localGIDs count])
{ {
@ -3391,7 +3391,6 @@ modified state of the object.**/
classDesc = (id)[EOClassDescription classDescriptionForEntityName: classDesc = (id)[EOClassDescription classDescriptionForEntityName:
entityName]; entityName];
#warning (stephane@sente.ch) ERROR: trying to use EOEntity/EOEntityDescription
globalID = [[classDesc entity] globalIDForRow: row]; globalID = [[classDesc entity] globalIDForRow: row];
object = EOEditingContext_objectForGlobalIDWithImpPtr(self,NULL,globalID); object = EOEditingContext_objectForGlobalIDWithImpPtr(self,NULL,globalID);
@ -3422,7 +3421,7 @@ modified state of the object.**/
return object; return object;
} }
- (id)faultForRawRow: (id)row entityNamed: (NSString *)entityName - (id)faultForRawRow: (NSDictionary *)row entityNamed: (NSString *)entityName
{ {
id object; id object;
@ -4050,6 +4049,7 @@ static BOOL usesContextRelativeEncoding = NO;
NSHashRemove(assocDeallocHT,self); NSHashRemove(assocDeallocHT,self);
} }
/* We cannot if (0) [super dealloc]; as NSObject does not have superclass. */
NSDeallocateObject (self); NSDeallocateObject (self);
} }

View file

@ -66,7 +66,7 @@
{ {
if ((self = [super init])) if ((self = [super init]))
{ {
_mutex = [NSConditionLock initWithCondition: LCK_CND_UNLOCKD]; _mutex = [[NSConditionLock alloc] initWithCondition: LCK_CND_UNLOCKD];
_readerThreads = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks, _readerThreads = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
NSIntMapValueCallBacks, 32); NSIntMapValueCallBacks, 32);
} }

View file

@ -43,7 +43,8 @@
@class NSMutableDictionary; @class NSMutableDictionary;
@class EOMutableKnownKeyDictionary; @class EOMutableKnownKeyDictionary;
@class EOMKKDArrayMapping;
@class EOMKKDSubsetMapping;
@interface EOMKKDInitializer : GCObject @interface EOMKKDInitializer : GCObject
{ {
@ -66,11 +67,11 @@
- (id)objectForIndex: (unsigned int)index - (id)objectForIndex: (unsigned int)index
dictionary: (NSDictionary *)dictionary; dictionary: (NSDictionary *)dictionary;
- (unsigned int)indexForKey: (id)key; - (unsigned int)indexForKey: (id)key;
- (id)arrayMappingForKeys: (id)keys; - (EOMKKDArrayMapping *)arrayMappingForKeys: (NSArray *)keys;
- (id)subsetMappingForSourceDictionaryInitializer: (EOMKKDInitializer *)init - (EOMKKDSubsetMapping *)subsetMappingForSourceDictionaryInitializer: (EOMKKDInitializer *)init
sourceKeys: (NSArray *)sourceKeys sourceKeys: (NSArray *)sourceKeys
destinationKeys: (NSArray *)destinationKeys; destinationKeys: (NSArray *)destinationKeys;
- (id)subsetMappingForSourceDictionaryInitializer: (id)param0; - (EOMKKDSubsetMapping *)subsetMappingForSourceDictionaryInitializer: (EOMKKDInitializer *)param0;
- (id *)keys; - (id *)keys;
- (BOOL)hasKey: (id)key; - (BOOL)hasKey: (id)key;
@ -159,8 +160,8 @@
- (unsigned int)count; - (unsigned int)count;
- (id)objectForKey: (id)key; - (id)objectForKey: (id)key;
- (void)setObject: (id)object - (void)setObject: (id)object
forKey: (NSString *)key; forKey: (id)key;
- (void)removeObjectForKey: (NSString *)key; - (void)removeObjectForKey: (id)key;
- (BOOL)containsObjectsNotIdenticalTo: (id)object; - (BOOL)containsObjectsNotIdenticalTo: (id)object;
- (void)addEntriesFromDictionary: (NSDictionary *)dictionary; - (void)addEntriesFromDictionary: (NSDictionary *)dictionary;
- (NSEnumerator *)keyEnumerator; - (NSEnumerator *)keyEnumerator;

View file

@ -235,7 +235,7 @@ RCS_ID("$Id$")
return [dictionary objectForKey: key]; return [dictionary objectForKey: key];
} }
- (unsigned int) indexForKey: (NSString*)key - (unsigned int) indexForKey: (id)key
{ {
void *index = NSMapGet(_keyToIndex, (const void *)key); void *index = NSMapGet(_keyToIndex, (const void *)key);
@ -835,7 +835,7 @@ RCS_ID("$Id$")
return [_MKKDInitializer count]; return [_MKKDInitializer count];
} }
- (id) objectForKey: (NSString*)key - (id) objectForKey: (id)key
{ {
id object = nil; id object = nil;
unsigned int index; unsigned int index;
@ -866,7 +866,7 @@ RCS_ID("$Id$")
} }
- (void) setObject: (id)object - (void) setObject: (id)object
forKey: (NSString*)key forKey: (id)key
{ {
unsigned int index; unsigned int index;
@ -891,7 +891,7 @@ RCS_ID("$Id$")
} }
} }
- (void) removeObjectForKey: (NSString*)key - (void) removeObjectForKey: (id)key
{ {
unsigned int index; unsigned int index;

View file

@ -83,7 +83,7 @@
[super establishConnection]; [super establishConnection];
if (parent) if (parent)
{ {
EODetailDataSource *ds = [_object dataSource]; EODetailDataSource *ds = (id)[_object dataSource];
subclassFlags |= ParentAspectMask; subclassFlags |= ParentAspectMask;
[ds setMasterClassDescription:[[parent dataSource] [ds setMasterClassDescription:[[parent dataSource]
classDescriptionForObjects]]; classDescriptionForObjects]];

View file

@ -45,7 +45,7 @@
- (id) initWithDocument:(EOModelerDocument *)document; - (id) initWithDocument:(EOModelerDocument *)document;
- (EOModelerDocument *)document; - (EOModelerDocument *)document;
- (void) setSelectionWithinViewedObject:(NSArray *)selectionWithin; - (void) setSelectionWithinViewedObject:(NSArray *)selectionWithin;
- (id) selectionWithinViewedObject; - (NSArray *) selectionWithinViewedObject;
- (void) setSelectionPath:(NSArray *)selectionPath; - (void) setSelectionPath:(NSArray *)selectionPath;
- (NSArray *)selectionPath; - (NSArray *)selectionPath;
- (void) setViewedObjectPath:(NSArray *)viewedObjectPath; - (void) setViewedObjectPath:(NSArray *)viewedObjectPath;

View file

@ -46,7 +46,7 @@
[super dealloc]; [super dealloc];
} }
- (EOModelerEditor *)initWithDocument:(EOModelerDocument *)document - (id)initWithDocument:(EOModelerDocument *)document
{ {
if ((self = [super init])) if ((self = [super init]))
{ {
@ -359,8 +359,9 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
} }
- (EOModelerEmbedibleEditor *) initWithParentEditor:(EOModelerCompoundEditor *)parentEditor - (id) initWithParentEditor:(EOModelerCompoundEditor *)parentEditor
{ {
if ((self = [super initWithDocument: [parentEditor document]])) if ((self = [super initWithDocument: [parentEditor document]]))
{ {

View file

@ -35,7 +35,7 @@ typedef enum KeyType
@interface KeyWrapper: NSObject @interface KeyWrapper: NSObject
{ {
id _key; NSString *_key;
KeyType _type; KeyType _type;
} }
+ (id) wrapperWithKey:(NSString *)key type:(KeyType)type; + (id) wrapperWithKey:(NSString *)key type:(KeyType)type;

View file

@ -63,7 +63,7 @@
return [_key isEqual:[obj key]]; return [_key isEqual:[obj key]];
} }
- (void) setKey:(id)key; - (void) setKey:(NSString *)key;
{ {
ASSIGN(_key, key); ASSIGN(_key, key);
} }