1
2
3
4
5 package org.andromda.cartridges.ejb3.metafacades;
6
7 import java.util.Collection;
8 import org.andromda.core.common.Introspector;
9 import org.andromda.core.metafacade.MetafacadeBase;
10 import org.andromda.core.metafacade.MetafacadeFactory;
11 import org.andromda.core.metafacade.ModelValidationMessage;
12 import org.andromda.metafacades.uml.ClassifierFacade;
13 import org.andromda.metafacades.uml.ConstraintFacade;
14 import org.andromda.metafacades.uml.DependencyFacade;
15 import org.andromda.metafacades.uml.EntityAttribute;
16 import org.andromda.metafacades.uml.EnumerationFacade;
17 import org.andromda.metafacades.uml.ModelElementFacade;
18 import org.andromda.metafacades.uml.ModelFacade;
19 import org.andromda.metafacades.uml.PackageFacade;
20 import org.andromda.metafacades.uml.StateMachineFacade;
21 import org.andromda.metafacades.uml.StereotypeFacade;
22 import org.andromda.metafacades.uml.TaggedValueFacade;
23 import org.andromda.metafacades.uml.TemplateParameterFacade;
24 import org.andromda.metafacades.uml.TypeMappings;
25
26
27
28
29
30
31
32 public abstract class EJB3EntityAttributeFacadeLogic
33 extends MetafacadeBase
34 implements EJB3EntityAttributeFacade
35 {
36
37
38
39
40 protected Object metaObject;
41
42
43
44
45
46 protected EJB3EntityAttributeFacadeLogic(Object metaObjectIn, String context)
47 {
48 super(metaObjectIn, getContext(context));
49 this.superEntityAttribute =
50 (EntityAttribute)
51 MetafacadeFactory.getInstance().createFacadeImpl(
52 "org.andromda.metafacades.uml.EntityAttribute",
53 metaObjectIn,
54 getContext(context));
55 this.metaObject = metaObjectIn;
56 }
57
58
59
60
61
62
63 private static String getContext(String context)
64 {
65 if (context == null)
66 {
67 context = "org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacade";
68 }
69 return context;
70 }
71
72 private EntityAttribute superEntityAttribute;
73 private boolean superEntityAttributeInitialized = false;
74
75
76
77
78
79 private EntityAttribute getSuperEntityAttribute()
80 {
81 if (!this.superEntityAttributeInitialized)
82 {
83 ((MetafacadeBase)this.superEntityAttribute).setMetafacadeContext(this.getMetafacadeContext());
84 this.superEntityAttributeInitialized = true;
85 }
86 return this.superEntityAttribute;
87 }
88
89
90
91
92
93 @Override
94 public void resetMetafacadeContext(String context)
95 {
96 if (!this.contextRoot)
97 {
98 context = getContext(context);
99 setMetafacadeContext (context);
100 if (this.superEntityAttributeInitialized)
101 {
102 ((MetafacadeBase)this.superEntityAttribute).resetMetafacadeContext(context);
103 }
104 }
105 }
106
107
108
109
110
111 public boolean isEJB3EntityAttributeFacadeMetaType()
112 {
113 return true;
114 }
115
116
117
118
119
120
121
122 protected abstract String handleGetFetchType();
123
124 private String __fetchType1a;
125 private boolean __fetchType1aSet = false;
126
127
128
129
130
131
132 public final String getFetchType()
133 {
134 String fetchType1a = this.__fetchType1a;
135 if (!this.__fetchType1aSet)
136 {
137
138 fetchType1a = handleGetFetchType();
139
140 this.__fetchType1a = fetchType1a;
141 if (isMetafacadePropertyCachingEnabled())
142 {
143 this.__fetchType1aSet = true;
144 }
145 }
146 return fetchType1a;
147 }
148
149
150
151
152
153 protected abstract boolean handleIsVersion();
154
155 private boolean __version2a;
156 private boolean __version2aSet = false;
157
158
159
160
161
162 public final boolean isVersion()
163 {
164 boolean version2a = this.__version2a;
165 if (!this.__version2aSet)
166 {
167
168 version2a = handleIsVersion();
169
170 this.__version2a = version2a;
171 if (isMetafacadePropertyCachingEnabled())
172 {
173 this.__version2aSet = true;
174 }
175 }
176 return version2a;
177 }
178
179
180
181
182
183 protected abstract boolean handleIsLob();
184
185 private boolean __lob3a;
186 private boolean __lob3aSet = false;
187
188
189
190
191
192
193 public final boolean isLob()
194 {
195 boolean lob3a = this.__lob3a;
196 if (!this.__lob3aSet)
197 {
198
199 lob3a = handleIsLob();
200
201 this.__lob3a = lob3a;
202 if (isMetafacadePropertyCachingEnabled())
203 {
204 this.__lob3aSet = true;
205 }
206 }
207 return lob3a;
208 }
209
210
211
212
213
214 protected abstract String handleGetGeneratorType();
215
216 private String __generatorType4a;
217 private boolean __generatorType4aSet = false;
218
219
220
221
222
223
224
225 public final String getGeneratorType()
226 {
227 String generatorType4a = this.__generatorType4a;
228 if (!this.__generatorType4aSet)
229 {
230
231 generatorType4a = handleGetGeneratorType();
232
233 this.__generatorType4a = generatorType4a;
234 if (isMetafacadePropertyCachingEnabled())
235 {
236 this.__generatorType4aSet = true;
237 }
238 }
239 return generatorType4a;
240 }
241
242
243
244
245
246 protected abstract String handleGetColumnDefinition();
247
248 private String __columnDefinition5a;
249 private boolean __columnDefinition5aSet = false;
250
251
252
253
254
255
256 public final String getColumnDefinition()
257 {
258 String columnDefinition5a = this.__columnDefinition5a;
259 if (!this.__columnDefinition5aSet)
260 {
261
262 columnDefinition5a = handleGetColumnDefinition();
263
264 this.__columnDefinition5a = columnDefinition5a;
265 if (isMetafacadePropertyCachingEnabled())
266 {
267 this.__columnDefinition5aSet = true;
268 }
269 }
270 return columnDefinition5a;
271 }
272
273
274
275
276
277 protected abstract String handleGetColumnPrecision();
278
279 private String __columnPrecision6a;
280 private boolean __columnPrecision6aSet = false;
281
282
283
284
285
286
287 public final String getColumnPrecision()
288 {
289 String columnPrecision6a = this.__columnPrecision6a;
290 if (!this.__columnPrecision6aSet)
291 {
292
293 columnPrecision6a = handleGetColumnPrecision();
294
295 this.__columnPrecision6a = columnPrecision6a;
296 if (isMetafacadePropertyCachingEnabled())
297 {
298 this.__columnPrecision6aSet = true;
299 }
300 }
301 return columnPrecision6a;
302 }
303
304
305
306
307
308 protected abstract String handleGetColumnScale();
309
310 private String __columnScale7a;
311 private boolean __columnScale7aSet = false;
312
313
314
315
316
317
318 public final String getColumnScale()
319 {
320 String columnScale7a = this.__columnScale7a;
321 if (!this.__columnScale7aSet)
322 {
323
324 columnScale7a = handleGetColumnScale();
325
326 this.__columnScale7a = columnScale7a;
327 if (isMetafacadePropertyCachingEnabled())
328 {
329 this.__columnScale7aSet = true;
330 }
331 }
332 return columnScale7a;
333 }
334
335
336
337
338
339 protected abstract boolean handleIsColumnNullable();
340
341 private boolean __columnNullable8a;
342 private boolean __columnNullable8aSet = false;
343
344
345
346
347
348
349
350 public final boolean isColumnNullable()
351 {
352 boolean columnNullable8a = this.__columnNullable8a;
353 if (!this.__columnNullable8aSet)
354 {
355
356 columnNullable8a = handleIsColumnNullable();
357
358 this.__columnNullable8a = columnNullable8a;
359 if (isMetafacadePropertyCachingEnabled())
360 {
361 this.__columnNullable8aSet = true;
362 }
363 }
364 return columnNullable8a;
365 }
366
367
368
369
370
371 protected abstract boolean handleIsEager();
372
373 private boolean __eager9a;
374 private boolean __eager9aSet = false;
375
376
377
378
379
380 public final boolean isEager()
381 {
382 boolean eager9a = this.__eager9a;
383 if (!this.__eager9aSet)
384 {
385
386 eager9a = handleIsEager();
387
388 this.__eager9a = eager9a;
389 if (isMetafacadePropertyCachingEnabled())
390 {
391 this.__eager9aSet = true;
392 }
393 }
394 return eager9a;
395 }
396
397
398
399
400
401 protected abstract boolean handleIsLazy();
402
403 private boolean __lazy10a;
404 private boolean __lazy10aSet = false;
405
406
407
408
409
410 public final boolean isLazy()
411 {
412 boolean lazy10a = this.__lazy10a;
413 if (!this.__lazy10aSet)
414 {
415
416 lazy10a = handleIsLazy();
417
418 this.__lazy10a = lazy10a;
419 if (isMetafacadePropertyCachingEnabled())
420 {
421 this.__lazy10aSet = true;
422 }
423 }
424 return lazy10a;
425 }
426
427
428
429
430
431 protected abstract String handleGetGeneratorName();
432
433 private String __generatorName11a;
434 private boolean __generatorName11aSet = false;
435
436
437
438
439
440
441 public final String getGeneratorName()
442 {
443 String generatorName11a = this.__generatorName11a;
444 if (!this.__generatorName11aSet)
445 {
446
447 generatorName11a = handleGetGeneratorName();
448
449 this.__generatorName11a = generatorName11a;
450 if (isMetafacadePropertyCachingEnabled())
451 {
452 this.__generatorName11aSet = true;
453 }
454 }
455 return generatorName11a;
456 }
457
458
459
460
461
462 protected abstract String handleGetGeneratorSourceName();
463
464 private String __generatorSourceName12a;
465 private boolean __generatorSourceName12aSet = false;
466
467
468
469
470
471
472 public final String getGeneratorSourceName()
473 {
474 String generatorSourceName12a = this.__generatorSourceName12a;
475 if (!this.__generatorSourceName12aSet)
476 {
477
478 generatorSourceName12a = handleGetGeneratorSourceName();
479
480 this.__generatorSourceName12a = generatorSourceName12a;
481 if (isMetafacadePropertyCachingEnabled())
482 {
483 this.__generatorSourceName12aSet = true;
484 }
485 }
486 return generatorSourceName12a;
487 }
488
489
490
491
492
493 protected abstract String handleGetGeneratorPkColumnValue();
494
495 private String __generatorPkColumnValue13a;
496 private boolean __generatorPkColumnValue13aSet = false;
497
498
499
500
501
502
503 public final String getGeneratorPkColumnValue()
504 {
505 String generatorPkColumnValue13a = this.__generatorPkColumnValue13a;
506 if (!this.__generatorPkColumnValue13aSet)
507 {
508
509 generatorPkColumnValue13a = handleGetGeneratorPkColumnValue();
510
511 this.__generatorPkColumnValue13a = generatorPkColumnValue13a;
512 if (isMetafacadePropertyCachingEnabled())
513 {
514 this.__generatorPkColumnValue13aSet = true;
515 }
516 }
517 return generatorPkColumnValue13a;
518 }
519
520
521
522
523
524 protected abstract int handleGetGeneratorInitialValue();
525
526 private int __generatorInitialValue14a;
527 private boolean __generatorInitialValue14aSet = false;
528
529
530
531
532
533 public final int getGeneratorInitialValue()
534 {
535 int generatorInitialValue14a = this.__generatorInitialValue14a;
536 if (!this.__generatorInitialValue14aSet)
537 {
538
539 generatorInitialValue14a = handleGetGeneratorInitialValue();
540
541 this.__generatorInitialValue14a = generatorInitialValue14a;
542 if (isMetafacadePropertyCachingEnabled())
543 {
544 this.__generatorInitialValue14aSet = true;
545 }
546 }
547 return generatorInitialValue14a;
548 }
549
550
551
552
553
554 protected abstract int handleGetGeneratorAllocationSize();
555
556 private int __generatorAllocationSize15a;
557 private boolean __generatorAllocationSize15aSet = false;
558
559
560
561
562
563 public final int getGeneratorAllocationSize()
564 {
565 int generatorAllocationSize15a = this.__generatorAllocationSize15a;
566 if (!this.__generatorAllocationSize15aSet)
567 {
568
569 generatorAllocationSize15a = handleGetGeneratorAllocationSize();
570
571 this.__generatorAllocationSize15a = generatorAllocationSize15a;
572 if (isMetafacadePropertyCachingEnabled())
573 {
574 this.__generatorAllocationSize15aSet = true;
575 }
576 }
577 return generatorAllocationSize15a;
578 }
579
580
581
582
583
584 protected abstract boolean handleIsGeneratorTypeSequence();
585
586 private boolean __generatorTypeSequence16a;
587 private boolean __generatorTypeSequence16aSet = false;
588
589
590
591
592
593 public final boolean isGeneratorTypeSequence()
594 {
595 boolean generatorTypeSequence16a = this.__generatorTypeSequence16a;
596 if (!this.__generatorTypeSequence16aSet)
597 {
598
599 generatorTypeSequence16a = handleIsGeneratorTypeSequence();
600
601 this.__generatorTypeSequence16a = generatorTypeSequence16a;
602 if (isMetafacadePropertyCachingEnabled())
603 {
604 this.__generatorTypeSequence16aSet = true;
605 }
606 }
607 return generatorTypeSequence16a;
608 }
609
610
611
612
613
614 protected abstract boolean handleIsGeneratorTypeTable();
615
616 private boolean __generatorTypeTable17a;
617 private boolean __generatorTypeTable17aSet = false;
618
619
620
621
622
623 public final boolean isGeneratorTypeTable()
624 {
625 boolean generatorTypeTable17a = this.__generatorTypeTable17a;
626 if (!this.__generatorTypeTable17aSet)
627 {
628
629 generatorTypeTable17a = handleIsGeneratorTypeTable();
630
631 this.__generatorTypeTable17a = generatorTypeTable17a;
632 if (isMetafacadePropertyCachingEnabled())
633 {
634 this.__generatorTypeTable17aSet = true;
635 }
636 }
637 return generatorTypeTable17a;
638 }
639
640
641
642
643
644 protected abstract boolean handleIsGeneratorTypeAuto();
645
646 private boolean __generatorTypeAuto18a;
647 private boolean __generatorTypeAuto18aSet = false;
648
649
650
651
652
653 public final boolean isGeneratorTypeAuto()
654 {
655 boolean generatorTypeAuto18a = this.__generatorTypeAuto18a;
656 if (!this.__generatorTypeAuto18aSet)
657 {
658
659 generatorTypeAuto18a = handleIsGeneratorTypeAuto();
660
661 this.__generatorTypeAuto18a = generatorTypeAuto18a;
662 if (isMetafacadePropertyCachingEnabled())
663 {
664 this.__generatorTypeAuto18aSet = true;
665 }
666 }
667 return generatorTypeAuto18a;
668 }
669
670
671
672
673
674 protected abstract boolean handleIsGeneratorTypeNone();
675
676 private boolean __generatorTypeNone19a;
677 private boolean __generatorTypeNone19aSet = false;
678
679
680
681
682
683 public final boolean isGeneratorTypeNone()
684 {
685 boolean generatorTypeNone19a = this.__generatorTypeNone19a;
686 if (!this.__generatorTypeNone19aSet)
687 {
688
689 generatorTypeNone19a = handleIsGeneratorTypeNone();
690
691 this.__generatorTypeNone19a = generatorTypeNone19a;
692 if (isMetafacadePropertyCachingEnabled())
693 {
694 this.__generatorTypeNone19aSet = true;
695 }
696 }
697 return generatorTypeNone19a;
698 }
699
700
701
702
703
704 protected abstract boolean handleIsGeneratorTypeIdentity();
705
706 private boolean __generatorTypeIdentity20a;
707 private boolean __generatorTypeIdentity20aSet = false;
708
709
710
711
712
713 public final boolean isGeneratorTypeIdentity()
714 {
715 boolean generatorTypeIdentity20a = this.__generatorTypeIdentity20a;
716 if (!this.__generatorTypeIdentity20aSet)
717 {
718
719 generatorTypeIdentity20a = handleIsGeneratorTypeIdentity();
720
721 this.__generatorTypeIdentity20a = generatorTypeIdentity20a;
722 if (isMetafacadePropertyCachingEnabled())
723 {
724 this.__generatorTypeIdentity20aSet = true;
725 }
726 }
727 return generatorTypeIdentity20a;
728 }
729
730
731
732
733
734 protected abstract String handleGetTemporalType();
735
736 private String __temporalType21a;
737 private boolean __temporalType21aSet = false;
738
739
740
741
742
743
744
745 public final String getTemporalType()
746 {
747 String temporalType21a = this.__temporalType21a;
748 if (!this.__temporalType21aSet)
749 {
750
751 temporalType21a = handleGetTemporalType();
752
753 this.__temporalType21a = temporalType21a;
754 if (isMetafacadePropertyCachingEnabled())
755 {
756 this.__temporalType21aSet = true;
757 }
758 }
759 return temporalType21a;
760 }
761
762
763
764
765
766 protected abstract String handleGetEnumerationType();
767
768 private String __enumerationType22a;
769 private boolean __enumerationType22aSet = false;
770
771
772
773
774
775
776
777 public final String getEnumerationType()
778 {
779 String enumerationType22a = this.__enumerationType22a;
780 if (!this.__enumerationType22aSet)
781 {
782
783 enumerationType22a = handleGetEnumerationType();
784
785 this.__enumerationType22a = enumerationType22a;
786 if (isMetafacadePropertyCachingEnabled())
787 {
788 this.__enumerationType22aSet = true;
789 }
790 }
791 return enumerationType22a;
792 }
793
794
795
796
797
798 protected abstract boolean handleIsInsertEnabled();
799
800 private boolean __insertEnabled23a;
801 private boolean __insertEnabled23aSet = false;
802
803
804
805
806
807 public final boolean isInsertEnabled()
808 {
809 boolean insertEnabled23a = this.__insertEnabled23a;
810 if (!this.__insertEnabled23aSet)
811 {
812
813 insertEnabled23a = handleIsInsertEnabled();
814
815 this.__insertEnabled23a = insertEnabled23a;
816 if (isMetafacadePropertyCachingEnabled())
817 {
818 this.__insertEnabled23aSet = true;
819 }
820 }
821 return insertEnabled23a;
822 }
823
824
825
826
827
828 protected abstract boolean handleIsUpdateEnabled();
829
830 private boolean __updateEnabled24a;
831 private boolean __updateEnabled24aSet = false;
832
833
834
835
836
837 public final boolean isUpdateEnabled()
838 {
839 boolean updateEnabled24a = this.__updateEnabled24a;
840 if (!this.__updateEnabled24aSet)
841 {
842
843 updateEnabled24a = handleIsUpdateEnabled();
844
845 this.__updateEnabled24a = updateEnabled24a;
846 if (isMetafacadePropertyCachingEnabled())
847 {
848 this.__updateEnabled24aSet = true;
849 }
850 }
851 return updateEnabled24a;
852 }
853
854
855
856
857
858 protected abstract String handleGetLobType();
859
860 private String __lobType25a;
861 private boolean __lobType25aSet = false;
862
863
864
865
866
867
868 public final String getLobType()
869 {
870 String lobType25a = this.__lobType25a;
871 if (!this.__lobType25aSet)
872 {
873
874 lobType25a = handleGetLobType();
875
876 this.__lobType25a = lobType25a;
877 if (isMetafacadePropertyCachingEnabled())
878 {
879 this.__lobType25aSet = true;
880 }
881 }
882 return lobType25a;
883 }
884
885
886
887
888
889 protected abstract boolean handleIsContainsEmbeddedObject();
890
891 private boolean __containsEmbeddedObject26a;
892 private boolean __containsEmbeddedObject26aSet = false;
893
894
895
896
897
898 public final boolean isContainsEmbeddedObject()
899 {
900 boolean containsEmbeddedObject26a = this.__containsEmbeddedObject26a;
901 if (!this.__containsEmbeddedObject26aSet)
902 {
903
904 containsEmbeddedObject26a = handleIsContainsEmbeddedObject();
905
906 this.__containsEmbeddedObject26a = containsEmbeddedObject26a;
907 if (isMetafacadePropertyCachingEnabled())
908 {
909 this.__containsEmbeddedObject26aSet = true;
910 }
911 }
912 return containsEmbeddedObject26a;
913 }
914
915
916
917
918
919 protected abstract boolean handleIsGeneratorTypeGeneric();
920
921 private boolean __generatorTypeGeneric27a;
922 private boolean __generatorTypeGeneric27aSet = false;
923
924
925
926
927
928 public final boolean isGeneratorTypeGeneric()
929 {
930 boolean generatorTypeGeneric27a = this.__generatorTypeGeneric27a;
931 if (!this.__generatorTypeGeneric27aSet)
932 {
933
934 generatorTypeGeneric27a = handleIsGeneratorTypeGeneric();
935
936 this.__generatorTypeGeneric27a = generatorTypeGeneric27a;
937 if (isMetafacadePropertyCachingEnabled())
938 {
939 this.__generatorTypeGeneric27aSet = true;
940 }
941 }
942 return generatorTypeGeneric27a;
943 }
944
945
946
947
948
949 protected abstract String handleGetGeneratorGenericStrategy();
950
951 private String __generatorGenericStrategy28a;
952 private boolean __generatorGenericStrategy28aSet = false;
953
954
955
956
957
958
959 public final String getGeneratorGenericStrategy()
960 {
961 String generatorGenericStrategy28a = this.__generatorGenericStrategy28a;
962 if (!this.__generatorGenericStrategy28aSet)
963 {
964
965 generatorGenericStrategy28a = handleGetGeneratorGenericStrategy();
966
967 this.__generatorGenericStrategy28a = generatorGenericStrategy28a;
968 if (isMetafacadePropertyCachingEnabled())
969 {
970 this.__generatorGenericStrategy28aSet = true;
971 }
972 }
973 return generatorGenericStrategy28a;
974 }
975
976
977
978
979
980 protected abstract String handleGetOverrideType();
981
982 private String __overrideType29a;
983 private boolean __overrideType29aSet = false;
984
985
986
987
988
989
990
991
992
993
994
995
996 public final String getOverrideType()
997 {
998 String overrideType29a = this.__overrideType29a;
999 if (!this.__overrideType29aSet)
1000 {
1001
1002 overrideType29a = handleGetOverrideType();
1003
1004 this.__overrideType29a = overrideType29a;
1005 if (isMetafacadePropertyCachingEnabled())
1006 {
1007 this.__overrideType29aSet = true;
1008 }
1009 }
1010 return overrideType29a;
1011 }
1012
1013
1014
1015
1016
1017 public boolean isEntityAttributeMetaType()
1018 {
1019 return true;
1020 }
1021
1022
1023
1024
1025
1026 public boolean isAttributeFacadeMetaType()
1027 {
1028 return true;
1029 }
1030
1031
1032
1033
1034
1035 public boolean isModelElementFacadeMetaType()
1036 {
1037 return true;
1038 }
1039
1040
1041
1042
1043
1044
1045
1046
1047 public Object findTaggedValue(String name, boolean follow)
1048 {
1049 return this.getSuperEntityAttribute().findTaggedValue(name, follow);
1050 }
1051
1052
1053
1054
1055
1056 public String getDefaultValue()
1057 {
1058 return this.getSuperEntityAttribute().getDefaultValue();
1059 }
1060
1061
1062
1063
1064
1065
1066 public EnumerationFacade getEnumeration()
1067 {
1068 return this.getSuperEntityAttribute().getEnumeration();
1069 }
1070
1071
1072
1073
1074
1075 public String getEnumerationLiteralParameters()
1076 {
1077 return this.getSuperEntityAttribute().getEnumerationLiteralParameters();
1078 }
1079
1080
1081
1082
1083
1084
1085
1086 public String getEnumerationValue()
1087 {
1088 return this.getSuperEntityAttribute().getEnumerationValue();
1089 }
1090
1091
1092
1093
1094
1095 public String getGetterName()
1096 {
1097 return this.getSuperEntityAttribute().getGetterName();
1098 }
1099
1100
1101
1102
1103
1104
1105 public String getGetterSetterTypeName()
1106 {
1107 return this.getSuperEntityAttribute().getGetterSetterTypeName();
1108 }
1109
1110
1111
1112
1113
1114
1115 public int getLower()
1116 {
1117 return this.getSuperEntityAttribute().getLower();
1118 }
1119
1120
1121
1122
1123
1124 public ClassifierFacade getOwner()
1125 {
1126 return this.getSuperEntityAttribute().getOwner();
1127 }
1128
1129
1130
1131
1132
1133 public String getSetterName()
1134 {
1135 return this.getSuperEntityAttribute().getSetterName();
1136 }
1137
1138
1139
1140
1141
1142 public ClassifierFacade getType()
1143 {
1144 return this.getSuperEntityAttribute().getType();
1145 }
1146
1147
1148
1149
1150
1151
1152 public int getUpper()
1153 {
1154 return this.getSuperEntityAttribute().getUpper();
1155 }
1156
1157
1158
1159
1160
1161 public boolean isAddOnly()
1162 {
1163 return this.getSuperEntityAttribute().isAddOnly();
1164 }
1165
1166
1167
1168
1169
1170 public boolean isChangeable()
1171 {
1172 return this.getSuperEntityAttribute().isChangeable();
1173 }
1174
1175
1176
1177
1178
1179 public boolean isDefaultValuePresent()
1180 {
1181 return this.getSuperEntityAttribute().isDefaultValuePresent();
1182 }
1183
1184
1185
1186
1187
1188
1189 public boolean isDerived()
1190 {
1191 return this.getSuperEntityAttribute().isDerived();
1192 }
1193
1194
1195
1196
1197
1198 public boolean isEnumerationLiteral()
1199 {
1200 return this.getSuperEntityAttribute().isEnumerationLiteral();
1201 }
1202
1203
1204
1205
1206
1207
1208 public boolean isEnumerationLiteralParametersExist()
1209 {
1210 return this.getSuperEntityAttribute().isEnumerationLiteralParametersExist();
1211 }
1212
1213
1214
1215
1216
1217
1218 public boolean isEnumerationMember()
1219 {
1220 return this.getSuperEntityAttribute().isEnumerationMember();
1221 }
1222
1223
1224
1225
1226
1227
1228 public boolean isLeaf()
1229 {
1230 return this.getSuperEntityAttribute().isLeaf();
1231 }
1232
1233
1234
1235
1236
1237 public boolean isMany()
1238 {
1239 return this.getSuperEntityAttribute().isMany();
1240 }
1241
1242
1243
1244
1245
1246 public boolean isOrdered()
1247 {
1248 return this.getSuperEntityAttribute().isOrdered();
1249 }
1250
1251
1252
1253
1254
1255 public boolean isReadOnly()
1256 {
1257 return this.getSuperEntityAttribute().isReadOnly();
1258 }
1259
1260
1261
1262
1263
1264 public boolean isRequired()
1265 {
1266 return this.getSuperEntityAttribute().isRequired();
1267 }
1268
1269
1270
1271
1272
1273 public boolean isStatic()
1274 {
1275 return this.getSuperEntityAttribute().isStatic();
1276 }
1277
1278
1279
1280
1281
1282
1283 public boolean isUnique()
1284 {
1285 return this.getSuperEntityAttribute().isUnique();
1286 }
1287
1288
1289
1290
1291
1292 public String getColumnIndex()
1293 {
1294 return this.getSuperEntityAttribute().getColumnIndex();
1295 }
1296
1297
1298
1299
1300
1301 public String getColumnLength()
1302 {
1303 return this.getSuperEntityAttribute().getColumnLength();
1304 }
1305
1306
1307
1308
1309
1310 public String getColumnName()
1311 {
1312 return this.getSuperEntityAttribute().getColumnName();
1313 }
1314
1315
1316
1317
1318
1319 public TypeMappings getJdbcMappings()
1320 {
1321 return this.getSuperEntityAttribute().getJdbcMappings();
1322 }
1323
1324
1325
1326
1327
1328 public String getJdbcType()
1329 {
1330 return this.getSuperEntityAttribute().getJdbcType();
1331 }
1332
1333
1334
1335
1336
1337 public TypeMappings getSqlMappings()
1338 {
1339 return this.getSuperEntityAttribute().getSqlMappings();
1340 }
1341
1342
1343
1344
1345
1346 public String getSqlType()
1347 {
1348 return this.getSuperEntityAttribute().getSqlType();
1349 }
1350
1351
1352
1353
1354
1355 public String getUniqueGroup()
1356 {
1357 return this.getSuperEntityAttribute().getUniqueGroup();
1358 }
1359
1360
1361
1362
1363
1364 public boolean isIdentifier()
1365 {
1366 return this.getSuperEntityAttribute().isIdentifier();
1367 }
1368
1369
1370
1371
1372
1373 public boolean isTransient()
1374 {
1375 return this.getSuperEntityAttribute().isTransient();
1376 }
1377
1378
1379
1380
1381
1382 public void copyTaggedValues(ModelElementFacade element)
1383 {
1384 this.getSuperEntityAttribute().copyTaggedValues(element);
1385 }
1386
1387
1388
1389
1390
1391
1392 public Object findTaggedValue(String tagName)
1393 {
1394 return this.getSuperEntityAttribute().findTaggedValue(tagName);
1395 }
1396
1397
1398
1399
1400
1401
1402 public Collection<Object> findTaggedValues(String tagName)
1403 {
1404 return this.getSuperEntityAttribute().findTaggedValues(tagName);
1405 }
1406
1407
1408
1409
1410
1411
1412
1413 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
1414 {
1415 return this.getSuperEntityAttribute().getBindedFullyQualifiedName(bindedElement);
1416 }
1417
1418
1419
1420
1421
1422 public Collection<ConstraintFacade> getConstraints()
1423 {
1424 return this.getSuperEntityAttribute().getConstraints();
1425 }
1426
1427
1428
1429
1430
1431
1432 public Collection<ConstraintFacade> getConstraints(String kind)
1433 {
1434 return this.getSuperEntityAttribute().getConstraints(kind);
1435 }
1436
1437
1438
1439
1440
1441
1442
1443 public String getDocumentation(String indent)
1444 {
1445 return this.getSuperEntityAttribute().getDocumentation(indent);
1446 }
1447
1448
1449
1450
1451
1452
1453
1454
1455 public String getDocumentation(String indent, int lineLength)
1456 {
1457 return this.getSuperEntityAttribute().getDocumentation(indent, lineLength);
1458 }
1459
1460
1461
1462
1463
1464
1465
1466 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
1467 {
1468 return this.getSuperEntityAttribute().getDocumentation(indent, lineLength, htmlStyle);
1469 }
1470
1471
1472
1473
1474
1475 public String getFullyQualifiedName()
1476 {
1477 return this.getSuperEntityAttribute().getFullyQualifiedName();
1478 }
1479
1480
1481
1482
1483
1484
1485
1486
1487 public String getFullyQualifiedName(boolean modelName)
1488 {
1489 return this.getSuperEntityAttribute().getFullyQualifiedName(modelName);
1490 }
1491
1492
1493
1494
1495
1496
1497 public String getFullyQualifiedNamePath()
1498 {
1499 return this.getSuperEntityAttribute().getFullyQualifiedNamePath();
1500 }
1501
1502
1503
1504
1505
1506 public String getId()
1507 {
1508 return this.getSuperEntityAttribute().getId();
1509 }
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 public Collection<String> getKeywords()
1520 {
1521 return this.getSuperEntityAttribute().getKeywords();
1522 }
1523
1524
1525
1526
1527
1528 public String getLabel()
1529 {
1530 return this.getSuperEntityAttribute().getLabel();
1531 }
1532
1533
1534
1535
1536
1537 public TypeMappings getLanguageMappings()
1538 {
1539 return this.getSuperEntityAttribute().getLanguageMappings();
1540 }
1541
1542
1543
1544
1545
1546
1547 public ModelFacade getModel()
1548 {
1549 return this.getSuperEntityAttribute().getModel();
1550 }
1551
1552
1553
1554
1555
1556 public String getName()
1557 {
1558 return this.getSuperEntityAttribute().getName();
1559 }
1560
1561
1562
1563
1564
1565 public ModelElementFacade getPackage()
1566 {
1567 return this.getSuperEntityAttribute().getPackage();
1568 }
1569
1570
1571
1572
1573
1574 public String getPackageName()
1575 {
1576 return this.getSuperEntityAttribute().getPackageName();
1577 }
1578
1579
1580
1581
1582
1583
1584 public String getPackageName(boolean modelName)
1585 {
1586 return this.getSuperEntityAttribute().getPackageName(modelName);
1587 }
1588
1589
1590
1591
1592
1593 public String getPackagePath()
1594 {
1595 return this.getSuperEntityAttribute().getPackagePath();
1596 }
1597
1598
1599
1600
1601
1602
1603
1604
1605 public String getQualifiedName()
1606 {
1607 return this.getSuperEntityAttribute().getQualifiedName();
1608 }
1609
1610
1611
1612
1613
1614 public PackageFacade getRootPackage()
1615 {
1616 return this.getSuperEntityAttribute().getRootPackage();
1617 }
1618
1619
1620
1621
1622
1623 public Collection<DependencyFacade> getSourceDependencies()
1624 {
1625 return this.getSuperEntityAttribute().getSourceDependencies();
1626 }
1627
1628
1629
1630
1631
1632
1633 public StateMachineFacade getStateMachineContext()
1634 {
1635 return this.getSuperEntityAttribute().getStateMachineContext();
1636 }
1637
1638
1639
1640
1641
1642 public Collection<String> getStereotypeNames()
1643 {
1644 return this.getSuperEntityAttribute().getStereotypeNames();
1645 }
1646
1647
1648
1649
1650
1651 public Collection<StereotypeFacade> getStereotypes()
1652 {
1653 return this.getSuperEntityAttribute().getStereotypes();
1654 }
1655
1656
1657
1658
1659
1660 public Collection<TaggedValueFacade> getTaggedValues()
1661 {
1662 return this.getSuperEntityAttribute().getTaggedValues();
1663 }
1664
1665
1666
1667
1668
1669 public Collection<DependencyFacade> getTargetDependencies()
1670 {
1671 return this.getSuperEntityAttribute().getTargetDependencies();
1672 }
1673
1674
1675
1676
1677
1678 public Object getTemplateParameter(String parameterName)
1679 {
1680 return this.getSuperEntityAttribute().getTemplateParameter(parameterName);
1681 }
1682
1683
1684
1685
1686
1687 public Collection<TemplateParameterFacade> getTemplateParameters()
1688 {
1689 return this.getSuperEntityAttribute().getTemplateParameters();
1690 }
1691
1692
1693
1694
1695
1696
1697 public String getVisibility()
1698 {
1699 return this.getSuperEntityAttribute().getVisibility();
1700 }
1701
1702
1703
1704
1705
1706
1707 public boolean hasExactStereotype(String stereotypeName)
1708 {
1709 return this.getSuperEntityAttribute().hasExactStereotype(stereotypeName);
1710 }
1711
1712
1713
1714
1715
1716
1717 public boolean hasKeyword(String keywordName)
1718 {
1719 return this.getSuperEntityAttribute().hasKeyword(keywordName);
1720 }
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734 public boolean hasStereotype(String stereotypeName)
1735 {
1736 return this.getSuperEntityAttribute().hasStereotype(stereotypeName);
1737 }
1738
1739
1740
1741
1742
1743
1744 public boolean isBindingDependenciesPresent()
1745 {
1746 return this.getSuperEntityAttribute().isBindingDependenciesPresent();
1747 }
1748
1749
1750
1751
1752
1753 public boolean isConstraintsPresent()
1754 {
1755 return this.getSuperEntityAttribute().isConstraintsPresent();
1756 }
1757
1758
1759
1760
1761
1762 public boolean isDocumentationPresent()
1763 {
1764 return this.getSuperEntityAttribute().isDocumentationPresent();
1765 }
1766
1767
1768
1769
1770
1771 public boolean isReservedWord()
1772 {
1773 return this.getSuperEntityAttribute().isReservedWord();
1774 }
1775
1776
1777
1778
1779
1780
1781 public boolean isTemplateParametersPresent()
1782 {
1783 return this.getSuperEntityAttribute().isTemplateParametersPresent();
1784 }
1785
1786
1787
1788
1789
1790
1791
1792 public boolean isValidIdentifierName()
1793 {
1794 return this.getSuperEntityAttribute().isValidIdentifierName();
1795 }
1796
1797
1798
1799
1800
1801
1802
1803 public String translateConstraint(String name, String translation)
1804 {
1805 return this.getSuperEntityAttribute().translateConstraint(name, translation);
1806 }
1807
1808
1809
1810
1811
1812 public String[] translateConstraints(String translation)
1813 {
1814 return this.getSuperEntityAttribute().translateConstraints(translation);
1815 }
1816
1817
1818
1819
1820
1821 public String[] translateConstraints(String kind, String translation)
1822 {
1823 return this.getSuperEntityAttribute().translateConstraints(kind, translation);
1824 }
1825
1826
1827
1828
1829 @Override
1830 public void initialize()
1831 {
1832 this.getSuperEntityAttribute().initialize();
1833 }
1834
1835
1836
1837
1838
1839 @Override
1840 public Object getValidationOwner()
1841 {
1842 Object owner = this.getSuperEntityAttribute().getValidationOwner();
1843 return owner;
1844 }
1845
1846
1847
1848
1849
1850 @Override
1851 public String getValidationName()
1852 {
1853 String name = this.getSuperEntityAttribute().getValidationName();
1854 return name;
1855 }
1856
1857
1858
1859
1860
1861 @Override
1862 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1863 {
1864 this.getSuperEntityAttribute().validateInvariants(validationMessages);
1865 }
1866
1867
1868
1869
1870 private static final String NAME_PROPERTY = "name";
1871 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1872
1873
1874
1875
1876 @Override
1877 public String toString()
1878 {
1879 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1880 toString.append("[");
1881 try
1882 {
1883 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1884 }
1885 catch (final Throwable tryAgain)
1886 {
1887 try
1888 {
1889 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1890 }
1891 catch (final Throwable ignore)
1892 {
1893
1894 }
1895 }
1896 toString.append("]");
1897 return toString.toString();
1898 }
1899 }