1
2
3
4
5 package org.andromda.cartridges.hibernate.metafacades;
6
7 import java.util.Collection;
8 import java.util.List;
9 import org.andromda.core.common.Introspector;
10 import org.andromda.core.metafacade.MetafacadeBase;
11 import org.andromda.core.metafacade.MetafacadeFactory;
12 import org.andromda.core.metafacade.ModelValidationMessage;
13 import org.andromda.metafacades.uml.AssociationEndFacade;
14 import org.andromda.metafacades.uml.AttributeFacade;
15 import org.andromda.metafacades.uml.ClassifierFacade;
16 import org.andromda.metafacades.uml.ConstraintFacade;
17 import org.andromda.metafacades.uml.DependencyFacade;
18 import org.andromda.metafacades.uml.Entity;
19 import org.andromda.metafacades.uml.EntityAssociationEnd;
20 import org.andromda.metafacades.uml.EntityQueryOperation;
21 import org.andromda.metafacades.uml.GeneralizableElementFacade;
22 import org.andromda.metafacades.uml.GeneralizationFacade;
23 import org.andromda.metafacades.uml.ModelElementFacade;
24 import org.andromda.metafacades.uml.ModelFacade;
25 import org.andromda.metafacades.uml.OperationFacade;
26 import org.andromda.metafacades.uml.PackageFacade;
27 import org.andromda.metafacades.uml.StateMachineFacade;
28 import org.andromda.metafacades.uml.StereotypeFacade;
29 import org.andromda.metafacades.uml.TaggedValueFacade;
30 import org.andromda.metafacades.uml.TemplateParameterFacade;
31 import org.andromda.metafacades.uml.TypeMappings;
32 import org.andromda.translation.ocl.validation.OCLCollections;
33 import org.andromda.translation.ocl.validation.OCLExpressions;
34 import org.andromda.translation.ocl.validation.OCLIntrospector;
35 import org.andromda.translation.ocl.validation.OCLResultEnsurer;
36 import org.apache.commons.collections.Predicate;
37 import org.apache.log4j.Logger;
38
39
40
41
42
43
44
45 public abstract class HibernateEntityLogic
46 extends MetafacadeBase
47 implements HibernateEntity
48 {
49
50
51
52
53 protected Object metaObject;
54
55
56
57
58
59 protected HibernateEntityLogic(Object metaObjectIn, String context)
60 {
61 super(metaObjectIn, getContext(context));
62 this.superEntity =
63 (Entity)
64 MetafacadeFactory.getInstance().createFacadeImpl(
65 "org.andromda.metafacades.uml.Entity",
66 metaObjectIn,
67 getContext(context));
68 this.metaObject = metaObjectIn;
69 }
70
71
72
73
74 private static final Logger logger = Logger.getLogger(HibernateEntityLogic.class);
75
76
77
78
79
80
81 private static String getContext(String context)
82 {
83 if (context == null)
84 {
85 context = "org.andromda.cartridges.hibernate.metafacades.HibernateEntity";
86 }
87 return context;
88 }
89
90 private Entity superEntity;
91 private boolean superEntityInitialized = false;
92
93
94
95
96
97 private Entity getSuperEntity()
98 {
99 if (!this.superEntityInitialized)
100 {
101 ((MetafacadeBase)this.superEntity).setMetafacadeContext(this.getMetafacadeContext());
102 this.superEntityInitialized = true;
103 }
104 return this.superEntity;
105 }
106
107
108
109
110
111 @Override
112 public void resetMetafacadeContext(String context)
113 {
114 if (!this.contextRoot)
115 {
116 context = getContext(context);
117 setMetafacadeContext (context);
118 if (this.superEntityInitialized)
119 {
120 ((MetafacadeBase)this.superEntity).resetMetafacadeContext(context);
121 }
122 }
123 }
124
125
126
127
128
129 public boolean isHibernateEntityMetaType()
130 {
131 return true;
132 }
133
134
135
136
137
138
139
140 protected abstract boolean handleIsHibernateInheritanceClass();
141
142 private boolean __hibernateInheritanceClass1a;
143 private boolean __hibernateInheritanceClass1aSet = false;
144
145
146
147
148
149
150 public final boolean isHibernateInheritanceClass()
151 {
152 boolean hibernateInheritanceClass1a = this.__hibernateInheritanceClass1a;
153 if (!this.__hibernateInheritanceClass1aSet)
154 {
155
156 hibernateInheritanceClass1a = handleIsHibernateInheritanceClass();
157
158 this.__hibernateInheritanceClass1a = hibernateInheritanceClass1a;
159 if (isMetafacadePropertyCachingEnabled())
160 {
161 this.__hibernateInheritanceClass1aSet = true;
162 }
163 }
164 return hibernateInheritanceClass1a;
165 }
166
167
168
169
170
171 protected abstract boolean handleIsHibernateInheritanceConcrete();
172
173 private boolean __hibernateInheritanceConcrete2a;
174 private boolean __hibernateInheritanceConcrete2aSet = false;
175
176
177
178
179
180
181 public final boolean isHibernateInheritanceConcrete()
182 {
183 boolean hibernateInheritanceConcrete2a = this.__hibernateInheritanceConcrete2a;
184 if (!this.__hibernateInheritanceConcrete2aSet)
185 {
186
187 hibernateInheritanceConcrete2a = handleIsHibernateInheritanceConcrete();
188
189 this.__hibernateInheritanceConcrete2a = hibernateInheritanceConcrete2a;
190 if (isMetafacadePropertyCachingEnabled())
191 {
192 this.__hibernateInheritanceConcrete2aSet = true;
193 }
194 }
195 return hibernateInheritanceConcrete2a;
196 }
197
198
199
200
201
202 protected abstract boolean handleIsHibernateInheritanceSubclass();
203
204 private boolean __hibernateInheritanceSubclass3a;
205 private boolean __hibernateInheritanceSubclass3aSet = false;
206
207
208
209
210
211
212 public final boolean isHibernateInheritanceSubclass()
213 {
214 boolean hibernateInheritanceSubclass3a = this.__hibernateInheritanceSubclass3a;
215 if (!this.__hibernateInheritanceSubclass3aSet)
216 {
217
218 hibernateInheritanceSubclass3a = handleIsHibernateInheritanceSubclass();
219
220 this.__hibernateInheritanceSubclass3a = hibernateInheritanceSubclass3a;
221 if (isMetafacadePropertyCachingEnabled())
222 {
223 this.__hibernateInheritanceSubclass3aSet = true;
224 }
225 }
226 return hibernateInheritanceSubclass3a;
227 }
228
229
230
231
232
233 protected abstract boolean handleIsHibernateInheritanceInterface();
234
235 private boolean __hibernateInheritanceInterface4a;
236 private boolean __hibernateInheritanceInterface4aSet = false;
237
238
239
240
241
242
243 public final boolean isHibernateInheritanceInterface()
244 {
245 boolean hibernateInheritanceInterface4a = this.__hibernateInheritanceInterface4a;
246 if (!this.__hibernateInheritanceInterface4aSet)
247 {
248
249 hibernateInheritanceInterface4a = handleIsHibernateInheritanceInterface();
250
251 this.__hibernateInheritanceInterface4a = hibernateInheritanceInterface4a;
252 if (isMetafacadePropertyCachingEnabled())
253 {
254 this.__hibernateInheritanceInterface4aSet = true;
255 }
256 }
257 return hibernateInheritanceInterface4a;
258 }
259
260
261
262
263
264 protected abstract String handleGetHibernateInheritanceStrategy();
265
266 private String __hibernateInheritanceStrategy5a;
267 private boolean __hibernateInheritanceStrategy5aSet = false;
268
269
270
271
272
273 public final String getHibernateInheritanceStrategy()
274 {
275 String hibernateInheritanceStrategy5a = this.__hibernateInheritanceStrategy5a;
276 if (!this.__hibernateInheritanceStrategy5aSet)
277 {
278
279 hibernateInheritanceStrategy5a = handleGetHibernateInheritanceStrategy();
280
281 this.__hibernateInheritanceStrategy5a = hibernateInheritanceStrategy5a;
282 if (isMetafacadePropertyCachingEnabled())
283 {
284 this.__hibernateInheritanceStrategy5aSet = true;
285 }
286 }
287 return hibernateInheritanceStrategy5a;
288 }
289
290
291
292
293
294 protected abstract String handleGetHibernateCacheType();
295
296 private String __hibernateCacheType6a;
297 private boolean __hibernateCacheType6aSet = false;
298
299
300
301
302
303 public final String getHibernateCacheType()
304 {
305 String hibernateCacheType6a = this.__hibernateCacheType6a;
306 if (!this.__hibernateCacheType6aSet)
307 {
308
309 hibernateCacheType6a = handleGetHibernateCacheType();
310
311 this.__hibernateCacheType6a = hibernateCacheType6a;
312 if (isMetafacadePropertyCachingEnabled())
313 {
314 this.__hibernateCacheType6aSet = true;
315 }
316 }
317 return hibernateCacheType6a;
318 }
319
320
321
322
323
324 protected abstract String handleGetFullyQualifiedEntityName();
325
326 private String __fullyQualifiedEntityName7a;
327 private boolean __fullyQualifiedEntityName7aSet = false;
328
329
330
331
332
333
334 public final String getFullyQualifiedEntityName()
335 {
336 String fullyQualifiedEntityName7a = this.__fullyQualifiedEntityName7a;
337 if (!this.__fullyQualifiedEntityName7aSet)
338 {
339
340 fullyQualifiedEntityName7a = handleGetFullyQualifiedEntityName();
341
342 this.__fullyQualifiedEntityName7a = fullyQualifiedEntityName7a;
343 if (isMetafacadePropertyCachingEnabled())
344 {
345 this.__fullyQualifiedEntityName7aSet = true;
346 }
347 }
348 return fullyQualifiedEntityName7a;
349 }
350
351
352
353
354
355 protected abstract String handleGetFullyQualifiedEntityImplementationName();
356
357 private String __fullyQualifiedEntityImplementationName8a;
358 private boolean __fullyQualifiedEntityImplementationName8aSet = false;
359
360
361
362
363
364
365 public final String getFullyQualifiedEntityImplementationName()
366 {
367 String fullyQualifiedEntityImplementationName8a = this.__fullyQualifiedEntityImplementationName8a;
368 if (!this.__fullyQualifiedEntityImplementationName8aSet)
369 {
370
371 fullyQualifiedEntityImplementationName8a = handleGetFullyQualifiedEntityImplementationName();
372
373 this.__fullyQualifiedEntityImplementationName8a = fullyQualifiedEntityImplementationName8a;
374 if (isMetafacadePropertyCachingEnabled())
375 {
376 this.__fullyQualifiedEntityImplementationName8aSet = true;
377 }
378 }
379 return fullyQualifiedEntityImplementationName8a;
380 }
381
382
383
384
385
386 protected abstract String handleGetHibernateDefaultCascade();
387
388 private String __hibernateDefaultCascade9a;
389 private boolean __hibernateDefaultCascade9aSet = false;
390
391
392
393
394
395
396 public final String getHibernateDefaultCascade()
397 {
398 String hibernateDefaultCascade9a = this.__hibernateDefaultCascade9a;
399 if (!this.__hibernateDefaultCascade9aSet)
400 {
401
402 hibernateDefaultCascade9a = handleGetHibernateDefaultCascade();
403
404 this.__hibernateDefaultCascade9a = hibernateDefaultCascade9a;
405 if (isMetafacadePropertyCachingEnabled())
406 {
407 this.__hibernateDefaultCascade9aSet = true;
408 }
409 }
410 return hibernateDefaultCascade9a;
411 }
412
413
414
415
416
417 protected abstract String handleGetHibernateGeneratorClass();
418
419 private String __hibernateGeneratorClass10a;
420 private boolean __hibernateGeneratorClass10aSet = false;
421
422
423
424
425
426
427 public final String getHibernateGeneratorClass()
428 {
429 String hibernateGeneratorClass10a = this.__hibernateGeneratorClass10a;
430 if (!this.__hibernateGeneratorClass10aSet)
431 {
432
433 hibernateGeneratorClass10a = handleGetHibernateGeneratorClass();
434
435 this.__hibernateGeneratorClass10a = hibernateGeneratorClass10a;
436 if (isMetafacadePropertyCachingEnabled())
437 {
438 this.__hibernateGeneratorClass10aSet = true;
439 }
440 }
441 return hibernateGeneratorClass10a;
442 }
443
444
445
446
447
448 protected abstract boolean handleIsForeignHibernateGeneratorClass();
449
450 private boolean __foreignHibernateGeneratorClass11a;
451 private boolean __foreignHibernateGeneratorClass11aSet = false;
452
453
454
455
456
457 public final boolean isForeignHibernateGeneratorClass()
458 {
459 boolean foreignHibernateGeneratorClass11a = this.__foreignHibernateGeneratorClass11a;
460 if (!this.__foreignHibernateGeneratorClass11aSet)
461 {
462
463 foreignHibernateGeneratorClass11a = handleIsForeignHibernateGeneratorClass();
464
465 this.__foreignHibernateGeneratorClass11a = foreignHibernateGeneratorClass11a;
466 if (isMetafacadePropertyCachingEnabled())
467 {
468 this.__foreignHibernateGeneratorClass11aSet = true;
469 }
470 }
471 return foreignHibernateGeneratorClass11a;
472 }
473
474
475
476
477
478 protected abstract String handleGetHibernateDiscriminatorColumn();
479
480 private String __hibernateDiscriminatorColumn12a;
481 private boolean __hibernateDiscriminatorColumn12aSet = false;
482
483
484
485
486
487 public final String getHibernateDiscriminatorColumn()
488 {
489 String hibernateDiscriminatorColumn12a = this.__hibernateDiscriminatorColumn12a;
490 if (!this.__hibernateDiscriminatorColumn12aSet)
491 {
492
493 hibernateDiscriminatorColumn12a = handleGetHibernateDiscriminatorColumn();
494
495 this.__hibernateDiscriminatorColumn12a = hibernateDiscriminatorColumn12a;
496 if (isMetafacadePropertyCachingEnabled())
497 {
498 this.__hibernateDiscriminatorColumn12aSet = true;
499 }
500 }
501 return hibernateDiscriminatorColumn12a;
502 }
503
504
505
506
507
508 protected abstract String handleGetHibernateDiscriminatorType();
509
510 private String __hibernateDiscriminatorType13a;
511 private boolean __hibernateDiscriminatorType13aSet = false;
512
513
514
515
516
517 public final String getHibernateDiscriminatorType()
518 {
519 String hibernateDiscriminatorType13a = this.__hibernateDiscriminatorType13a;
520 if (!this.__hibernateDiscriminatorType13aSet)
521 {
522
523 hibernateDiscriminatorType13a = handleGetHibernateDiscriminatorType();
524
525 this.__hibernateDiscriminatorType13a = hibernateDiscriminatorType13a;
526 if (isMetafacadePropertyCachingEnabled())
527 {
528 this.__hibernateDiscriminatorType13aSet = true;
529 }
530 }
531 return hibernateDiscriminatorType13a;
532 }
533
534
535
536
537
538 protected abstract int handleGetHibernateDiscriminatorLength();
539
540 private int __hibernateDiscriminatorLength14a;
541 private boolean __hibernateDiscriminatorLength14aSet = false;
542
543
544
545
546
547 public final int getHibernateDiscriminatorLength()
548 {
549 int hibernateDiscriminatorLength14a = this.__hibernateDiscriminatorLength14a;
550 if (!this.__hibernateDiscriminatorLength14aSet)
551 {
552
553 hibernateDiscriminatorLength14a = handleGetHibernateDiscriminatorLength();
554
555 this.__hibernateDiscriminatorLength14a = hibernateDiscriminatorLength14a;
556 if (isMetafacadePropertyCachingEnabled())
557 {
558 this.__hibernateDiscriminatorLength14aSet = true;
559 }
560 }
561 return hibernateDiscriminatorLength14a;
562 }
563
564
565
566
567
568 protected abstract String handleGetEntityName();
569
570 private String __entityName15a;
571 private boolean __entityName15aSet = false;
572
573
574
575
576
577 public final String getEntityName()
578 {
579 String entityName15a = this.__entityName15a;
580 if (!this.__entityName15aSet)
581 {
582
583 entityName15a = handleGetEntityName();
584
585 this.__entityName15a = entityName15a;
586 if (isMetafacadePropertyCachingEnabled())
587 {
588 this.__entityName15aSet = true;
589 }
590 }
591 return entityName15a;
592 }
593
594
595
596
597
598 protected abstract String handleGetEntityImplementationName();
599
600 private String __entityImplementationName16a;
601 private boolean __entityImplementationName16aSet = false;
602
603
604
605
606
607 public final String getEntityImplementationName()
608 {
609 String entityImplementationName16a = this.__entityImplementationName16a;
610 if (!this.__entityImplementationName16aSet)
611 {
612
613 entityImplementationName16a = handleGetEntityImplementationName();
614
615 this.__entityImplementationName16a = entityImplementationName16a;
616 if (isMetafacadePropertyCachingEnabled())
617 {
618 this.__entityImplementationName16aSet = true;
619 }
620 }
621 return entityImplementationName16a;
622 }
623
624
625
626
627
628 protected abstract boolean handleIsBusinessOperationsPresent();
629
630 private boolean __businessOperationsPresent17a;
631 private boolean __businessOperationsPresent17aSet = false;
632
633
634
635
636
637 public final boolean isBusinessOperationsPresent()
638 {
639 boolean businessOperationsPresent17a = this.__businessOperationsPresent17a;
640 if (!this.__businessOperationsPresent17aSet)
641 {
642
643 businessOperationsPresent17a = handleIsBusinessOperationsPresent();
644
645 this.__businessOperationsPresent17a = businessOperationsPresent17a;
646 if (isMetafacadePropertyCachingEnabled())
647 {
648 this.__businessOperationsPresent17aSet = true;
649 }
650 }
651 return businessOperationsPresent17a;
652 }
653
654
655
656
657
658 protected abstract boolean handleIsHibernateProxy();
659
660 private boolean __hibernateProxy18a;
661 private boolean __hibernateProxy18aSet = false;
662
663
664
665
666
667
668 public final boolean isHibernateProxy()
669 {
670 boolean hibernateProxy18a = this.__hibernateProxy18a;
671 if (!this.__hibernateProxy18aSet)
672 {
673
674 hibernateProxy18a = handleIsHibernateProxy();
675
676 this.__hibernateProxy18a = hibernateProxy18a;
677 if (isMetafacadePropertyCachingEnabled())
678 {
679 this.__hibernateProxy18aSet = true;
680 }
681 }
682 return hibernateProxy18a;
683 }
684
685
686
687
688
689 protected abstract int handleGetEhCacheMaxElementsInMemory();
690
691 private int __ehCacheMaxElementsInMemory19a;
692 private boolean __ehCacheMaxElementsInMemory19aSet = false;
693
694
695
696
697
698 public final int getEhCacheMaxElementsInMemory()
699 {
700 int ehCacheMaxElementsInMemory19a = this.__ehCacheMaxElementsInMemory19a;
701 if (!this.__ehCacheMaxElementsInMemory19aSet)
702 {
703
704 ehCacheMaxElementsInMemory19a = handleGetEhCacheMaxElementsInMemory();
705
706 this.__ehCacheMaxElementsInMemory19a = ehCacheMaxElementsInMemory19a;
707 if (isMetafacadePropertyCachingEnabled())
708 {
709 this.__ehCacheMaxElementsInMemory19aSet = true;
710 }
711 }
712 return ehCacheMaxElementsInMemory19a;
713 }
714
715
716
717
718
719 protected abstract boolean handleIsEhCacheEternal();
720
721 private boolean __ehCacheEternal20a;
722 private boolean __ehCacheEternal20aSet = false;
723
724
725
726
727
728 public final boolean isEhCacheEternal()
729 {
730 boolean ehCacheEternal20a = this.__ehCacheEternal20a;
731 if (!this.__ehCacheEternal20aSet)
732 {
733
734 ehCacheEternal20a = handleIsEhCacheEternal();
735
736 this.__ehCacheEternal20a = ehCacheEternal20a;
737 if (isMetafacadePropertyCachingEnabled())
738 {
739 this.__ehCacheEternal20aSet = true;
740 }
741 }
742 return ehCacheEternal20a;
743 }
744
745
746
747
748
749 protected abstract int handleGetEhCacheTimeToIdleSeconds();
750
751 private int __ehCacheTimeToIdleSeconds21a;
752 private boolean __ehCacheTimeToIdleSeconds21aSet = false;
753
754
755
756
757
758 public final int getEhCacheTimeToIdleSeconds()
759 {
760 int ehCacheTimeToIdleSeconds21a = this.__ehCacheTimeToIdleSeconds21a;
761 if (!this.__ehCacheTimeToIdleSeconds21aSet)
762 {
763
764 ehCacheTimeToIdleSeconds21a = handleGetEhCacheTimeToIdleSeconds();
765
766 this.__ehCacheTimeToIdleSeconds21a = ehCacheTimeToIdleSeconds21a;
767 if (isMetafacadePropertyCachingEnabled())
768 {
769 this.__ehCacheTimeToIdleSeconds21aSet = true;
770 }
771 }
772 return ehCacheTimeToIdleSeconds21a;
773 }
774
775
776
777
778
779 protected abstract int handleGetEhCacheTimeToLiveSeconds();
780
781 private int __ehCacheTimeToLiveSeconds22a;
782 private boolean __ehCacheTimeToLiveSeconds22aSet = false;
783
784
785
786
787
788 public final int getEhCacheTimeToLiveSeconds()
789 {
790 int ehCacheTimeToLiveSeconds22a = this.__ehCacheTimeToLiveSeconds22a;
791 if (!this.__ehCacheTimeToLiveSeconds22aSet)
792 {
793
794 ehCacheTimeToLiveSeconds22a = handleGetEhCacheTimeToLiveSeconds();
795
796 this.__ehCacheTimeToLiveSeconds22a = ehCacheTimeToLiveSeconds22a;
797 if (isMetafacadePropertyCachingEnabled())
798 {
799 this.__ehCacheTimeToLiveSeconds22aSet = true;
800 }
801 }
802 return ehCacheTimeToLiveSeconds22a;
803 }
804
805
806
807
808
809 protected abstract boolean handleIsEhCacheOverflowToDisk();
810
811 private boolean __ehCacheOverflowToDisk23a;
812 private boolean __ehCacheOverflowToDisk23aSet = false;
813
814
815
816
817
818 public final boolean isEhCacheOverflowToDisk()
819 {
820 boolean ehCacheOverflowToDisk23a = this.__ehCacheOverflowToDisk23a;
821 if (!this.__ehCacheOverflowToDisk23aSet)
822 {
823
824 ehCacheOverflowToDisk23a = handleIsEhCacheOverflowToDisk();
825
826 this.__ehCacheOverflowToDisk23a = ehCacheOverflowToDisk23a;
827 if (isMetafacadePropertyCachingEnabled())
828 {
829 this.__ehCacheOverflowToDisk23aSet = true;
830 }
831 }
832 return ehCacheOverflowToDisk23a;
833 }
834
835
836
837
838
839 protected abstract boolean handleIsSequenceHibernateGeneratorClass();
840
841 private boolean __sequenceHibernateGeneratorClass24a;
842 private boolean __sequenceHibernateGeneratorClass24aSet = false;
843
844
845
846
847
848 public final boolean isSequenceHibernateGeneratorClass()
849 {
850 boolean sequenceHibernateGeneratorClass24a = this.__sequenceHibernateGeneratorClass24a;
851 if (!this.__sequenceHibernateGeneratorClass24aSet)
852 {
853
854 sequenceHibernateGeneratorClass24a = handleIsSequenceHibernateGeneratorClass();
855
856 this.__sequenceHibernateGeneratorClass24a = sequenceHibernateGeneratorClass24a;
857 if (isMetafacadePropertyCachingEnabled())
858 {
859 this.__sequenceHibernateGeneratorClass24aSet = true;
860 }
861 }
862 return sequenceHibernateGeneratorClass24a;
863 }
864
865
866
867
868
869 protected abstract boolean handleIsTableRequired();
870
871 private boolean __tableRequired25a;
872 private boolean __tableRequired25aSet = false;
873
874
875
876
877
878
879 public final boolean isTableRequired()
880 {
881 boolean tableRequired25a = this.__tableRequired25a;
882 if (!this.__tableRequired25aSet)
883 {
884
885 tableRequired25a = handleIsTableRequired();
886
887 this.__tableRequired25a = tableRequired25a;
888 if (isMetafacadePropertyCachingEnabled())
889 {
890 this.__tableRequired25aSet = true;
891 }
892 }
893 return tableRequired25a;
894 }
895
896
897
898
899
900 protected abstract String handleGetMappingClassName();
901
902 private String __mappingClassName26a;
903 private boolean __mappingClassName26aSet = false;
904
905
906
907
908
909
910 public final String getMappingClassName()
911 {
912 String mappingClassName26a = this.__mappingClassName26a;
913 if (!this.__mappingClassName26aSet)
914 {
915
916 mappingClassName26a = handleGetMappingClassName();
917
918 this.__mappingClassName26a = mappingClassName26a;
919 if (isMetafacadePropertyCachingEnabled())
920 {
921 this.__mappingClassName26aSet = true;
922 }
923 }
924 return mappingClassName26a;
925 }
926
927
928
929
930
931 protected abstract String handleGetSubclassKeyColumn();
932
933 private String __subclassKeyColumn27a;
934 private boolean __subclassKeyColumn27aSet = false;
935
936
937
938
939
940
941 public final String getSubclassKeyColumn()
942 {
943 String subclassKeyColumn27a = this.__subclassKeyColumn27a;
944 if (!this.__subclassKeyColumn27aSet)
945 {
946
947 subclassKeyColumn27a = handleGetSubclassKeyColumn();
948
949 this.__subclassKeyColumn27a = subclassKeyColumn27a;
950 if (isMetafacadePropertyCachingEnabled())
951 {
952 this.__subclassKeyColumn27aSet = true;
953 }
954 }
955 return subclassKeyColumn27a;
956 }
957
958
959
960
961
962 protected abstract boolean handleIsRequiresMapping();
963
964 private boolean __requiresMapping28a;
965 private boolean __requiresMapping28aSet = false;
966
967
968
969
970
971 public final boolean isRequiresMapping()
972 {
973 boolean requiresMapping28a = this.__requiresMapping28a;
974 if (!this.__requiresMapping28aSet)
975 {
976
977 requiresMapping28a = handleIsRequiresMapping();
978
979 this.__requiresMapping28a = requiresMapping28a;
980 if (isMetafacadePropertyCachingEnabled())
981 {
982 this.__requiresMapping28aSet = true;
983 }
984 }
985 return requiresMapping28a;
986 }
987
988
989
990
991
992 protected abstract boolean handleIsRequiresSpecializationMapping();
993
994 private boolean __requiresSpecializationMapping29a;
995 private boolean __requiresSpecializationMapping29aSet = false;
996
997
998
999
1000
1001
1002 public final boolean isRequiresSpecializationMapping()
1003 {
1004 boolean requiresSpecializationMapping29a = this.__requiresSpecializationMapping29a;
1005 if (!this.__requiresSpecializationMapping29aSet)
1006 {
1007
1008 requiresSpecializationMapping29a = handleIsRequiresSpecializationMapping();
1009
1010 this.__requiresSpecializationMapping29a = requiresSpecializationMapping29a;
1011 if (isMetafacadePropertyCachingEnabled())
1012 {
1013 this.__requiresSpecializationMapping29aSet = true;
1014 }
1015 }
1016 return requiresSpecializationMapping29a;
1017 }
1018
1019
1020
1021
1022
1023 protected abstract boolean handleIsDynamicInsert();
1024
1025 private boolean __dynamicInsert30a;
1026 private boolean __dynamicInsert30aSet = false;
1027
1028
1029
1030
1031
1032 public final boolean isDynamicInsert()
1033 {
1034 boolean dynamicInsert30a = this.__dynamicInsert30a;
1035 if (!this.__dynamicInsert30aSet)
1036 {
1037
1038 dynamicInsert30a = handleIsDynamicInsert();
1039
1040 this.__dynamicInsert30a = dynamicInsert30a;
1041 if (isMetafacadePropertyCachingEnabled())
1042 {
1043 this.__dynamicInsert30aSet = true;
1044 }
1045 }
1046 return dynamicInsert30a;
1047 }
1048
1049
1050
1051
1052
1053 protected abstract boolean handleIsDynamicUpdate();
1054
1055 private boolean __dynamicUpdate31a;
1056 private boolean __dynamicUpdate31aSet = false;
1057
1058
1059
1060
1061
1062 public final boolean isDynamicUpdate()
1063 {
1064 boolean dynamicUpdate31a = this.__dynamicUpdate31a;
1065 if (!this.__dynamicUpdate31aSet)
1066 {
1067
1068 dynamicUpdate31a = handleIsDynamicUpdate();
1069
1070 this.__dynamicUpdate31a = dynamicUpdate31a;
1071 if (isMetafacadePropertyCachingEnabled())
1072 {
1073 this.__dynamicUpdate31aSet = true;
1074 }
1075 }
1076 return dynamicUpdate31a;
1077 }
1078
1079
1080
1081
1082
1083 protected abstract boolean handleIsMappingRequiresSuperProperties();
1084
1085 private boolean __mappingRequiresSuperProperties32a;
1086 private boolean __mappingRequiresSuperProperties32aSet = false;
1087
1088
1089
1090
1091
1092
1093
1094 public final boolean isMappingRequiresSuperProperties()
1095 {
1096 boolean mappingRequiresSuperProperties32a = this.__mappingRequiresSuperProperties32a;
1097 if (!this.__mappingRequiresSuperProperties32aSet)
1098 {
1099
1100 mappingRequiresSuperProperties32a = handleIsMappingRequiresSuperProperties();
1101
1102 this.__mappingRequiresSuperProperties32a = mappingRequiresSuperProperties32a;
1103 if (isMetafacadePropertyCachingEnabled())
1104 {
1105 this.__mappingRequiresSuperProperties32aSet = true;
1106 }
1107 }
1108 return mappingRequiresSuperProperties32a;
1109 }
1110
1111
1112
1113
1114
1115 protected abstract String handleGetHibernateVersionProperty();
1116
1117 private String __hibernateVersionProperty33a;
1118 private boolean __hibernateVersionProperty33aSet = false;
1119
1120
1121
1122
1123
1124 public final String getHibernateVersionProperty()
1125 {
1126 String hibernateVersionProperty33a = this.__hibernateVersionProperty33a;
1127 if (!this.__hibernateVersionProperty33aSet)
1128 {
1129
1130 hibernateVersionProperty33a = handleGetHibernateVersionProperty();
1131
1132 this.__hibernateVersionProperty33a = hibernateVersionProperty33a;
1133 if (isMetafacadePropertyCachingEnabled())
1134 {
1135 this.__hibernateVersionProperty33aSet = true;
1136 }
1137 }
1138 return hibernateVersionProperty33a;
1139 }
1140
1141
1142
1143
1144
1145 protected abstract boolean handleIsHibernateInheritanceUnionSubClass();
1146
1147 private boolean __hibernateInheritanceUnionSubClass34a;
1148 private boolean __hibernateInheritanceUnionSubClass34aSet = false;
1149
1150
1151
1152
1153
1154
1155 public final boolean isHibernateInheritanceUnionSubClass()
1156 {
1157 boolean hibernateInheritanceUnionSubClass34a = this.__hibernateInheritanceUnionSubClass34a;
1158 if (!this.__hibernateInheritanceUnionSubClass34aSet)
1159 {
1160
1161 hibernateInheritanceUnionSubClass34a = handleIsHibernateInheritanceUnionSubClass();
1162
1163 this.__hibernateInheritanceUnionSubClass34a = hibernateInheritanceUnionSubClass34a;
1164 if (isMetafacadePropertyCachingEnabled())
1165 {
1166 this.__hibernateInheritanceUnionSubClass34aSet = true;
1167 }
1168 }
1169 return hibernateInheritanceUnionSubClass34a;
1170 }
1171
1172
1173
1174
1175
1176 protected abstract boolean handleIsLazy();
1177
1178 private boolean __lazy35a;
1179 private boolean __lazy35aSet = false;
1180
1181
1182
1183
1184
1185 public final boolean isLazy()
1186 {
1187 boolean lazy35a = this.__lazy35a;
1188 if (!this.__lazy35aSet)
1189 {
1190
1191 lazy35a = handleIsLazy();
1192
1193 this.__lazy35a = lazy35a;
1194 if (isMetafacadePropertyCachingEnabled())
1195 {
1196 this.__lazy35aSet = true;
1197 }
1198 }
1199 return lazy35a;
1200 }
1201
1202
1203
1204
1205
1206 protected abstract String handleGetXmlTagName();
1207
1208 private String __xmlTagName36a;
1209 private boolean __xmlTagName36aSet = false;
1210
1211
1212
1213
1214
1215
1216 public final String getXmlTagName()
1217 {
1218 String xmlTagName36a = this.__xmlTagName36a;
1219 if (!this.__xmlTagName36aSet)
1220 {
1221
1222 xmlTagName36a = handleGetXmlTagName();
1223
1224 this.__xmlTagName36a = xmlTagName36a;
1225 if (isMetafacadePropertyCachingEnabled())
1226 {
1227 this.__xmlTagName36aSet = true;
1228 }
1229 }
1230 return xmlTagName36a;
1231 }
1232
1233
1234
1235
1236
1237 protected abstract int handleGetVersion();
1238
1239 private int __version37a;
1240 private boolean __version37aSet = false;
1241
1242
1243
1244
1245
1246
1247 public final int getVersion()
1248 {
1249 int version37a = this.__version37a;
1250 if (!this.__version37aSet)
1251 {
1252
1253 version37a = handleGetVersion();
1254
1255 this.__version37a = version37a;
1256 if (isMetafacadePropertyCachingEnabled())
1257 {
1258 this.__version37aSet = true;
1259 }
1260 }
1261 return version37a;
1262 }
1263
1264
1265
1266
1267
1268 protected abstract boolean handleIsHibernateCacheDistributed();
1269
1270 private boolean __hibernateCacheDistributed38a;
1271 private boolean __hibernateCacheDistributed38aSet = false;
1272
1273
1274
1275
1276
1277 public final boolean isHibernateCacheDistributed()
1278 {
1279 boolean hibernateCacheDistributed38a = this.__hibernateCacheDistributed38a;
1280 if (!this.__hibernateCacheDistributed38aSet)
1281 {
1282
1283 hibernateCacheDistributed38a = handleIsHibernateCacheDistributed();
1284
1285 this.__hibernateCacheDistributed38a = hibernateCacheDistributed38a;
1286 if (isMetafacadePropertyCachingEnabled())
1287 {
1288 this.__hibernateCacheDistributed38aSet = true;
1289 }
1290 }
1291 return hibernateCacheDistributed38a;
1292 }
1293
1294
1295
1296
1297
1298 protected abstract String handleGetHibernateDiscriminatorValue();
1299
1300 private String __hibernateDiscriminatorValue39a;
1301 private boolean __hibernateDiscriminatorValue39aSet = false;
1302
1303
1304
1305
1306
1307 public final String getHibernateDiscriminatorValue()
1308 {
1309 String hibernateDiscriminatorValue39a = this.__hibernateDiscriminatorValue39a;
1310 if (!this.__hibernateDiscriminatorValue39aSet)
1311 {
1312
1313 hibernateDiscriminatorValue39a = handleGetHibernateDiscriminatorValue();
1314
1315 this.__hibernateDiscriminatorValue39a = hibernateDiscriminatorValue39a;
1316 if (isMetafacadePropertyCachingEnabled())
1317 {
1318 this.__hibernateDiscriminatorValue39aSet = true;
1319 }
1320 }
1321 return hibernateDiscriminatorValue39a;
1322 }
1323
1324
1325
1326
1327
1328 protected abstract String handleGetHibernateVersionPropertySqlName();
1329
1330 private String __hibernateVersionPropertySqlName40a;
1331 private boolean __hibernateVersionPropertySqlName40aSet = false;
1332
1333
1334
1335
1336
1337 public final String getHibernateVersionPropertySqlName()
1338 {
1339 String hibernateVersionPropertySqlName40a = this.__hibernateVersionPropertySqlName40a;
1340 if (!this.__hibernateVersionPropertySqlName40aSet)
1341 {
1342
1343 hibernateVersionPropertySqlName40a = handleGetHibernateVersionPropertySqlName();
1344
1345 this.__hibernateVersionPropertySqlName40a = hibernateVersionPropertySqlName40a;
1346 if (isMetafacadePropertyCachingEnabled())
1347 {
1348 this.__hibernateVersionPropertySqlName40aSet = true;
1349 }
1350 }
1351 return hibernateVersionPropertySqlName40a;
1352 }
1353
1354
1355
1356
1357
1358 protected abstract String handleGetSequenceName();
1359
1360 private String __sequenceName41a;
1361 private boolean __sequenceName41aSet = false;
1362
1363
1364
1365
1366
1367 public final String getSequenceName()
1368 {
1369 String sequenceName41a = this.__sequenceName41a;
1370 if (!this.__sequenceName41aSet)
1371 {
1372
1373 sequenceName41a = handleGetSequenceName();
1374
1375 this.__sequenceName41a = sequenceName41a;
1376 if (isMetafacadePropertyCachingEnabled())
1377 {
1378 this.__sequenceName41aSet = true;
1379 }
1380 }
1381 return sequenceName41a;
1382 }
1383
1384
1385
1386
1387
1388
1389
1390
1391 protected abstract Collection handleGetAllBusinessOperations();
1392
1393
1394
1395
1396
1397 public Collection getAllBusinessOperations()
1398 {
1399
1400 Collection returnValue = handleGetAllBusinessOperations();
1401
1402 return returnValue;
1403 }
1404
1405
1406
1407
1408
1409 public boolean isEntityMetaType()
1410 {
1411 return true;
1412 }
1413
1414
1415
1416
1417
1418 public boolean isClassifierFacadeMetaType()
1419 {
1420 return true;
1421 }
1422
1423
1424
1425
1426
1427 public boolean isGeneralizableElementFacadeMetaType()
1428 {
1429 return true;
1430 }
1431
1432
1433
1434
1435
1436 public boolean isModelElementFacadeMetaType()
1437 {
1438 return true;
1439 }
1440
1441
1442
1443
1444
1445
1446 public AttributeFacade findAttribute(String name)
1447 {
1448 return this.getSuperEntity().findAttribute(name);
1449 }
1450
1451
1452
1453
1454
1455 public Collection<ClassifierFacade> getAbstractions()
1456 {
1457 return this.getSuperEntity().getAbstractions();
1458 }
1459
1460
1461
1462
1463
1464
1465 public Collection<ClassifierFacade> getAllAssociatedClasses()
1466 {
1467 return this.getSuperEntity().getAllAssociatedClasses();
1468 }
1469
1470
1471
1472
1473
1474
1475 public Collection<ModelElementFacade> getAllProperties()
1476 {
1477 return this.getSuperEntity().getAllProperties();
1478 }
1479
1480
1481
1482
1483
1484
1485 public Collection<ModelElementFacade> getAllRequiredConstructorParameters()
1486 {
1487 return this.getSuperEntity().getAllRequiredConstructorParameters();
1488 }
1489
1490
1491
1492
1493
1494
1495 public ClassifierFacade getArray()
1496 {
1497 return this.getSuperEntity().getArray();
1498 }
1499
1500
1501
1502
1503
1504 public String getArrayName()
1505 {
1506 return this.getSuperEntity().getArrayName();
1507 }
1508
1509
1510
1511
1512
1513
1514 public Collection<ClassifierFacade> getAssociatedClasses()
1515 {
1516 return this.getSuperEntity().getAssociatedClasses();
1517 }
1518
1519
1520
1521
1522
1523 public List<AssociationEndFacade> getAssociationEnds()
1524 {
1525 return this.getSuperEntity().getAssociationEnds();
1526 }
1527
1528
1529
1530
1531
1532 public List<AttributeFacade> getAttributes()
1533 {
1534 return this.getSuperEntity().getAttributes();
1535 }
1536
1537
1538
1539
1540
1541
1542 public List<AttributeFacade> getAttributes(boolean follow)
1543 {
1544 return this.getSuperEntity().getAttributes(follow);
1545 }
1546
1547
1548
1549
1550
1551 public String getFullyQualifiedArrayName()
1552 {
1553 return this.getSuperEntity().getFullyQualifiedArrayName();
1554 }
1555
1556
1557
1558
1559
1560
1561
1562
1563 public Collection<OperationFacade> getImplementationOperations()
1564 {
1565 return this.getSuperEntity().getImplementationOperations();
1566 }
1567
1568
1569
1570
1571
1572 public String getImplementedInterfaceList()
1573 {
1574 return this.getSuperEntity().getImplementedInterfaceList();
1575 }
1576
1577
1578
1579
1580
1581 public Collection<AttributeFacade> getInstanceAttributes()
1582 {
1583 return this.getSuperEntity().getInstanceAttributes();
1584 }
1585
1586
1587
1588
1589
1590 public List<OperationFacade> getInstanceOperations()
1591 {
1592 return this.getSuperEntity().getInstanceOperations();
1593 }
1594
1595
1596
1597
1598
1599
1600 public Collection<ClassifierFacade> getInterfaceAbstractions()
1601 {
1602 return this.getSuperEntity().getInterfaceAbstractions();
1603 }
1604
1605
1606
1607
1608
1609
1610 public String getJavaNewString()
1611 {
1612 return this.getSuperEntity().getJavaNewString();
1613 }
1614
1615
1616
1617
1618
1619
1620 public String getJavaNullString()
1621 {
1622 return this.getSuperEntity().getJavaNullString();
1623 }
1624
1625
1626
1627
1628
1629 public Collection<AssociationEndFacade> getNavigableConnectingEnds()
1630 {
1631 return this.getSuperEntity().getNavigableConnectingEnds();
1632 }
1633
1634
1635
1636
1637
1638
1639 public List<AssociationEndFacade> getNavigableConnectingEnds(boolean follow)
1640 {
1641 return this.getSuperEntity().getNavigableConnectingEnds(follow);
1642 }
1643
1644
1645
1646
1647
1648
1649
1650 public ClassifierFacade getNonArray()
1651 {
1652 return this.getSuperEntity().getNonArray();
1653 }
1654
1655
1656
1657
1658
1659
1660
1661 public String getOperationCallFromAttributes()
1662 {
1663 return this.getSuperEntity().getOperationCallFromAttributes();
1664 }
1665
1666
1667
1668
1669
1670 public List<OperationFacade> getOperations()
1671 {
1672 return this.getSuperEntity().getOperations();
1673 }
1674
1675
1676
1677
1678
1679
1680 public List<ModelElementFacade> getProperties()
1681 {
1682 return this.getSuperEntity().getProperties();
1683 }
1684
1685
1686
1687
1688
1689
1690
1691 public List getProperties(boolean follow)
1692 {
1693 return this.getSuperEntity().getProperties(follow);
1694 }
1695
1696
1697
1698
1699
1700
1701 public Collection<ModelElementFacade> getRequiredConstructorParameters()
1702 {
1703 return this.getSuperEntity().getRequiredConstructorParameters();
1704 }
1705
1706
1707
1708
1709
1710 public long getSerialVersionUID()
1711 {
1712 return this.getSuperEntity().getSerialVersionUID();
1713 }
1714
1715
1716
1717
1718
1719 public Collection<AttributeFacade> getStaticAttributes()
1720 {
1721 return this.getSuperEntity().getStaticAttributes();
1722 }
1723
1724
1725
1726
1727
1728 public List<OperationFacade> getStaticOperations()
1729 {
1730 return this.getSuperEntity().getStaticOperations();
1731 }
1732
1733
1734
1735
1736
1737
1738 public ClassifierFacade getSuperClass()
1739 {
1740 return this.getSuperEntity().getSuperClass();
1741 }
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751 public String getWrapperName()
1752 {
1753 return this.getSuperEntity().getWrapperName();
1754 }
1755
1756
1757
1758
1759
1760 public boolean isAbstract()
1761 {
1762 return this.getSuperEntity().isAbstract();
1763 }
1764
1765
1766
1767
1768
1769 public boolean isArrayType()
1770 {
1771 return this.getSuperEntity().isArrayType();
1772 }
1773
1774
1775
1776
1777
1778 public boolean isAssociationClass()
1779 {
1780 return this.getSuperEntity().isAssociationClass();
1781 }
1782
1783
1784
1785
1786
1787 public boolean isBlobType()
1788 {
1789 return this.getSuperEntity().isBlobType();
1790 }
1791
1792
1793
1794
1795
1796 public boolean isBooleanType()
1797 {
1798 return this.getSuperEntity().isBooleanType();
1799 }
1800
1801
1802
1803
1804
1805 public boolean isCharacterType()
1806 {
1807 return this.getSuperEntity().isCharacterType();
1808 }
1809
1810
1811
1812
1813
1814 public boolean isClobType()
1815 {
1816 return this.getSuperEntity().isClobType();
1817 }
1818
1819
1820
1821
1822
1823 public boolean isCollectionType()
1824 {
1825 return this.getSuperEntity().isCollectionType();
1826 }
1827
1828
1829
1830
1831
1832
1833
1834 public boolean isDataType()
1835 {
1836 return this.getSuperEntity().isDataType();
1837 }
1838
1839
1840
1841
1842
1843 public boolean isDateType()
1844 {
1845 return this.getSuperEntity().isDateType();
1846 }
1847
1848
1849
1850
1851
1852 public boolean isDoubleType()
1853 {
1854 return this.getSuperEntity().isDoubleType();
1855 }
1856
1857
1858
1859
1860
1861 public boolean isEmbeddedValue()
1862 {
1863 return this.getSuperEntity().isEmbeddedValue();
1864 }
1865
1866
1867
1868
1869
1870 public boolean isEnumeration()
1871 {
1872 return this.getSuperEntity().isEnumeration();
1873 }
1874
1875
1876
1877
1878
1879 public boolean isFileType()
1880 {
1881 return this.getSuperEntity().isFileType();
1882 }
1883
1884
1885
1886
1887
1888 public boolean isFloatType()
1889 {
1890 return this.getSuperEntity().isFloatType();
1891 }
1892
1893
1894
1895
1896
1897 public boolean isIntegerType()
1898 {
1899 return this.getSuperEntity().isIntegerType();
1900 }
1901
1902
1903
1904
1905
1906 public boolean isInterface()
1907 {
1908 return this.getSuperEntity().isInterface();
1909 }
1910
1911
1912
1913
1914
1915 public boolean isLeaf()
1916 {
1917 return this.getSuperEntity().isLeaf();
1918 }
1919
1920
1921
1922
1923
1924 public boolean isListType()
1925 {
1926 return this.getSuperEntity().isListType();
1927 }
1928
1929
1930
1931
1932
1933 public boolean isLongType()
1934 {
1935 return this.getSuperEntity().isLongType();
1936 }
1937
1938
1939
1940
1941
1942 public boolean isMapType()
1943 {
1944 return this.getSuperEntity().isMapType();
1945 }
1946
1947
1948
1949
1950
1951 public boolean isPrimitive()
1952 {
1953 return this.getSuperEntity().isPrimitive();
1954 }
1955
1956
1957
1958
1959
1960 public boolean isSetType()
1961 {
1962 return this.getSuperEntity().isSetType();
1963 }
1964
1965
1966
1967
1968
1969 public boolean isStringType()
1970 {
1971 return this.getSuperEntity().isStringType();
1972 }
1973
1974
1975
1976
1977
1978 public boolean isTimeType()
1979 {
1980 return this.getSuperEntity().isTimeType();
1981 }
1982
1983
1984
1985
1986
1987 public boolean isWrappedPrimitive()
1988 {
1989 return this.getSuperEntity().isWrappedPrimitive();
1990 }
1991
1992
1993
1994
1995
1996 public Collection<DependencyFacade> getAllEntityReferences()
1997 {
1998 return this.getSuperEntity().getAllEntityReferences();
1999 }
2000
2001
2002
2003
2004
2005
2006
2007 public String getAttributeNameList(boolean follow, boolean withIdentifiers)
2008 {
2009 return this.getSuperEntity().getAttributeNameList(follow, withIdentifiers);
2010 }
2011
2012
2013
2014
2015
2016
2017
2018
2019 public String getAttributeNameList(boolean follow, boolean withIdentifiers, boolean withDerived)
2020 {
2021 return this.getSuperEntity().getAttributeNameList(follow, withIdentifiers, withDerived);
2022 }
2023
2024
2025
2026
2027
2028
2029
2030 public String getAttributeTypeList(boolean follow, boolean withIdentifiers)
2031 {
2032 return this.getSuperEntity().getAttributeTypeList(follow, withIdentifiers);
2033 }
2034
2035
2036
2037
2038
2039
2040 public Collection<AttributeFacade> getAttributes(boolean follow, boolean withIdentifiers)
2041 {
2042 return this.getSuperEntity().getAttributes(follow, withIdentifiers);
2043 }
2044
2045
2046
2047
2048
2049
2050
2051 public Collection<AttributeFacade> getAttributes(boolean follow, boolean withIdentifiers, boolean withDerived)
2052 {
2053 return this.getSuperEntity().getAttributes(follow, withIdentifiers, withDerived);
2054 }
2055
2056
2057
2058
2059
2060 public Collection<OperationFacade> getBusinessOperations()
2061 {
2062 return this.getSuperEntity().getBusinessOperations();
2063 }
2064
2065
2066
2067
2068
2069
2070
2071 public Collection<EntityAssociationEnd> getChildEnds()
2072 {
2073 return this.getSuperEntity().getChildEnds();
2074 }
2075
2076
2077
2078
2079
2080 public Collection<AttributeFacade> getEmbeddedValues()
2081 {
2082 return this.getSuperEntity().getEmbeddedValues();
2083 }
2084
2085
2086
2087
2088
2089 public Collection<DependencyFacade> getEntityReferences()
2090 {
2091 return this.getSuperEntity().getEntityReferences();
2092 }
2093
2094
2095
2096
2097
2098
2099 public String getFullyQualifiedIdentifierTypeName()
2100 {
2101 return this.getSuperEntity().getFullyQualifiedIdentifierTypeName();
2102 }
2103
2104
2105
2106
2107
2108 public Collection<AssociationEndFacade> getIdentifierAssociationEnds()
2109 {
2110 return this.getSuperEntity().getIdentifierAssociationEnds();
2111 }
2112
2113
2114
2115
2116
2117 public String getIdentifierGetterName()
2118 {
2119 return this.getSuperEntity().getIdentifierGetterName();
2120 }
2121
2122
2123
2124
2125
2126
2127 public String getIdentifierName()
2128 {
2129 return this.getSuperEntity().getIdentifierName();
2130 }
2131
2132
2133
2134
2135
2136 public String getIdentifierSetterName()
2137 {
2138 return this.getSuperEntity().getIdentifierSetterName();
2139 }
2140
2141
2142
2143
2144
2145
2146 public String getIdentifierTypeName()
2147 {
2148 return this.getSuperEntity().getIdentifierTypeName();
2149 }
2150
2151
2152
2153
2154
2155
2156
2157 public Collection<ModelElementFacade> getIdentifiers()
2158 {
2159 return this.getSuperEntity().getIdentifiers();
2160 }
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170 public Collection<ModelElementFacade> getIdentifiers(boolean follow)
2171 {
2172 return this.getSuperEntity().getIdentifiers(follow);
2173 }
2174
2175
2176
2177
2178
2179 public short getMaxSqlNameLength()
2180 {
2181 return this.getSuperEntity().getMaxSqlNameLength();
2182 }
2183
2184
2185
2186
2187
2188
2189 public String getOperationCallFromAttributes(boolean withIdentifiers)
2190 {
2191 return this.getSuperEntity().getOperationCallFromAttributes(withIdentifiers);
2192 }
2193
2194
2195
2196
2197
2198
2199
2200
2201 public String getOperationCallFromAttributes(boolean withIdentifiers, boolean follow)
2202 {
2203 return this.getSuperEntity().getOperationCallFromAttributes(withIdentifiers, follow);
2204 }
2205
2206
2207
2208
2209
2210
2211
2212 public EntityAssociationEnd getParentEnd()
2213 {
2214 return this.getSuperEntity().getParentEnd();
2215 }
2216
2217
2218
2219
2220
2221
2222
2223
2224 public Collection<ModelElementFacade> getProperties(boolean follow, boolean withIdentifiers)
2225 {
2226 return this.getSuperEntity().getProperties(follow, withIdentifiers);
2227 }
2228
2229
2230
2231
2232
2233 public Collection<EntityQueryOperation> getQueryOperations()
2234 {
2235 return this.getSuperEntity().getQueryOperations();
2236 }
2237
2238
2239
2240
2241
2242
2243
2244
2245 public Collection<OperationFacade> getQueryOperations(boolean follow)
2246 {
2247 return this.getSuperEntity().getQueryOperations(follow);
2248 }
2249
2250
2251
2252
2253
2254
2255
2256 public String getRequiredAttributeNameList(boolean follow, boolean withIdentifiers)
2257 {
2258 return this.getSuperEntity().getRequiredAttributeNameList(follow, withIdentifiers);
2259 }
2260
2261
2262
2263
2264
2265
2266
2267 public String getRequiredAttributeTypeList(boolean follow, boolean withIdentifiers)
2268 {
2269 return this.getSuperEntity().getRequiredAttributeTypeList(follow, withIdentifiers);
2270 }
2271
2272
2273
2274
2275
2276
2277
2278
2279 public Collection<AttributeFacade> getRequiredAttributes(boolean follow, boolean withIdentifiers)
2280 {
2281 return this.getSuperEntity().getRequiredAttributes(follow, withIdentifiers);
2282 }
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293 public Collection<ModelElementFacade> getRequiredProperties(boolean follow, boolean withIdentifiers)
2294 {
2295 return this.getSuperEntity().getRequiredProperties(follow, withIdentifiers);
2296 }
2297
2298
2299
2300
2301
2302 public String getRequiredPropertyNameList(boolean follow, boolean withIdentifiers)
2303 {
2304 return this.getSuperEntity().getRequiredPropertyNameList(follow, withIdentifiers);
2305 }
2306
2307
2308
2309
2310
2311 public String getRequiredPropertyTypeList(boolean follow, boolean withIdentifiers)
2312 {
2313 return this.getSuperEntity().getRequiredPropertyTypeList(follow, withIdentifiers);
2314 }
2315
2316
2317
2318
2319
2320 public String getSchema()
2321 {
2322 return this.getSuperEntity().getSchema();
2323 }
2324
2325
2326
2327
2328
2329 public String getTableName()
2330 {
2331 return this.getSuperEntity().getTableName();
2332 }
2333
2334
2335
2336
2337
2338
2339
2340 public boolean isChild()
2341 {
2342 return this.getSuperEntity().isChild();
2343 }
2344
2345
2346
2347
2348
2349
2350 public boolean isCompositeIdentifier()
2351 {
2352 return this.getSuperEntity().isCompositeIdentifier();
2353 }
2354
2355
2356
2357
2358
2359 public boolean isDynamicIdentifiersPresent()
2360 {
2361 return this.getSuperEntity().isDynamicIdentifiersPresent();
2362 }
2363
2364
2365
2366
2367
2368 public boolean isIdentifiersPresent()
2369 {
2370 return this.getSuperEntity().isIdentifiersPresent();
2371 }
2372
2373
2374
2375
2376
2377 public boolean isUsingAssignedIdentifier()
2378 {
2379 return this.getSuperEntity().isUsingAssignedIdentifier();
2380 }
2381
2382
2383
2384
2385
2386
2387
2388 public boolean isUsingForeignIdentifier()
2389 {
2390 return this.getSuperEntity().isUsingForeignIdentifier();
2391 }
2392
2393
2394
2395
2396
2397
2398 public Object findTaggedValue(String tagName, boolean follow)
2399 {
2400 return this.getSuperEntity().findTaggedValue(tagName, follow);
2401 }
2402
2403
2404
2405
2406
2407 public Collection<GeneralizableElementFacade> getAllGeneralizations()
2408 {
2409 return this.getSuperEntity().getAllGeneralizations();
2410 }
2411
2412
2413
2414
2415
2416 public Collection<GeneralizableElementFacade> getAllSpecializations()
2417 {
2418 return this.getSuperEntity().getAllSpecializations();
2419 }
2420
2421
2422
2423
2424
2425 public GeneralizableElementFacade getGeneralization()
2426 {
2427 return this.getSuperEntity().getGeneralization();
2428 }
2429
2430
2431
2432
2433
2434
2435 public Collection<GeneralizationFacade> getGeneralizationLinks()
2436 {
2437 return this.getSuperEntity().getGeneralizationLinks();
2438 }
2439
2440
2441
2442
2443
2444 public String getGeneralizationList()
2445 {
2446 return this.getSuperEntity().getGeneralizationList();
2447 }
2448
2449
2450
2451
2452
2453
2454 public GeneralizableElementFacade getGeneralizationRoot()
2455 {
2456 return this.getSuperEntity().getGeneralizationRoot();
2457 }
2458
2459
2460
2461
2462
2463 public Collection<GeneralizableElementFacade> getGeneralizations()
2464 {
2465 return this.getSuperEntity().getGeneralizations();
2466 }
2467
2468
2469
2470
2471
2472 public Collection<GeneralizableElementFacade> getSpecializations()
2473 {
2474 return this.getSuperEntity().getSpecializations();
2475 }
2476
2477
2478
2479
2480
2481 public void copyTaggedValues(ModelElementFacade element)
2482 {
2483 this.getSuperEntity().copyTaggedValues(element);
2484 }
2485
2486
2487
2488
2489
2490
2491 public Object findTaggedValue(String tagName)
2492 {
2493 return this.getSuperEntity().findTaggedValue(tagName);
2494 }
2495
2496
2497
2498
2499
2500
2501 public Collection<Object> findTaggedValues(String tagName)
2502 {
2503 return this.getSuperEntity().findTaggedValues(tagName);
2504 }
2505
2506
2507
2508
2509
2510
2511
2512 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
2513 {
2514 return this.getSuperEntity().getBindedFullyQualifiedName(bindedElement);
2515 }
2516
2517
2518
2519
2520
2521 public Collection<ConstraintFacade> getConstraints()
2522 {
2523 return this.getSuperEntity().getConstraints();
2524 }
2525
2526
2527
2528
2529
2530
2531 public Collection<ConstraintFacade> getConstraints(String kind)
2532 {
2533 return this.getSuperEntity().getConstraints(kind);
2534 }
2535
2536
2537
2538
2539
2540
2541
2542 public String getDocumentation(String indent)
2543 {
2544 return this.getSuperEntity().getDocumentation(indent);
2545 }
2546
2547
2548
2549
2550
2551
2552
2553
2554 public String getDocumentation(String indent, int lineLength)
2555 {
2556 return this.getSuperEntity().getDocumentation(indent, lineLength);
2557 }
2558
2559
2560
2561
2562
2563
2564
2565 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
2566 {
2567 return this.getSuperEntity().getDocumentation(indent, lineLength, htmlStyle);
2568 }
2569
2570
2571
2572
2573
2574 public String getFullyQualifiedName()
2575 {
2576 return this.getSuperEntity().getFullyQualifiedName();
2577 }
2578
2579
2580
2581
2582
2583
2584
2585
2586 public String getFullyQualifiedName(boolean modelName)
2587 {
2588 return this.getSuperEntity().getFullyQualifiedName(modelName);
2589 }
2590
2591
2592
2593
2594
2595
2596 public String getFullyQualifiedNamePath()
2597 {
2598 return this.getSuperEntity().getFullyQualifiedNamePath();
2599 }
2600
2601
2602
2603
2604
2605 public String getId()
2606 {
2607 return this.getSuperEntity().getId();
2608 }
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618 public Collection<String> getKeywords()
2619 {
2620 return this.getSuperEntity().getKeywords();
2621 }
2622
2623
2624
2625
2626
2627 public String getLabel()
2628 {
2629 return this.getSuperEntity().getLabel();
2630 }
2631
2632
2633
2634
2635
2636 public TypeMappings getLanguageMappings()
2637 {
2638 return this.getSuperEntity().getLanguageMappings();
2639 }
2640
2641
2642
2643
2644
2645
2646 public ModelFacade getModel()
2647 {
2648 return this.getSuperEntity().getModel();
2649 }
2650
2651
2652
2653
2654
2655 public String getName()
2656 {
2657 return this.getSuperEntity().getName();
2658 }
2659
2660
2661
2662
2663
2664 public ModelElementFacade getPackage()
2665 {
2666 return this.getSuperEntity().getPackage();
2667 }
2668
2669
2670
2671
2672
2673 public String getPackageName()
2674 {
2675 return this.getSuperEntity().getPackageName();
2676 }
2677
2678
2679
2680
2681
2682
2683 public String getPackageName(boolean modelName)
2684 {
2685 return this.getSuperEntity().getPackageName(modelName);
2686 }
2687
2688
2689
2690
2691
2692 public String getPackagePath()
2693 {
2694 return this.getSuperEntity().getPackagePath();
2695 }
2696
2697
2698
2699
2700
2701
2702
2703
2704 public String getQualifiedName()
2705 {
2706 return this.getSuperEntity().getQualifiedName();
2707 }
2708
2709
2710
2711
2712
2713 public PackageFacade getRootPackage()
2714 {
2715 return this.getSuperEntity().getRootPackage();
2716 }
2717
2718
2719
2720
2721
2722 public Collection<DependencyFacade> getSourceDependencies()
2723 {
2724 return this.getSuperEntity().getSourceDependencies();
2725 }
2726
2727
2728
2729
2730
2731
2732 public StateMachineFacade getStateMachineContext()
2733 {
2734 return this.getSuperEntity().getStateMachineContext();
2735 }
2736
2737
2738
2739
2740
2741 public Collection<String> getStereotypeNames()
2742 {
2743 return this.getSuperEntity().getStereotypeNames();
2744 }
2745
2746
2747
2748
2749
2750 public Collection<StereotypeFacade> getStereotypes()
2751 {
2752 return this.getSuperEntity().getStereotypes();
2753 }
2754
2755
2756
2757
2758
2759 public Collection<TaggedValueFacade> getTaggedValues()
2760 {
2761 return this.getSuperEntity().getTaggedValues();
2762 }
2763
2764
2765
2766
2767
2768 public Collection<DependencyFacade> getTargetDependencies()
2769 {
2770 return this.getSuperEntity().getTargetDependencies();
2771 }
2772
2773
2774
2775
2776
2777 public Object getTemplateParameter(String parameterName)
2778 {
2779 return this.getSuperEntity().getTemplateParameter(parameterName);
2780 }
2781
2782
2783
2784
2785
2786 public Collection<TemplateParameterFacade> getTemplateParameters()
2787 {
2788 return this.getSuperEntity().getTemplateParameters();
2789 }
2790
2791
2792
2793
2794
2795
2796 public String getVisibility()
2797 {
2798 return this.getSuperEntity().getVisibility();
2799 }
2800
2801
2802
2803
2804
2805
2806 public boolean hasExactStereotype(String stereotypeName)
2807 {
2808 return this.getSuperEntity().hasExactStereotype(stereotypeName);
2809 }
2810
2811
2812
2813
2814
2815
2816 public boolean hasKeyword(String keywordName)
2817 {
2818 return this.getSuperEntity().hasKeyword(keywordName);
2819 }
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833 public boolean hasStereotype(String stereotypeName)
2834 {
2835 return this.getSuperEntity().hasStereotype(stereotypeName);
2836 }
2837
2838
2839
2840
2841
2842
2843 public boolean isBindingDependenciesPresent()
2844 {
2845 return this.getSuperEntity().isBindingDependenciesPresent();
2846 }
2847
2848
2849
2850
2851
2852 public boolean isConstraintsPresent()
2853 {
2854 return this.getSuperEntity().isConstraintsPresent();
2855 }
2856
2857
2858
2859
2860
2861 public boolean isDocumentationPresent()
2862 {
2863 return this.getSuperEntity().isDocumentationPresent();
2864 }
2865
2866
2867
2868
2869
2870 public boolean isReservedWord()
2871 {
2872 return this.getSuperEntity().isReservedWord();
2873 }
2874
2875
2876
2877
2878
2879
2880 public boolean isTemplateParametersPresent()
2881 {
2882 return this.getSuperEntity().isTemplateParametersPresent();
2883 }
2884
2885
2886
2887
2888
2889
2890
2891 public boolean isValidIdentifierName()
2892 {
2893 return this.getSuperEntity().isValidIdentifierName();
2894 }
2895
2896
2897
2898
2899
2900
2901
2902 public String translateConstraint(String name, String translation)
2903 {
2904 return this.getSuperEntity().translateConstraint(name, translation);
2905 }
2906
2907
2908
2909
2910
2911 public String[] translateConstraints(String translation)
2912 {
2913 return this.getSuperEntity().translateConstraints(translation);
2914 }
2915
2916
2917
2918
2919
2920 public String[] translateConstraints(String kind, String translation)
2921 {
2922 return this.getSuperEntity().translateConstraints(kind, translation);
2923 }
2924
2925
2926
2927
2928 @Override
2929 public void initialize()
2930 {
2931 this.getSuperEntity().initialize();
2932 }
2933
2934
2935
2936
2937
2938 @Override
2939 public Object getValidationOwner()
2940 {
2941 Object owner = this.getSuperEntity().getValidationOwner();
2942 return owner;
2943 }
2944
2945
2946
2947
2948
2949 @Override
2950 public String getValidationName()
2951 {
2952 String name = this.getSuperEntity().getValidationName();
2953 return name;
2954 }
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980 @Override
2981 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
2982 {
2983 this.getSuperEntity().validateInvariants(validationMessages);
2984 try
2985 {
2986 final Object contextElement = this.THIS();
2987 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"hibernateInheritanceClass"))).booleanValue()?OCLCollections.forAll(OCLIntrospector.invoke(contextElement,"specializations"),new Predicate(){public boolean evaluate(Object object){return Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(object,"hibernateInheritanceClass"))).booleanValue();}}):true));
2988 if (!constraintValid)
2989 {
2990 validationMessages.add(
2991 new ModelValidationMessage(
2992 (MetafacadeBase)contextElement ,
2993 "org::andromda::cartridges::hibernate::metafacades::HibernateEntity::class inheritance strategy can not be mixed",
2994 "If your Hibernate inheritance strategy is defined as 'class' on the root entity. All sub classes must have an inheritance strategy of 'class' as well (the class inheritance strategy can not be mixed with any other types of strategies)."));
2995 }
2996 }
2997 catch (Throwable th)
2998 {
2999 Throwable cause = th.getCause();
3000 int depth = 0;
3001 while (cause != null && depth < 7)
3002 {
3003 th = cause;
3004 depth++;
3005 }
3006 logger.error("Error validating constraint 'org::andromda::cartridges::hibernate::metafacades::HibernateEntity::class inheritance strategy can not be mixed' ON "
3007 + this.THIS().toString() + ": " + th.getMessage(), th);
3008 }
3009 try
3010 {
3011 final Object contextElement = this.THIS();
3012 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"hibernateInheritanceSubclass"))).booleanValue()?OCLCollections.forAll(OCLIntrospector.invoke(contextElement,"specializations"),new Predicate(){public boolean evaluate(Object object){return Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(object,"hibernateInheritanceSubclass"))).booleanValue();}}):true));
3013 if (!constraintValid)
3014 {
3015 validationMessages.add(
3016 new ModelValidationMessage(
3017 (MetafacadeBase)contextElement ,
3018 "org::andromda::cartridges::hibernate::metafacades::HibernateEntity::subclass inheritance strategy can not be mixed",
3019 "If your Hibernate inheritance strategy is defined as 'subclass' on the root entity. All sub classes must have an inheritance strategy of 'subclass' as well (the subclass inheritance strategy can not be mixed with any other types of strategies)."));
3020 }
3021 }
3022 catch (Throwable th)
3023 {
3024 Throwable cause = th.getCause();
3025 int depth = 0;
3026 while (cause != null && depth < 7)
3027 {
3028 th = cause;
3029 depth++;
3030 }
3031 logger.error("Error validating constraint 'org::andromda::cartridges::hibernate::metafacades::HibernateEntity::subclass inheritance strategy can not be mixed' ON "
3032 + this.THIS().toString() + ": " + th.getMessage(), th);
3033 }
3034 try
3035 {
3036 final Object contextElement = this.THIS();
3037 boolean constraintValid = OCLResultEnsurer.ensure(OCLCollections.forAll(OCLIntrospector.invoke(contextElement,"attributes"),new Predicate(){public boolean evaluate(Object object){return Boolean.valueOf(String.valueOf((Boolean.valueOf(String.valueOf(!(Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(object,"type.enumeration"))).booleanValue()||OCLIntrospector.invoke(object,"type") instanceof HibernateEmbeddedValue))).booleanValue()?Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(object,"type.dataType"))).booleanValue():true))).booleanValue();}}));
3038 if (!constraintValid)
3039 {
3040 validationMessages.add(
3041 new ModelValidationMessage(
3042 (MetafacadeBase)contextElement ,
3043 "org::andromda::cartridges::hibernate::metafacades::HibernateEntity::entity attributes must be of type data type.",
3044 "All attributes of an entity (other than enumerations and embedded values) must be of UML DataType. Complex types must be UML Associations, not attributes."));
3045 }
3046 }
3047 catch (Throwable th)
3048 {
3049 Throwable cause = th.getCause();
3050 int depth = 0;
3051 while (cause != null && depth < 7)
3052 {
3053 th = cause;
3054 depth++;
3055 }
3056 logger.error("Error validating constraint 'org::andromda::cartridges::hibernate::metafacades::HibernateEntity::entity attributes must be of type data type.' ON "
3057 + this.THIS().toString() + ": " + th.getMessage(), th);
3058 }
3059 try
3060 {
3061 final Object contextElement = this.THIS();
3062 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"increment")||OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"identity")||OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"sequence")||OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"hilo")||OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"seqhilo")||OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"native"))).booleanValue()?OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"long"):true)||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"java.lang.Long")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"Long")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"short")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"java.lang.Short")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"Short")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"int")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"java.lang.Integer")||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"Integer"));
3063 if (!constraintValid)
3064 {
3065 validationMessages.add(
3066 new ModelValidationMessage(
3067 (MetafacadeBase)contextElement ,
3068 "org::andromda::cartridges::hibernate::metafacades::HibernateEntity::increment, identity, sequence, hilo or seqhilo generator class requires a long, short, or int identifier",
3069 "If the hibernate identifier generator class is set as 'increment', 'identity', 'sequence', 'hilo', 'seqhilo' or 'native', your mapped identifier type must resolve to a long (long or java.lang.Long or Long) , an int (int or java.lang.Integer or Integer), or a short (short or java.lang.Short or Short)."));
3070 }
3071 }
3072 catch (Throwable th)
3073 {
3074 Throwable cause = th.getCause();
3075 int depth = 0;
3076 while (cause != null && depth < 7)
3077 {
3078 th = cause;
3079 depth++;
3080 }
3081 logger.error("Error validating constraint 'org::andromda::cartridges::hibernate::metafacades::HibernateEntity::increment, identity, sequence, hilo or seqhilo generator class requires a long, short, or int identifier' ON "
3082 + this.THIS().toString() + ": " + th.getMessage(), th);
3083 }
3084 try
3085 {
3086 final Object contextElement = this.THIS();
3087 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"uuid.hex")||OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"hibernateGeneratorClass"),"uuid.string"))).booleanValue()?OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"java.lang.String"):true)||OCLExpressions.equal(OCLIntrospector.invoke(OCLCollections.first(OCLIntrospector.invoke(contextElement,"identifiers")),"type.fullyQualifiedName"),"String"));
3088 if (!constraintValid)
3089 {
3090 validationMessages.add(
3091 new ModelValidationMessage(
3092 (MetafacadeBase)contextElement ,
3093 "org::andromda::cartridges::hibernate::metafacades::HibernateEntity::uuid.hex or uuid.string generator class requires a String",
3094 "If the hibernate identifier generator class is set as 'uuid.hex' or 'uuid.string' your mapped identifier type must resolve to 'String' or 'String'."));
3095 }
3096 }
3097 catch (Throwable th)
3098 {
3099 Throwable cause = th.getCause();
3100 int depth = 0;
3101 while (cause != null && depth < 7)
3102 {
3103 th = cause;
3104 depth++;
3105 }
3106 logger.error("Error validating constraint 'org::andromda::cartridges::hibernate::metafacades::HibernateEntity::uuid.hex or uuid.string generator class requires a String' ON "
3107 + this.THIS().toString() + ": " + th.getMessage(), th);
3108 }
3109 }
3110
3111
3112
3113
3114 private static final String NAME_PROPERTY = "name";
3115 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
3116
3117
3118
3119
3120 @Override
3121 public String toString()
3122 {
3123 final StringBuilder toString = new StringBuilder(this.getClass().getName());
3124 toString.append("[");
3125 try
3126 {
3127 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
3128 }
3129 catch (final Throwable tryAgain)
3130 {
3131 try
3132 {
3133 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
3134 }
3135 catch (final Throwable ignore)
3136 {
3137
3138 }
3139 }
3140 toString.append("]");
3141 return toString.toString();
3142 }
3143 }