/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

  1. /* DO NOT MODIFY: This file is autogenerated! */
  2. #import "ODOTestCaseModel.h"
  3. #import <OmniDataObjects/ODOModel-Creation.h>
  4. #import <Foundation/NSValue.h>
  5. #import <Foundation/NSString.h>
  6. #import <Foundation/NSData.h>
  7. #import <Foundation/NSDate.h>
  8. NSString * const ODOTestCaseAllAttributeTypesEntityName = @"AllAttributeTypes";
  9. NSString * const ODOTestCaseAllAttributeTypesBoolean = @"boolean";
  10. NSString * const ODOTestCaseAllAttributeTypesData = @"data";
  11. NSString * const ODOTestCaseAllAttributeTypesDate = @"date";
  12. NSString * const ODOTestCaseAllAttributeTypesFloat32 = @"float32";
  13. NSString * const ODOTestCaseAllAttributeTypesFloat64 = @"float64";
  14. NSString * const ODOTestCaseAllAttributeTypesInt16 = @"int16";
  15. NSString * const ODOTestCaseAllAttributeTypesInt32 = @"int32";
  16. NSString * const ODOTestCaseAllAttributeTypesInt64 = @"int64";
  17. NSString * const ODOTestCaseAllAttributeTypesPk = @"pk";
  18. NSString * const ODOTestCaseAllAttributeTypesString = @"string";
  19. NSString * const ODOTestCaseDetailEntityName = @"Detail";
  20. NSString * const ODOTestCaseDetailMaster = @"master";
  21. NSString * const ODOTestCaseDetailName = @"name";
  22. NSString * const ODOTestCaseDetailPk = @"pk";
  23. NSString * const ODOTestCaseDynamicPropertyEntityName = @"DynamicProperty";
  24. NSString * const ODOTestCaseDynamicPropertyName = @"name";
  25. NSString * const ODOTestCaseDynamicPropertyPk = @"pk";
  26. NSString * const ODOTestCaseLeftHandEntityName = @"LeftHand";
  27. NSString * const ODOTestCaseLeftHandName = @"name";
  28. NSString * const ODOTestCaseLeftHandPk = @"pk";
  29. NSString * const ODOTestCaseLeftHandRightHand = @"rightHand";
  30. NSString * const ODOTestCaseLeftHandRequiredEntityName = @"LeftHandRequired";
  31. NSString * const ODOTestCaseLeftHandRequiredName = @"name";
  32. NSString * const ODOTestCaseLeftHandRequiredPk = @"pk";
  33. NSString * const ODOTestCaseLeftHandRequiredRightHand = @"rightHand";
  34. NSString * const ODOTestCaseMasterEntityName = @"Master";
  35. NSString * const ODOTestCaseMasterDetails = @"details";
  36. NSString * const ODOTestCaseMasterName = @"name";
  37. NSString * const ODOTestCaseMasterPk = @"pk";
  38. NSString * const ODOTestCaseRightHandEntityName = @"RightHand";
  39. NSString * const ODOTestCaseRightHandLeftHand = @"leftHand";
  40. NSString * const ODOTestCaseRightHandName = @"name";
  41. NSString * const ODOTestCaseRightHandPk = @"pk";
  42. NSString * const ODOTestCaseRightHandRequiredEntityName = @"RightHandRequired";
  43. NSString * const ODOTestCaseRightHandRequiredLeftHand = @"leftHand";
  44. NSString * const ODOTestCaseRightHandRequiredName = @"name";
  45. NSString * const ODOTestCaseRightHandRequiredPk = @"pk";
  46. #ifdef __clang__
  47. static void DisableAnalysis(void) __attribute__((analyzer_noreturn));
  48. #endif
  49. static void DisableAnalysis(void) {}
  50. ODOModel * ODOTestCaseModel(void)
  51. {
  52. DisableAnalysis();
  53. static ODOModel *model = nil;
  54. if (model) return model;
  55. ODOAttribute *AllAttributeTypes_boolean = ODOAttributeCreate(ODOTestCaseAllAttributeTypesBoolean, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(boolean), @selector(setBoolean:), ODOAttributeTypeBoolean, [NSNumber class], nil/*default value*/, NO/*primary*/);
  56. ODOAttribute *AllAttributeTypes_data = ODOAttributeCreate(ODOTestCaseAllAttributeTypesData, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(data), @selector(setData:), ODOAttributeTypeData, [NSData class], nil/*default value*/, NO/*primary*/);
  57. ODOAttribute *AllAttributeTypes_date = ODOAttributeCreate(ODOTestCaseAllAttributeTypesDate, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(date), @selector(setDate:), ODOAttributeTypeDate, [NSDate class], nil/*default value*/, NO/*primary*/);
  58. ODOAttribute *AllAttributeTypes_float32 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesFloat32, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(float32), @selector(setFloat32:), ODOAttributeTypeFloat32, [NSNumber class], nil/*default value*/, NO/*primary*/);
  59. ODOAttribute *AllAttributeTypes_float64 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesFloat64, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(float64), @selector(setFloat64:), ODOAttributeTypeFloat64, [NSNumber class], nil/*default value*/, NO/*primary*/);
  60. ODOAttribute *AllAttributeTypes_int16 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesInt16, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(int16), @selector(setInt16:), ODOAttributeTypeInt16, [NSNumber class], nil/*default value*/, NO/*primary*/);
  61. ODOAttribute *AllAttributeTypes_int32 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesInt32, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(int32), @selector(setInt32:), ODOAttributeTypeInt32, [NSNumber class], nil/*default value*/, NO/*primary*/);
  62. ODOAttribute *AllAttributeTypes_int64 = ODOAttributeCreate(ODOTestCaseAllAttributeTypesInt64, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(int64), @selector(setInt64:), ODOAttributeTypeInt64, [NSNumber class], nil/*default value*/, NO/*primary*/);
  63. ODOAttribute *AllAttributeTypes_pk = ODOAttributeCreate(ODOTestCaseAllAttributeTypesPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  64. ODOAttribute *AllAttributeTypes_string = ODOAttributeCreate(ODOTestCaseAllAttributeTypesString, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(string), @selector(setString:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  65. ODOEntity *AllAttributeTypes = ODOEntityCreate(ODOTestCaseAllAttributeTypesEntityName, @"I:AllAttributeTypes", @"U:AllAttributeTypes", @"D:AllAttributeTypes", @"PK:AllAttributeTypes",
  66. @"ODOTestCaseAllAttributeTypes",
  67. [NSArray arrayWithObjects:AllAttributeTypes_boolean, AllAttributeTypes_data, AllAttributeTypes_date, AllAttributeTypes_float32, AllAttributeTypes_float64, AllAttributeTypes_int16, AllAttributeTypes_int32, AllAttributeTypes_int64, AllAttributeTypes_pk, AllAttributeTypes_string, nil]);
  68. ODORelationship *Detail_master = ODORelationshipCreate(ODOTestCaseDetailMaster, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(master), @selector(setMaster:), NO/*toMany*/, ODORelationshipDeleteRuleNullify);
  69. ODOAttribute *Detail_name = ODOAttributeCreate(ODOTestCaseDetailName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  70. ODOAttribute *Detail_pk = ODOAttributeCreate(ODOTestCaseDetailPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  71. ODOEntity *Detail = ODOEntityCreate(ODOTestCaseDetailEntityName, @"I:Detail", @"U:Detail", @"D:Detail", @"PK:Detail",
  72. @"ODOTestCaseDetail",
  73. [NSArray arrayWithObjects:Detail_master, Detail_name, Detail_pk, nil]);
  74. ODOAttribute *DynamicProperty_name = ODOAttributeCreate(ODOTestCaseDynamicPropertyName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  75. ODOAttribute *DynamicProperty_pk = ODOAttributeCreate(ODOTestCaseDynamicPropertyPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  76. ODOEntity *DynamicProperty = ODOEntityCreate(ODOTestCaseDynamicPropertyEntityName, @"I:DynamicProperty", @"U:DynamicProperty", @"D:DynamicProperty", @"PK:DynamicProperty",
  77. @"ODOTestCaseDynamicProperty",
  78. [NSArray arrayWithObjects:DynamicProperty_name, DynamicProperty_pk, nil]);
  79. ODOAttribute *LeftHand_name = ODOAttributeCreate(ODOTestCaseLeftHandName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  80. ODOAttribute *LeftHand_pk = ODOAttributeCreate(ODOTestCaseLeftHandPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  81. ODORelationship *LeftHand_rightHand = ODORelationshipCreate(ODOTestCaseLeftHandRightHand, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(rightHand), @selector(setRightHand:), NO/*toMany*/, ODORelationshipDeleteRuleNullify);
  82. ODOEntity *LeftHand = ODOEntityCreate(ODOTestCaseLeftHandEntityName, @"I:LeftHand", @"U:LeftHand", @"D:LeftHand", @"PK:LeftHand",
  83. @"ODOTestCaseLeftHand",
  84. [NSArray arrayWithObjects:LeftHand_name, LeftHand_pk, LeftHand_rightHand, nil]);
  85. ODOAttribute *LeftHandRequired_name = ODOAttributeCreate(ODOTestCaseLeftHandRequiredName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  86. ODOAttribute *LeftHandRequired_pk = ODOAttributeCreate(ODOTestCaseLeftHandRequiredPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  87. ODORelationship *LeftHandRequired_rightHand = ODORelationshipCreate(ODOTestCaseLeftHandRequiredRightHand, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(rightHand), @selector(setRightHand:), NO/*toMany*/, ODORelationshipDeleteRuleCascade);
  88. ODOEntity *LeftHandRequired = ODOEntityCreate(ODOTestCaseLeftHandRequiredEntityName, @"I:LeftHandRequired", @"U:LeftHandRequired", @"D:LeftHandRequired", @"PK:LeftHandRequired",
  89. @"ODOTestCaseLeftHandRequired",
  90. [NSArray arrayWithObjects:LeftHandRequired_name, LeftHandRequired_pk, LeftHandRequired_rightHand, nil]);
  91. ODORelationship *Master_details = ODORelationshipCreate(ODOTestCaseMasterDetails, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(details), @selector(setDetails:), YES/*toMany*/, ODORelationshipDeleteRuleCascade);
  92. ODOAttribute *Master_name = ODOAttributeCreate(ODOTestCaseMasterName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  93. ODOAttribute *Master_pk = ODOAttributeCreate(ODOTestCaseMasterPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  94. ODOEntity *Master = ODOEntityCreate(ODOTestCaseMasterEntityName, @"I:Master", @"U:Master", @"D:Master", @"PK:Master",
  95. @"ODOTestCaseMaster",
  96. [NSArray arrayWithObjects:Master_details, Master_name, Master_pk, nil]);
  97. ODORelationship *RightHand_leftHand = ODORelationshipCreate(ODOTestCaseRightHandLeftHand, NO/*optional*/, YES/*calculated*/, NO/*transient*/, @selector(leftHand), @selector(setLeftHand:), NO/*toMany*/, ODORelationshipDeleteRuleNullify);
  98. ODOAttribute *RightHand_name = ODOAttributeCreate(ODOTestCaseRightHandName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  99. ODOAttribute *RightHand_pk = ODOAttributeCreate(ODOTestCaseRightHandPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  100. ODOEntity *RightHand = ODOEntityCreate(ODOTestCaseRightHandEntityName, @"I:RightHand", @"U:RightHand", @"D:RightHand", @"PK:RightHand",
  101. @"ODOTestCaseRightHand",
  102. [NSArray arrayWithObjects:RightHand_leftHand, RightHand_name, RightHand_pk, nil]);
  103. ODORelationship *RightHandRequired_leftHand = ODORelationshipCreate(ODOTestCaseRightHandRequiredLeftHand, NO/*optional*/, YES/*calculated*/, NO/*transient*/, @selector(leftHand), @selector(setLeftHand:), NO/*toMany*/, ODORelationshipDeleteRuleCascade);
  104. ODOAttribute *RightHandRequired_name = ODOAttributeCreate(ODOTestCaseRightHandRequiredName, YES/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(name), @selector(setName:), ODOAttributeTypeString, [NSString class], nil/*default value*/, NO/*primary*/);
  105. ODOAttribute *RightHandRequired_pk = ODOAttributeCreate(ODOTestCaseRightHandRequiredPk, NO/*optional*/, NO/*calculated*/, NO/*transient*/, @selector(pk), @selector(setPk:), ODOAttributeTypeString, [NSString class], nil/*default value*/, YES/*primary*/);
  106. ODOEntity *RightHandRequired = ODOEntityCreate(ODOTestCaseRightHandRequiredEntityName, @"I:RightHandRequired", @"U:RightHandRequired", @"D:RightHandRequired", @"PK:RightHandRequired",
  107. @"ODOTestCaseRightHandRequired",
  108. [NSArray arrayWithObjects:RightHandRequired_leftHand, RightHandRequired_name, RightHandRequired_pk, nil]);
  109. model = ODOModelCreate(@"ODOTestCase", [NSArray arrayWithObjects:AllAttributeTypes, Detail, DynamicProperty, LeftHand, LeftHandRequired, Master, RightHand, RightHandRequired, nil]);
  110. ODOPropertyBind(AllAttributeTypes_boolean, AllAttributeTypes);
  111. ODOPropertyBind(AllAttributeTypes_data, AllAttributeTypes);
  112. ODOPropertyBind(AllAttributeTypes_date, AllAttributeTypes);
  113. ODOPropertyBind(AllAttributeTypes_float32, AllAttributeTypes);
  114. ODOPropertyBind(AllAttributeTypes_float64, AllAttributeTypes);
  115. ODOPropertyBind(AllAttributeTypes_int16, AllAttributeTypes);
  116. ODOPropertyBind(AllAttributeTypes_int32, AllAttributeTypes);
  117. ODOPropertyBind(AllAttributeTypes_int64, AllAttributeTypes);
  118. ODOPropertyBind(AllAttributeTypes_pk, AllAttributeTypes);
  119. ODOPropertyBind(AllAttributeTypes_string, AllAttributeTypes);
  120. ODOEntityBind(AllAttributeTypes, model);
  121. ODORelationshipBind(Detail_master, Detail, Master, Master_details);
  122. ODOPropertyBind(Detail_name, Detail);
  123. ODOPropertyBind(Detail_pk, Detail);
  124. ODOEntityBind(Detail, model);
  125. ODOPropertyBind(DynamicProperty_name, DynamicProperty);
  126. ODOPropertyBind(DynamicProperty_pk, DynamicProperty);
  127. ODOEntityBind(DynamicProperty, model);
  128. ODOPropertyBind(LeftHand_name, LeftHand);
  129. ODOPropertyBind(LeftHand_pk, LeftHand);
  130. ODORelationshipBind(LeftHand_rightHand, LeftHand, RightHand, RightHand_leftHand);
  131. ODOEntityBind(LeftHand, model);
  132. ODOPropertyBind(LeftHandRequired_name, LeftHandRequired);
  133. ODOPropertyBind(LeftHandRequired_pk, LeftHandRequired);
  134. ODORelationshipBind(LeftHandRequired_rightHand, LeftHandRequired, RightHandRequired, RightHandRequired_leftHand);
  135. ODOEntityBind(LeftHandRequired, model);
  136. ODORelationshipBind(Master_details, Master, Detail, Detail_master);
  137. ODOPropertyBind(Master_name, Master);
  138. ODOPropertyBind(Master_pk, Master);
  139. ODOEntityBind(Master, model);
  140. ODORelationshipBind(RightHand_leftHand, RightHand, LeftHand, LeftHand_rightHand);
  141. ODOPropertyBind(RightHand_name, RightHand);
  142. ODOPropertyBind(RightHand_pk, RightHand);
  143. ODOEntityBind(RightHand, model);
  144. ODORelationshipBind(RightHandRequired_leftHand, RightHandRequired, LeftHandRequired, LeftHandRequired_rightHand);
  145. ODOPropertyBind(RightHandRequired_name, RightHandRequired);
  146. ODOPropertyBind(RightHandRequired_pk, RightHandRequired);
  147. ODOEntityBind(RightHandRequired, model);
  148. ODOModelFinalize(model);
  149. return model;
  150. }