mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-20 18:12:04 +00:00
* EOAccess/EODatabaseContext.h/m:
(EOStoredProcedureNameHintKey, EOCustomQueryExpressionHintKey): Define missing keys. * EOControl/EODeprecated.h: (EOPrefetchingRelationshipHintKey) (EOFetchLimitHintKey, EOPromptAfterFetchLimitHintKey): Ditto. * EOControl/EOFetchSpecification.m: (EOPrefetchingRelationshipHintKey, EOFetchLimitHintKey) (EOPromptAfterFetchLimitHintKey): Ditto. Use globally defined keys instead of local strings. * EOAccess/EODatabaseChannel.m (_selectWithFetchSpecification:editingContext:) Use globally defined keys instead of local strings. * EOControl/EOQualifier.m (+[stringForOperatorSelector:]): Return selector name instead of nil if not given a standard EOQualifierOperator selector. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20279 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
24fefa0924
commit
d590199f26
7 changed files with 38 additions and 6 deletions
19
ChangeLog
19
ChangeLog
|
@ -1,3 +1,22 @@
|
||||||
|
2004-11-02 David Ayers <d.ayers@inode.at>
|
||||||
|
|
||||||
|
* EOAccess/EODatabaseContext.h/m:
|
||||||
|
(EOStoredProcedureNameHintKey, EOCustomQueryExpressionHintKey):
|
||||||
|
Define missing keys.
|
||||||
|
* EOControl/EODeprecated.h: (EOPrefetchingRelationshipHintKey)
|
||||||
|
(EOFetchLimitHintKey, EOPromptAfterFetchLimitHintKey): Ditto.
|
||||||
|
* EOControl/EOFetchSpecification.m:
|
||||||
|
(EOPrefetchingRelationshipHintKey, EOFetchLimitHintKey)
|
||||||
|
(EOPromptAfterFetchLimitHintKey): Ditto. Use globally defined
|
||||||
|
keys instead of local strings.
|
||||||
|
* EOAccess/EODatabaseChannel.m
|
||||||
|
(_selectWithFetchSpecification:editingContext:) Use globally
|
||||||
|
defined keys instead of local strings.
|
||||||
|
|
||||||
|
* EOControl/EOQualifier.m (+[stringForOperatorSelector:]):
|
||||||
|
Return selector name instead of nil if not given a standard
|
||||||
|
EOQualifierOperator selector.
|
||||||
|
|
||||||
2004-10-20 David Ayers <d.ayers@inode.at>
|
2004-10-20 David Ayers <d.ayers@inode.at>
|
||||||
|
|
||||||
* EOInterface/EODetailSelectionAssociation.h/m: New files.
|
* EOInterface/EODetailSelectionAssociation.h/m: New files.
|
||||||
|
|
|
@ -645,7 +645,7 @@ RCS_ID("$Id$")
|
||||||
|
|
||||||
_hints = [fetch _hints];
|
_hints = [fetch _hints];
|
||||||
|
|
||||||
customQueryExpressionHint = [_hints objectForKey: @"EOCustomQueryExpressionHintKey"];//TODO use it
|
customQueryExpressionHint = [_hints objectForKey: EOCustomQueryExpressionHintKey];//TODO use it
|
||||||
|
|
||||||
if (customQueryExpressionHint)
|
if (customQueryExpressionHint)
|
||||||
{
|
{
|
||||||
|
@ -722,7 +722,7 @@ RCS_ID("$Id$")
|
||||||
entity = [database entityNamed:entityName];
|
entity = [database entityNamed:entityName];
|
||||||
primaryKeyAttributes = [entity primaryKeyAttributes];
|
primaryKeyAttributes = [entity primaryKeyAttributes];
|
||||||
hints = [fetch hints]; // ret {}
|
hints = [fetch hints]; // ret {}
|
||||||
storedProcedureName = [hints objectForKey: @"EOStoredProcedureNameHintKey"];//TODO use it
|
storedProcedureName = [hints objectForKey: EOStoredProcedureNameHintKey];//TODO use it
|
||||||
model = [entity model];
|
model = [entity model];
|
||||||
modelGroup = [model modelGroup]; //ret nil
|
modelGroup = [model modelGroup]; //ret nil
|
||||||
//TODO if model gr
|
//TODO if model gr
|
||||||
|
|
|
@ -438,6 +438,7 @@ shouldRaiseExceptionForLockFailure: (NSException *)exception;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
GDL2ACCESS_EXPORT NSString *EOCustomQueryExpressionHintKey;
|
GDL2ACCESS_EXPORT NSString *EOCustomQueryExpressionHintKey;
|
||||||
|
GDL2ACCESS_EXPORT NSString *EOStoredProcedureNameHintKey;
|
||||||
|
|
||||||
GDL2ACCESS_EXPORT NSString *EODatabaseContextKey;
|
GDL2ACCESS_EXPORT NSString *EODatabaseContextKey;
|
||||||
GDL2ACCESS_EXPORT NSString *EODatabaseOperationsKey;
|
GDL2ACCESS_EXPORT NSString *EODatabaseOperationsKey;
|
||||||
|
|
|
@ -111,6 +111,8 @@ NSString *EODatabaseContextKey = @"EODatabaseContextKey";
|
||||||
NSString *EODatabaseOperationsKey = @"EODatabaseOperationsKey";
|
NSString *EODatabaseOperationsKey = @"EODatabaseOperationsKey";
|
||||||
NSString *EOFailedDatabaseOperationKey = @"EOFailedDatabaseOperationKey";
|
NSString *EOFailedDatabaseOperationKey = @"EOFailedDatabaseOperationKey";
|
||||||
|
|
||||||
|
NSString *EOCustomQueryExpressionHintKey = @"EOCustomQueryExpressionHintKey";
|
||||||
|
NSString *EOStoredProcedureNameHintKey = @"EOStoredProcedureNameHintKey";
|
||||||
|
|
||||||
@interface EODatabaseContext(EOObjectStoreSupportPrivate)
|
@interface EODatabaseContext(EOObjectStoreSupportPrivate)
|
||||||
- (id) entityForGlobalID: (EOGlobalID *)globalID;
|
- (id) entityForGlobalID: (EOGlobalID *)globalID;
|
||||||
|
|
|
@ -68,5 +68,8 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
GDL2CONTROL_EXPORT NSString *EOPrefetchingRelationshipHintKey;
|
||||||
|
GDL2CONTROL_EXPORT NSString *EOFetchLimitHintKey;
|
||||||
|
GDL2CONTROL_EXPORT NSString *EOPromptAfterFetchLimitHintKey;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -56,6 +56,13 @@ RCS_ID("$Id$")
|
||||||
#include <EOControl/EONSAddOns.h>
|
#include <EOControl/EONSAddOns.h>
|
||||||
#include <EOControl/EOQualifier.h>
|
#include <EOControl/EOQualifier.h>
|
||||||
|
|
||||||
|
#include <EOControl/EODeprecated.h>
|
||||||
|
|
||||||
|
NSString *EOPrefetchingRelationshipHintKey = @"EOPrefetchingRelationshipHintKey";
|
||||||
|
NSString *EOFetchLimitHintKey = @"EOFetchLimitHintKey";
|
||||||
|
NSString *EOPromptAfterFetchLimitHintKey = @"EOPromptAfterFetchLimitHintKey";
|
||||||
|
|
||||||
|
|
||||||
@interface NSObject (EOAccess)
|
@interface NSObject (EOAccess)
|
||||||
/* EOEntity.h */
|
/* EOEntity.h */
|
||||||
- (EOFetchSpecification *)fetchSpecificationNamed: (NSString *)fetchSpecName;
|
- (EOFetchSpecification *)fetchSpecificationNamed: (NSString *)fetchSpecName;
|
||||||
|
@ -537,20 +544,20 @@ setRequiresAllQualifierBindingVariables:requiresAllQualifierBindingVariables
|
||||||
if (fetchLimit != 0)
|
if (fetchLimit != 0)
|
||||||
{
|
{
|
||||||
[mutableHints setObject: [NSNumber numberWithInt: fetchLimit]
|
[mutableHints setObject: [NSNumber numberWithInt: fetchLimit]
|
||||||
forKey: @"EOFetchLimitHintKey"];
|
forKey: EOFetchLimitHintKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (promptsAfterFetchLimit)
|
if (promptsAfterFetchLimit)
|
||||||
{
|
{
|
||||||
[mutableHints setObject: [NSNumber numberWithBool:
|
[mutableHints setObject: [NSNumber numberWithBool:
|
||||||
promptsAfterFetchLimit]
|
promptsAfterFetchLimit]
|
||||||
forKey: @"EOPromptAfterFetchLimitHintKey"];
|
forKey: EOPromptAfterFetchLimitHintKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([prefetchingRelationshipKeyPaths count] > 0)
|
if ([prefetchingRelationshipKeyPaths count] > 0)
|
||||||
{
|
{
|
||||||
[mutableHints setObject: prefetchingRelationshipKeyPaths
|
[mutableHints setObject: prefetchingRelationshipKeyPaths
|
||||||
forKey: @"EOPrefetchingRelationshipHintKey"];
|
forKey: EOPrefetchingRelationshipHintKey];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -768,7 +768,7 @@ static Class whichQualifier(const char **cFormat, const char **s)
|
||||||
else if (sel_eq(selector, EOQualifierOperatorCaseInsensitiveLike))
|
else if (sel_eq(selector, EOQualifierOperatorCaseInsensitiveLike))
|
||||||
return @"caseInsensitiveLike";
|
return @"caseInsensitiveLike";
|
||||||
|
|
||||||
return nil;
|
return NSStringFromSelector(selector);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (SEL)operatorSelectorForString: (NSString *)string
|
+ (SEL)operatorSelectorForString: (NSString *)string
|
||||||
|
|
Loading…
Reference in a new issue