mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-19 09:40:59 +00:00
* EOAccess/EODatabaseContext.m
([-initializeObject:row:entity:editingContext:]): Remove debug logs. * EOAccess/EOEntity.m ([-_dictionaryForInstanceProperties], [-primaryKeyForGlobalID:]) Remove debug logs. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26481 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
40f55c0218
commit
0867ca8cf4
3 changed files with 10 additions and 39 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-05-01 David Ayers <ayers@fsfe.org>
|
||||
|
||||
* EOAccess/EODatabaseContext.m
|
||||
([-initializeObject:row:entity:editingContext:]): Remove debug logs.
|
||||
* EOAccess/EOEntity.m ([-_dictionaryForInstanceProperties],
|
||||
[-primaryKeyForGlobalID:]) Remove debug logs.
|
||||
|
||||
2008-05-01 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* EOAccess/EOEntityPriv.h: Declare new private method
|
||||
|
|
|
@ -2284,9 +2284,6 @@ forDatabaseOperation:(EODatabaseOperation *)op
|
|||
}
|
||||
};
|
||||
|
||||
NSLog(@"** %@ # %@", globalID, [op dbSnapshot]);
|
||||
NSLog(@"-- %@", [op newRow]);
|
||||
|
||||
NSMapInsert(_dbOperationsByGlobalID, globalID, op);
|
||||
|
||||
return op;
|
||||
|
@ -6712,7 +6709,7 @@ Raises an exception is the adaptor is unable to perform the operations.
|
|||
if (![foreignKeyForSourceRow
|
||||
containsObjectsNotIdenticalTo: GDL2_EONull])
|
||||
{
|
||||
NSLog(@"foreignKeyForSourceRow=%@",foreignKeyForSourceRow);
|
||||
NSLog(@"foreignKeyForSourceRow=%@",[foreignKeyForSourceRow debugDescription]);
|
||||
NSEmitTODO();//TODO: what to do if rel is mandatory ?
|
||||
relObject = nil;
|
||||
}
|
||||
|
|
|
@ -1549,18 +1549,11 @@ createInstanceWithEditingContext:globalID:zone:
|
|||
//OK
|
||||
NSMutableDictionary *dictionaryForPrimaryKey = nil;
|
||||
|
||||
EOFLOGObjectFnStart();
|
||||
|
||||
NSDebugMLLog(@"EOEntity", @"gid=%@", gid);
|
||||
|
||||
if ([gid isKindOfClass: [EOKeyGlobalID class]]) //if ([gid isFinal])//?? or class test ??//TODO
|
||||
{
|
||||
NSArray *primaryKeyAttributeNames = [self primaryKeyAttributeNames];
|
||||
int count = [primaryKeyAttributeNames count];
|
||||
|
||||
NSDebugMLLog(@"EOEntity", @"primaryKeyAttributeNames=%@",
|
||||
primaryKeyAttributeNames);
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
int i;
|
||||
|
@ -1575,8 +1568,6 @@ createInstanceWithEditingContext:globalID:zone:
|
|||
NSAssert1(dictionaryForPrimaryKey,
|
||||
@"No dictionaryForPrimaryKey in entity %@",
|
||||
[self name]);
|
||||
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=%@",
|
||||
dictionaryForPrimaryKey);
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
|
@ -1594,11 +1585,6 @@ createInstanceWithEditingContext:globalID:zone:
|
|||
_name, gid);
|
||||
}
|
||||
|
||||
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=%@",
|
||||
dictionaryForPrimaryKey);
|
||||
|
||||
EOFLOGObjectFnStop();
|
||||
|
||||
return dictionaryForPrimaryKey;
|
||||
}
|
||||
@end
|
||||
|
@ -2847,22 +2833,12 @@ createInstanceWithEditingContext:globalID:zone:
|
|||
EOMKKDInitializer *propertyDictionaryInitializer = nil;
|
||||
EOMutableKnownKeyDictionary *dictionaryForProperties = nil;
|
||||
|
||||
EOFLOGObjectFnStart();
|
||||
|
||||
propertyDictionaryInitializer = [self _propertyDictionaryInitializer];
|
||||
|
||||
EOFLOGObjectLevelArgs(@"EOEntity", @"propertyDictionaryInitializer=%@",
|
||||
propertyDictionaryInitializer);
|
||||
|
||||
dictionaryForProperties = [EOMutableKnownKeyDictionary
|
||||
dictionaryWithInitializer:
|
||||
dictionaryForProperties
|
||||
= [EOMutableKnownKeyDictionary dictionaryWithInitializer:
|
||||
propertyDictionaryInitializer];
|
||||
|
||||
EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForProperties=%@",
|
||||
dictionaryForProperties);
|
||||
|
||||
EOFLOGObjectFnStop();
|
||||
|
||||
return dictionaryForProperties;
|
||||
}
|
||||
|
||||
|
@ -2875,13 +2851,8 @@ returns nil if there's no key in the instanceDictionaryInitializer
|
|||
EOMKKDInitializer *instanceDictionaryInitializer = nil;
|
||||
EOMutableKnownKeyDictionary *dictionaryForProperties = nil;
|
||||
|
||||
EOFLOGObjectFnStart();
|
||||
|
||||
instanceDictionaryInitializer = [self _instanceDictionaryInitializer];
|
||||
|
||||
EOFLOGObjectLevelArgs(@"EOEntity", @"instanceDictionaryInitializer=%@",
|
||||
instanceDictionaryInitializer);
|
||||
|
||||
// No need to build the dictionary if there's no key.
|
||||
// The only drawback I see is if someone use extraData feature of MKK dictionary
|
||||
if ([instanceDictionaryInitializer count]>0)
|
||||
|
@ -2890,10 +2861,6 @@ returns nil if there's no key in the instanceDictionaryInitializer
|
|||
dictionaryWithInitializer:
|
||||
instanceDictionaryInitializer];
|
||||
}
|
||||
EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForProperties=%@",
|
||||
dictionaryForProperties);
|
||||
|
||||
EOFLOGObjectFnStop();
|
||||
|
||||
return dictionaryForProperties;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue