/Frameworks/OmniDataObjects/Tests/Generated/ODOTestCaseModel.m
https://github.com/andrekandore/OmniGroup · Objective C · 191 lines · 149 code · 41 blank · 1 comment · 1 complexity · 2c77560fd0312c97c0afc3a0d96b775a MD5 · raw file
- /* DO NOT MODIFY: This file is autogenerated! */
- #import "ODOTestCaseModel.h"
- #import <OmniDataObjects/ODOModel-Creation.h>
- #import <Foundation/NSValue.h>
- #import <Foundation/NSString.h>
- #import <Foundation/NSData.h>
- #import <Foundation/NSDate.h>
- NSString * const ODOTestCaseAllAttributeTypesEntityName = @"AllAttributeTypes";
- NSString * const ODOTestCaseAllAttributeTypesBoolean = @"boolean";
- NSString * const ODOTestCaseAllAttributeTypesData = @"data";
- NSString * const ODOTestCaseAllAttributeTypesDate = @"date";
- NSString * const ODOTestCaseAllAttributeTypesFloat32 = @"float32";
- NSString * const ODOTestCaseAllAttributeTypesFloat64 = @"float64";
- NSString * const ODOTestCaseAllAttributeTypesInt16 = @"int16";
- NSString * const ODOTestCaseAllAttributeTypesInt32 = @"int32";
- NSString * const ODOTestCaseAllAttributeTypesInt64 = @"int64";
- NSString * const ODOTestCaseAllAttributeTypesPk = @"pk";
- NSString * const ODOTestCaseAllAttributeTypesString = @"string";
- NSString * const ODOTestCaseDetailEntityName = @"Detail";
- NSString * const ODOTestCaseDetailMaster = @"master";
- NSString * const ODOTestCaseDetailName = @"name";
- NSString * const ODOTestCaseDetailPk = @"pk";
- NSString * const ODOTestCaseDynamicPropertyEntityName = @"DynamicProperty";
- NSString * const ODOTestCaseDynamicPropertyName = @"name";
- NSString * const ODOTestCaseDynamicPropertyPk = @"pk";
- NSString * const ODOTestCaseLeftHandEntityName = @"LeftHand";
- NSString * const ODOTestCaseLeftHandName = @"name";
- NSString * const ODOTestCaseLeftHandPk = @"pk";
- NSString * const ODOTestCaseLeftHandRightHand = @"rightHand";
- NSString * const ODOTestCaseLeftHandRequiredEntityName = @"LeftHandRequired";
- NSString * const ODOTestCaseLeftHandRequiredName = @"name";
- NSString * const ODOTestCaseLeftHandRequiredPk = @"pk";
- NSString * const ODOTestCaseLeftHandRequiredRightHand = @"rightHand";
- NSString * const ODOTestCaseMasterEntityName = @"Master";
- NSString * const ODOTestCaseMasterDetails = @"details";
- NSString * const ODOTestCaseMasterName = @"name";
- NSString * const ODOTestCaseMasterPk = @"pk";
- NSString * const ODOTestCaseRightHandEntityName = @"RightHand";
- NSString * const ODOTestCaseRightHandLeftHand = @"leftHand";
- NSString * const ODOTestCaseRightHandName = @"name";
- NSString * const ODOTestCaseRightHandPk = @"pk";
- NSString * const ODOTestCaseRightHandRequiredEntityName = @"RightHandRequired";
- NSString * const ODOTestCaseRightHandRequiredLeftHand = @"leftHand";
- NSString * const ODOTestCaseRightHandRequiredName = @"name";
- NSString * const ODOTestCaseRightHandRequiredPk = @"pk";
- #ifdef __clang__
- static void DisableAnalysis(void) __attribute__((analyzer_noreturn));
- #endif
- static void DisableAnalysis(void) {}
- ODOModel * ODOTestCaseModel(void)
- {
- DisableAnalysis();
- static ODOModel *model = nil;
- if (model) return model;
- ODOAttribute *AllAttributeTypes_boolean = ODOAttributeCreate(ODOTestCaseAllAttributeTypesBoolean, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(boolean), @selector(setBoolean:), ODOAttributeTypeBoolean, [NSNumber class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_data = ODOAttributeCreate(ODOTestCaseAllAttributeTypesData, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(data), @selector(setData:), ODOAttributeTypeData, [NSData class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_date = ODOAttributeCreate(ODOTestCaseAllAttributeTypesDate, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(date), @selector(setDate:), ODOAttributeTypeDate, [NSDate class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_float32 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesFloat32, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(float32), @selector(setFloat32:), ODOAttributeTypeFloat32, [NSNumber class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_float64 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesFloat64, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(float64), @selector(setFloat64:), ODOAttributeTypeFloat64, [NSNumber class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_int16 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesInt16, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(int16), @selector(setInt16:), ODOAttributeTypeInt16, [NSNumber class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_int32 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesInt32, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(int32), @selector(setInt32:), ODOAttributeTypeInt32, [NSNumber class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_int64 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesInt64, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(int64), @selector(setInt64:), ODOAttributeTypeInt64, [NSNumber class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *AllAttributeTypes_pk = ODOAttributeCreate(ODOTestCaseAllAttributeTypesPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODOAttribute *AllAttributeTypes_string = ODOAttributeCreate(ODOTestCaseAllAttributeTypesString, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(string), @selector(setString:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOEntity *AllAttributeTypes = ODOEntityCreate(ODOTestCaseAllAttributeTypesEntityName, @"I:AllAttributeTypes", @"U:AllAttributeTypes", @"D:AllAttributeTypes", @"PK:AllAttributeTypes",
- @"ODOTestCaseAllAttributeTypes",
- [NSArray arrayWithObjects:AllAttributeTypes_boolean, AllAttributeTypes_data, AllAttributeTypes_date, AllAttributeTypes_float32, AllAttributeTypes_float64, AllAttributeTypes_int16, AllAttributeTypes_int32, AllAttributeTypes_int64, AllAttributeTypes_pk, AllAttributeTypes_string, nil]);
- ODORelationship *Detail_master = ODORelationshipCreate(ODOTestCaseDetailMaster, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(master), @selector(setMaster:), NO/*toMany*/, ODORelationshipDeleteRuleNullify);
- ODOAttribute *Detail_name = ODOAttributeCreate(ODOTestCaseDetailName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *Detail_pk = ODOAttributeCreate(ODOTestCaseDetailPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODOEntity *Detail = ODOEntityCreate(ODOTestCaseDetailEntityName, @"I:Detail", @"U:Detail", @"D:Detail", @"PK:Detail",
- @"ODOTestCaseDetail",
- [NSArray arrayWithObjects:Detail_master, Detail_name, Detail_pk, nil]);
- ODOAttribute *DynamicProperty_name = ODOAttributeCreate(ODOTestCaseDynamicPropertyName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *DynamicProperty_pk = ODOAttributeCreate(ODOTestCaseDynamicPropertyPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODOEntity *DynamicProperty = ODOEntityCreate(ODOTestCaseDynamicPropertyEntityName, @"I:DynamicProperty", @"U:DynamicProperty", @"D:DynamicProperty", @"PK:DynamicProperty",
- @"ODOTestCaseDynamicProperty",
- [NSArray arrayWithObjects:DynamicProperty_name, DynamicProperty_pk, nil]);
- ODOAttribute *LeftHand_name = ODOAttributeCreate(ODOTestCaseLeftHandName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *LeftHand_pk = ODOAttributeCreate(ODOTestCaseLeftHandPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODORelationship *LeftHand_rightHand = ODORelationshipCreate(ODOTestCaseLeftHandRightHand, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(rightHand), @selector(setRightHand:), NO/*toMany*/, ODORelationshipDeleteRuleNullify);
- ODOEntity *LeftHand = ODOEntityCreate(ODOTestCaseLeftHandEntityName, @"I:LeftHand", @"U:LeftHand", @"D:LeftHand", @"PK:LeftHand",
- @"ODOTestCaseLeftHand",
- [NSArray arrayWithObjects:LeftHand_name, LeftHand_pk, LeftHand_rightHand, nil]);
- ODOAttribute *LeftHandRequired_name = ODOAttributeCreate(ODOTestCaseLeftHandRequiredName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *LeftHandRequired_pk = ODOAttributeCreate(ODOTestCaseLeftHandRequiredPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODORelationship *LeftHandRequired_rightHand = ODORelationshipCreate(ODOTestCaseLeftHandRequiredRightHand, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(rightHand), @selector(setRightHand:), NO/*toMany*/, ODORelationshipDeleteRuleCascade);
- ODOEntity *LeftHandRequired = ODOEntityCreate(ODOTestCaseLeftHandRequiredEntityName, @"I:LeftHandRequired", @"U:LeftHandRequired", @"D:LeftHandRequired", @"PK:LeftHandRequired",
- @"ODOTestCaseLeftHandRequired",
- [NSArray arrayWithObjects:LeftHandRequired_name, LeftHandRequired_pk, LeftHandRequired_rightHand, nil]);
- ODORelationship *Master_details = ODORelationshipCreate(ODOTestCaseMasterDetails, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(details), @selector(setDetails:), YES/*toMany*/, ODORelationshipDeleteRuleCascade);
- ODOAttribute *Master_name = ODOAttributeCreate(ODOTestCaseMasterName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *Master_pk = ODOAttributeCreate(ODOTestCaseMasterPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODOEntity *Master = ODOEntityCreate(ODOTestCaseMasterEntityName, @"I:Master", @"U:Master", @"D:Master", @"PK:Master",
- @"ODOTestCaseMaster",
- [NSArray arrayWithObjects:Master_details, Master_name, Master_pk, nil]);
- ODORelationship *RightHand_leftHand = ODORelationshipCreate(ODOTestCaseRightHandLeftHand, NO/*optional*/, YES/*calculated*/, NO/*transient*/, @selector(leftHand), @selector(setLeftHand:), NO/*toMany*/, ODORelationshipDeleteRuleNullify);
- ODOAttribute *RightHand_name = ODOAttributeCreate(ODOTestCaseRightHandName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *RightHand_pk = ODOAttributeCreate(ODOTestCaseRightHandPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODOEntity *RightHand = ODOEntityCreate(ODOTestCaseRightHandEntityName, @"I:RightHand", @"U:RightHand", @"D:RightHand", @"PK:RightHand",
- @"ODOTestCaseRightHand",
- [NSArray arrayWithObjects:RightHand_leftHand, RightHand_name, RightHand_pk, nil]);
- ODORelationship *RightHandRequired_leftHand = ODORelationshipCreate(ODOTestCaseRightHandRequiredLeftHand, NO/*optional*/, YES/*calculated*/, NO/*transient*/, @selector(leftHand), @selector(setLeftHand:), NO/*toMany*/, ODORelationshipDeleteRuleCascade);
- ODOAttribute *RightHandRequired_name = ODOAttributeCreate(ODOTestCaseRightHandRequiredName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
- ODOAttribute *RightHandRequired_pk = ODOAttributeCreate(ODOTestCaseRightHandRequiredPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
- ODOEntity *RightHandRequired = ODOEntityCreate(ODOTestCaseRightHandRequiredEntityName, @"I:RightHandRequired", @"U:RightHandRequired", @"D:RightHandRequired", @"PK:RightHandRequired",
- @"ODOTestCaseRightHandRequired",
- [NSArray arrayWithObjects:RightHandRequired_leftHand, RightHandRequired_name, RightHandRequired_pk, nil]);
- model = ODOModelCreate(@"ODOTestCase", [NSArray arrayWithObjects:AllAttributeTypes, Detail, DynamicProperty, LeftHand, LeftHandRequired, Master, RightHand, RightHandRequired, nil]);
- ODOPropertyBind(AllAttributeTypes_boolean, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_data, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_date, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_float32, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_float64, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_int16, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_int32, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_int64, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_pk, AllAttributeTypes);
- ODOPropertyBind(AllAttributeTypes_string, AllAttributeTypes);
- ODOEntityBind(AllAttributeTypes, model);
- ODORelationshipBind(Detail_master, Detail, Master, Master_details);
- ODOPropertyBind(Detail_name, Detail);
- ODOPropertyBind(Detail_pk, Detail);
- ODOEntityBind(Detail, model);
- ODOPropertyBind(DynamicProperty_name, DynamicProperty);
- ODOPropertyBind(DynamicProperty_pk, DynamicProperty);
- ODOEntityBind(DynamicProperty, model);
- ODOPropertyBind(LeftHand_name, LeftHand);
- ODOPropertyBind(LeftHand_pk, LeftHand);
- ODORelationshipBind(LeftHand_rightHand, LeftHand, RightHand, RightHand_leftHand);
- ODOEntityBind(LeftHand, model);
- ODOPropertyBind(LeftHandRequired_name, LeftHandRequired);
- ODOPropertyBind(LeftHandRequired_pk, LeftHandRequired);
- ODORelationshipBind(LeftHandRequired_rightHand, LeftHandRequired, RightHandRequired, RightHandRequired_leftHand);
- ODOEntityBind(LeftHandRequired, model);
- ODORelationshipBind(Master_details, Master, Detail, Detail_master);
- ODOPropertyBind(Master_name, Master);
- ODOPropertyBind(Master_pk, Master);
- ODOEntityBind(Master, model);
- ODORelationshipBind(RightHand_leftHand, RightHand, LeftHand, LeftHand_rightHand);
- ODOPropertyBind(RightHand_name, RightHand);
- ODOPropertyBind(RightHand_pk, RightHand);
- ODOEntityBind(RightHand, model);
- ODORelationshipBind(RightHandRequired_leftHand, RightHandRequired, LeftHandRequired, LeftHandRequired_rightHand);
- ODOPropertyBind(RightHandRequired_name, RightHandRequired);
- ODOPropertyBind(RightHandRequired_pk, RightHandRequired);
- ODOEntityBind(RightHandRequired, model);
- ODOModelFinalize(model);
- return model;
- }