Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[DEV] Regenerated TestMule files.

  • Loading branch information...
commit dacfb373f5e1a9f596b8fee14d6dc8fb853b5485 1 parent 3d3e344
@rentzsch authored
View
2  mogeneratorTestMule/MOs/_ChildMO.h
@@ -40,7 +40,7 @@ extern const struct ChildMOFetchedProperties {
-@property (nonatomic, retain) ParentMO* parent;
+@property (nonatomic, retain) ParentMO *parent;
//- (BOOL)validateParent:(id*)value_ error:(NSError**)error_;
View
8 mogeneratorTestMule/MOs/_ChildMO.m
@@ -37,7 +37,7 @@ - (ChildMOID*)objectID {
return (ChildMOID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
@@ -78,7 +78,7 @@ + (NSArray*)fetchByParent:(NSManagedObjectContext*)moc_ parent:(ParentMO*)parent
+ (NSArray*)fetchByParent:(NSManagedObjectContext*)moc_ parent:(ParentMO*)parent_ error:(NSError**)error_ {
NSParameterAssert(moc_);
NSError *error = nil;
-
+
NSManagedObjectModel *model = [[moc_ persistentStoreCoordinator] managedObjectModel];
NSDictionary *substitutionVariables = [NSDictionary dictionaryWithObjectsAndKeys:
@@ -86,11 +86,11 @@ + (NSArray*)fetchByParent:(NSManagedObjectContext*)moc_ parent:(ParentMO*)parent
parent_, @"parent",
nil];
-
+
NSFetchRequest *fetchRequest = [model fetchRequestFromTemplateWithName:@"byParent"
substitutionVariables:substitutionVariables];
NSAssert(fetchRequest, @"Can't find fetch request named \"byParent\".");
-
+
NSArray *result = [moc_ executeFetchRequest:fetchRequest error:&error];
if (error_) *error_ = error;
return result;
View
2  mogeneratorTestMule/MOs/_HumanMO.h
@@ -54,7 +54,7 @@ extern const struct HumanMOFetchedProperties {
-@property (nonatomic, retain) NSManagedObject* meaninglessRelationship;
+@property (nonatomic, retain) NSManagedObject *meaninglessRelationship;
//- (BOOL)validateMeaninglessRelationship:(id*)value_ error:(NSError**)error_;
View
22 mogeneratorTestMule/MOs/_HumanMO.m
@@ -39,7 +39,7 @@ - (HumanMOID*)objectID {
return (HumanMOID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
@@ -89,7 +89,7 @@ + (id)fetchOneByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)hum
+ (id)fetchOneByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)humanName_ error:(NSError**)error_ {
NSParameterAssert(moc_);
NSError *error = nil;
-
+
NSManagedObjectModel *model = [[moc_ persistentStoreCoordinator] managedObjectModel];
NSDictionary *substitutionVariables = [NSDictionary dictionaryWithObjectsAndKeys:
@@ -101,10 +101,10 @@ + (id)fetchOneByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)hum
NSFetchRequest *fetchRequest = [model fetchRequestFromTemplateWithName:@"oneByHumanName"
substitutionVariables:substitutionVariables];
NSAssert(fetchRequest, @"Can't find fetch request named \"oneByHumanName\".");
-
+
id result = nil;
NSArray *results = [moc_ executeFetchRequest:fetchRequest error:&error];
-
+
if (!error) {
switch ([results count]) {
case 0:
@@ -120,7 +120,7 @@ + (id)fetchOneByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)hum
results);
}
}
-
+
if (error_) *error_ = error;
return result;
}
@@ -142,15 +142,15 @@ + (NSArray*)fetchAllHumans:(NSManagedObjectContext*)moc_ {
+ (NSArray*)fetchAllHumans:(NSManagedObjectContext*)moc_ error:(NSError**)error_ {
NSParameterAssert(moc_);
NSError *error = nil;
-
+
NSManagedObjectModel *model = [[moc_ persistentStoreCoordinator] managedObjectModel];
NSDictionary *substitutionVariables = [NSDictionary dictionary];
-
+
NSFetchRequest *fetchRequest = [model fetchRequestFromTemplateWithName:@"allHumans"
substitutionVariables:substitutionVariables];
NSAssert(fetchRequest, @"Can't find fetch request named \"allHumans\".");
-
+
NSArray *result = [moc_ executeFetchRequest:fetchRequest error:&error];
if (error_) *error_ = error;
return result;
@@ -173,7 +173,7 @@ + (NSArray*)fetchByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)
+ (NSArray*)fetchByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)humanName_ error:(NSError**)error_ {
NSParameterAssert(moc_);
NSError *error = nil;
-
+
NSManagedObjectModel *model = [[moc_ persistentStoreCoordinator] managedObjectModel];
NSDictionary *substitutionVariables = [NSDictionary dictionaryWithObjectsAndKeys:
@@ -181,11 +181,11 @@ + (NSArray*)fetchByHumanName:(NSManagedObjectContext*)moc_ humanName:(NSString*)
humanName_, @"humanName",
nil];
-
+
NSFetchRequest *fetchRequest = [model fetchRequestFromTemplateWithName:@"byHumanName"
substitutionVariables:substitutionVariables];
NSAssert(fetchRequest, @"Can't find fetch request named \"byHumanName\".");
-
+
NSArray *result = [moc_ executeFetchRequest:fetchRequest error:&error];
if (error_) *error_ = error;
return result;
View
2  mogeneratorTestMule/MOs/_ParentMO.h
@@ -198,7 +198,7 @@ extern const struct ParentMOFetchedProperties {
-@property (nonatomic, retain) NSSet* children;
+@property (nonatomic, retain) NSSet *children;
- (NSMutableSet*)childrenSet;
View
9 mogeneratorTestMule/MOs/_ParentMO.m
@@ -50,36 +50,43 @@ - (ParentMOID*)objectID {
return (ParentMOID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"myBooleanValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myBoolean"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myDoubleValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myDouble"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myFloatValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myFloat"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myInt16Value"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myInt16"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myInt16TransientValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myInt16Transient"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myInt32Value"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myInt32"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myInt64Value"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myInt64"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
return keyPaths;
Please sign in to comment.
Something went wrong with that request. Please try again.