mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 02:20:55 +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>
|
2008-05-01 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
* EOAccess/EOEntityPriv.h: Declare new private method
|
* 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);
|
NSMapInsert(_dbOperationsByGlobalID, globalID, op);
|
||||||
|
|
||||||
return op;
|
return op;
|
||||||
|
@ -6712,7 +6709,7 @@ Raises an exception is the adaptor is unable to perform the operations.
|
||||||
if (![foreignKeyForSourceRow
|
if (![foreignKeyForSourceRow
|
||||||
containsObjectsNotIdenticalTo: GDL2_EONull])
|
containsObjectsNotIdenticalTo: GDL2_EONull])
|
||||||
{
|
{
|
||||||
NSLog(@"foreignKeyForSourceRow=%@",foreignKeyForSourceRow);
|
NSLog(@"foreignKeyForSourceRow=%@",[foreignKeyForSourceRow debugDescription]);
|
||||||
NSEmitTODO();//TODO: what to do if rel is mandatory ?
|
NSEmitTODO();//TODO: what to do if rel is mandatory ?
|
||||||
relObject = nil;
|
relObject = nil;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1549,18 +1549,11 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
//OK
|
//OK
|
||||||
NSMutableDictionary *dictionaryForPrimaryKey = nil;
|
NSMutableDictionary *dictionaryForPrimaryKey = nil;
|
||||||
|
|
||||||
EOFLOGObjectFnStart();
|
|
||||||
|
|
||||||
NSDebugMLLog(@"EOEntity", @"gid=%@", gid);
|
|
||||||
|
|
||||||
if ([gid isKindOfClass: [EOKeyGlobalID class]]) //if ([gid isFinal])//?? or class test ??//TODO
|
if ([gid isKindOfClass: [EOKeyGlobalID class]]) //if ([gid isFinal])//?? or class test ??//TODO
|
||||||
{
|
{
|
||||||
NSArray *primaryKeyAttributeNames = [self primaryKeyAttributeNames];
|
NSArray *primaryKeyAttributeNames = [self primaryKeyAttributeNames];
|
||||||
int count = [primaryKeyAttributeNames count];
|
int count = [primaryKeyAttributeNames count];
|
||||||
|
|
||||||
NSDebugMLLog(@"EOEntity", @"primaryKeyAttributeNames=%@",
|
|
||||||
primaryKeyAttributeNames);
|
|
||||||
|
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1575,8 +1568,6 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
NSAssert1(dictionaryForPrimaryKey,
|
NSAssert1(dictionaryForPrimaryKey,
|
||||||
@"No dictionaryForPrimaryKey in entity %@",
|
@"No dictionaryForPrimaryKey in entity %@",
|
||||||
[self name]);
|
[self name]);
|
||||||
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=%@",
|
|
||||||
dictionaryForPrimaryKey);
|
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
|
@ -1594,11 +1585,6 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
_name, gid);
|
_name, gid);
|
||||||
}
|
}
|
||||||
|
|
||||||
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=%@",
|
|
||||||
dictionaryForPrimaryKey);
|
|
||||||
|
|
||||||
EOFLOGObjectFnStop();
|
|
||||||
|
|
||||||
return dictionaryForPrimaryKey;
|
return dictionaryForPrimaryKey;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
@ -2847,22 +2833,12 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
EOMKKDInitializer *propertyDictionaryInitializer = nil;
|
EOMKKDInitializer *propertyDictionaryInitializer = nil;
|
||||||
EOMutableKnownKeyDictionary *dictionaryForProperties = nil;
|
EOMutableKnownKeyDictionary *dictionaryForProperties = nil;
|
||||||
|
|
||||||
EOFLOGObjectFnStart();
|
|
||||||
|
|
||||||
propertyDictionaryInitializer = [self _propertyDictionaryInitializer];
|
propertyDictionaryInitializer = [self _propertyDictionaryInitializer];
|
||||||
|
|
||||||
EOFLOGObjectLevelArgs(@"EOEntity", @"propertyDictionaryInitializer=%@",
|
dictionaryForProperties
|
||||||
propertyDictionaryInitializer);
|
= [EOMutableKnownKeyDictionary dictionaryWithInitializer:
|
||||||
|
|
||||||
dictionaryForProperties = [EOMutableKnownKeyDictionary
|
|
||||||
dictionaryWithInitializer:
|
|
||||||
propertyDictionaryInitializer];
|
propertyDictionaryInitializer];
|
||||||
|
|
||||||
EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForProperties=%@",
|
|
||||||
dictionaryForProperties);
|
|
||||||
|
|
||||||
EOFLOGObjectFnStop();
|
|
||||||
|
|
||||||
return dictionaryForProperties;
|
return dictionaryForProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2875,13 +2851,8 @@ returns nil if there's no key in the instanceDictionaryInitializer
|
||||||
EOMKKDInitializer *instanceDictionaryInitializer = nil;
|
EOMKKDInitializer *instanceDictionaryInitializer = nil;
|
||||||
EOMutableKnownKeyDictionary *dictionaryForProperties = nil;
|
EOMutableKnownKeyDictionary *dictionaryForProperties = nil;
|
||||||
|
|
||||||
EOFLOGObjectFnStart();
|
|
||||||
|
|
||||||
instanceDictionaryInitializer = [self _instanceDictionaryInitializer];
|
instanceDictionaryInitializer = [self _instanceDictionaryInitializer];
|
||||||
|
|
||||||
EOFLOGObjectLevelArgs(@"EOEntity", @"instanceDictionaryInitializer=%@",
|
|
||||||
instanceDictionaryInitializer);
|
|
||||||
|
|
||||||
// No need to build the dictionary if there's no key.
|
// 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
|
// The only drawback I see is if someone use extraData feature of MKK dictionary
|
||||||
if ([instanceDictionaryInitializer count]>0)
|
if ([instanceDictionaryInitializer count]>0)
|
||||||
|
@ -2890,10 +2861,6 @@ returns nil if there's no key in the instanceDictionaryInitializer
|
||||||
dictionaryWithInitializer:
|
dictionaryWithInitializer:
|
||||||
instanceDictionaryInitializer];
|
instanceDictionaryInitializer];
|
||||||
}
|
}
|
||||||
EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForProperties=%@",
|
|
||||||
dictionaryForProperties);
|
|
||||||
|
|
||||||
EOFLOGObjectFnStop();
|
|
||||||
|
|
||||||
return dictionaryForProperties;
|
return dictionaryForProperties;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue