-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_schema.sql
721 lines (519 loc) · 23.2 KB
/
test_schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
script sql
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib';
if ($exist.size() > 0) {
delete edge EdgeAttrib;
drop class EdgeAttrib;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject';
if ($exist.size() > 0) {
delete vertex IndirectObject;
drop class IndirectObject;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'UserSID';
if ($exist.size() > 0) {
delete vertex UserSID;
drop class UserSID;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'GroupSID';
if ($exist.size() > 0) {
delete vertex GroupSID;
drop class GroupSID;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SObject';
if ($exist.size() > 0) {
delete vertex SObject;
drop class SObject;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SSimpleVertex';
if ($exist.size() > 0) {
delete vertex SSimpleVertex;
drop class SSimpleVertex;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertex';
if ($exist.size() > 0) {
delete vertex SimpleVertex;
drop class SimpleVertex;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexInterfaceAttr';
if ($exist.size() > 0) {
delete vertex SimpleVertexInterfaceAttr;
drop class SimpleVertexInterfaceAttr;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexWithEmbedded';
if ($exist.size() > 0) {
delete vertex SimpleVertexWithEmbedded;
drop class SimpleVertexWithEmbedded;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexWithImplement';
if ($exist.size() > 0) {
delete vertex SimpleVertexWithImplement;
drop class SimpleVertexWithImplement;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'FooNode';
if ($exist.size() > 0) {
delete vertex FooNode;
drop class FooNode;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'Enums';
if ($exist.size() > 0) {
delete vertex Enums;
drop class Enums;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx';
if ($exist.size() > 0) {
delete vertex SimpleVertexEx;
drop class SimpleVertexEx;
}
*/
/*
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild';
if ($exist.size() > 0) {
delete vertex SVExChild;
drop class SVExChild;
}
*/
let exist = select from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib';
if ($exist.size() = 0) {
create class EdgeAttrib extends E;
}
alter class EdgeAttrib custom javaClass='test.EdgeAttrib';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib') where name = 'uuid';
if ($exist.size()=0) {
create property EdgeAttrib.uuid STRING;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib') where name = 'nota';
if ($exist.size()=0) {
create property EdgeAttrib.nota STRING;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib') where name = 'fecha';
if ($exist.size()=0) {
create property EdgeAttrib.fecha DATETIME;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'EdgeAttrib') where name = 'enumValue';
if ($exist.size()=0) {
create property EdgeAttrib.enumValue string;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject';
if ($exist.size() = 0) {
create class IndirectObject extends V;
}
alter class IndirectObject custom javaClass='test.IndirectObject';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'IndirectObject') where name = 'testData';
if ($exist.size()=0) {
create property IndirectObject.testData STRING;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_directLink';
if ($exist.size()=0) {
create class IndirectObject_directLink extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_alDirectLinked';
if ($exist.size()=0) {
create class IndirectObject_alDirectLinked extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_hmDirectLinked';
if ($exist.size()=0) {
create class IndirectObject_hmDirectLinked extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_indirectLink';
if ($exist.size()=0) {
create class IndirectObject_indirectLink extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_indirectLinkedFromAL';
if ($exist.size()=0) {
create class IndirectObject_indirectLinkedFromAL extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_alIndirectLinked';
if ($exist.size()=0) {
create class IndirectObject_alIndirectLinked extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'IndirectObject_hmIndirectLinked';
if ($exist.size()=0) {
create class IndirectObject_hmIndirectLinked extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'UserSID';
if ($exist.size() = 0) {
create class UserSID extends V;
}
alter class UserSID custom javaClass='net.odbogm.security.UserSID';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'UserSID') where name = 'name';
if ($exist.size()=0) {
create property UserSID.name STRING;
}
let exist = select from(select expand(indexes) from metadata:indexmanager) where name = 'UserSID.name';
if ($exist.size()=0) {
create index UserSID.name on UserSID(name) UNIQUE;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'UserSID') where name = 'uuid';
if ($exist.size()=0) {
create property UserSID.uuid STRING;
}
let exist = select from(select expand(indexes) from metadata:indexmanager) where name = 'UserSID.uuid';
if ($exist.size()=0) {
create index UserSID.uuid on UserSID(uuid) UNIQUE;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'UserSID_groups';
if ($exist.size()=0) {
create class UserSID_groups extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'GroupSID';
if ($exist.size() = 0) {
create class GroupSID extends V;
}
alter class GroupSID custom javaClass='net.odbogm.security.GroupSID';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'GroupSID') where name = 'name';
if ($exist.size()=0) {
create property GroupSID.name STRING;
}
let exist = select from(select expand(indexes) from metadata:indexmanager) where name = 'GroupSID.name';
if ($exist.size()=0) {
create index GroupSID.name on GroupSID(name) UNIQUE;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'GroupSID') where name = 'uuid';
if ($exist.size()=0) {
create property GroupSID.uuid STRING;
}
let exist = select from(select expand(indexes) from metadata:indexmanager) where name = 'GroupSID.uuid';
if ($exist.size()=0) {
create index GroupSID.uuid on GroupSID(uuid) UNIQUE;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'GroupSID_participants';
if ($exist.size()=0) {
create class GroupSID_participants extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'GroupSID_addedTo';
if ($exist.size()=0) {
create class GroupSID_addedTo extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SObject';
if ($exist.size() = 0) {
create class SObject extends V;
}
alter class SObject custom javaClass='net.odbogm.security.SObject';
let exist = select from (select expand(classes) from metadata:schema) where name = 'SObject___owner';
if ($exist.size()=0) {
create class SObject___owner extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SObject___acl';
if ($exist.size()=0) {
create class SObject___acl extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SObject___inherit';
if ($exist.size()=0) {
create class SObject___inherit extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SSimpleVertex';
if ($exist.size() = 0) {
create class SSimpleVertex extends SObject;
}
alter class SSimpleVertex custom javaClass='test.SSimpleVertex';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SSimpleVertex') where name = 's';
if ($exist.size()=0) {
create property SSimpleVertex.s STRING;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SSimpleVertex___owner';
if ($exist.size()=0) {
create class SSimpleVertex___owner extends SObject___owner;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SSimpleVertex___acl';
if ($exist.size()=0) {
create class SSimpleVertex___acl extends SObject___acl;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SSimpleVertex___inherit';
if ($exist.size()=0) {
create class SSimpleVertex___inherit extends SObject___inherit;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertex';
if ($exist.size() = 0) {
create class SimpleVertex extends V;
}
alter class SimpleVertex custom javaClass='test.SimpleVertex';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'uuid';
if ($exist.size()=0) {
create property SimpleVertex.uuid STRING;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 's';
if ($exist.size()=0) {
create property SimpleVertex.s STRING;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'i';
if ($exist.size()=0) {
create property SimpleVertex.i INTEGER;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'f';
if ($exist.size()=0) {
create property SimpleVertex.f FLOAT;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'b';
if ($exist.size()=0) {
create property SimpleVertex.b BOOLEAN;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'fecha';
if ($exist.size()=0) {
create property SimpleVertex.fecha DATETIME;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'serial';
if ($exist.size()=0) {
create property SimpleVertex.serial LONG;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'oI';
if ($exist.size()=0) {
create property SimpleVertex.oI INTEGER;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'oF';
if ($exist.size()=0) {
create property SimpleVertex.oF FLOAT;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertex') where name = 'oB';
if ($exist.size()=0) {
create property SimpleVertex.oB BOOLEAN;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexInterfaceAttr';
if ($exist.size() = 0) {
create class SimpleVertexInterfaceAttr extends SimpleVertex;
}
alter class SimpleVertexInterfaceAttr custom javaClass='test.SimpleVertexInterfaceAttr';
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexInterfaceAttr_itest';
if ($exist.size()=0) {
create class SimpleVertexInterfaceAttr_itest extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexInterfaceAttr_iList';
if ($exist.size()=0) {
create class SimpleVertexInterfaceAttr_iList extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexWithEmbedded';
if ($exist.size() = 0) {
create class SimpleVertexWithEmbedded extends V;
}
alter class SimpleVertexWithEmbedded custom javaClass='test.SimpleVertexWithEmbedded';
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexWithEmbedded_stringlist';
if ($exist.size()=0) {
create class SimpleVertexWithEmbedded_stringlist extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexWithEmbedded_simplemap';
if ($exist.size()=0) {
create class SimpleVertexWithEmbedded_simplemap extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexWithImplement';
if ($exist.size() = 0) {
create class SimpleVertexWithImplement extends SimpleVertex;
}
alter class SimpleVertexWithImplement custom javaClass='test.SimpleVertexWithImplement';
let exist = select from (select expand(classes) from metadata:schema) where name = 'FooNode';
if ($exist.size() = 0) {
create class FooNode extends V;
}
alter class FooNode custom javaClass='test.Foo';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'FooNode') where name = 'text';
if ($exist.size()=0) {
create property FooNode.text STRING;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'FooNode_lsve';
if ($exist.size()=0) {
create class FooNode_lsve extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'Enums';
if ($exist.size() = 0) {
create class Enums extends V;
}
alter class Enums custom javaClass='test.Enums';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'Enums') where name = 'description';
if ($exist.size()=0) {
create property Enums.description STRING;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'Enums') where name = 'theEnum';
if ($exist.size()=0) {
create property Enums.theEnum string;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'Enums') where name = 'enums';
if ($exist.size()=0) {
create property Enums.enums embeddedlist;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'Enums_enumToString';
if ($exist.size()=0) {
create class Enums_enumToString extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'Enums_stringToEnum';
if ($exist.size()=0) {
create class Enums_stringToEnum extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx';
if ($exist.size() = 0) {
create class SimpleVertexEx extends SimpleVertex;
}
alter class SimpleVertexEx custom javaClass='test.SimpleVertexEx';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx') where name = 'svex';
if ($exist.size()=0) {
create property SimpleVertexEx.svex STRING;
}
alter property SimpleVertexEx.svex mandatory TRUE;
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_looptest';
if ($exist.size()=0) {
create class SimpleVertexEx_looptest extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_eagerTest';
if ($exist.size()=0) {
create class SimpleVertexEx_eagerTest extends E;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx') where name = 'enumTest';
if ($exist.size()=0) {
create property SimpleVertexEx.enumTest string;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx') where name = 'svuuid';
if ($exist.size()=0) {
create property SimpleVertexEx.svuuid STRING;
}
let exist = select from(select expand(indexes) from metadata:indexmanager) where name = 'SimpleVertexEx.svuuid';
if ($exist.size()=0) {
create index SimpleVertexEx.svuuid on SimpleVertexEx(svuuid) UNIQUE;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_svinner';
if ($exist.size()=0) {
create class SimpleVertexEx_svinner extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_alString';
if ($exist.size()=0) {
create class SimpleVertexEx_alString extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_hmString';
if ($exist.size()=0) {
create class SimpleVertexEx_hmString extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_alSV';
if ($exist.size()=0) {
create class SimpleVertexEx_alSV extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_lSV';
if ($exist.size()=0) {
create class SimpleVertexEx_lSV extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_alSVE';
if ($exist.size()=0) {
create class SimpleVertexEx_alSVE extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_hmSV';
if ($exist.size()=0) {
create class SimpleVertexEx_hmSV extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_hmSVE';
if ($exist.size()=0) {
create class SimpleVertexEx_hmSVE extends E;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SimpleVertexEx_ohmSVE';
if ($exist.size()=0) {
create class SimpleVertexEx_ohmSVE extends EdgeAttrib;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild';
if ($exist.size() = 0) {
create class SVExChild extends SimpleVertexEx;
}
alter class SVExChild custom javaClass='test.SVExChild';
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_looptest';
if ($exist.size()=0) {
create class SVExChild_looptest extends SimpleVertexEx_looptest;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_svinner';
if ($exist.size()=0) {
create class SVExChild_svinner extends SimpleVertexEx_svinner;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_alString';
if ($exist.size()=0) {
create class SVExChild_alString extends SimpleVertexEx_alString;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_hmString';
if ($exist.size()=0) {
create class SVExChild_hmString extends SimpleVertexEx_hmString;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_alSV';
if ($exist.size()=0) {
create class SVExChild_alSV extends SimpleVertexEx_alSV;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_lSV';
if ($exist.size()=0) {
create class SVExChild_lSV extends SimpleVertexEx_lSV;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_alSVE';
if ($exist.size()=0) {
create class SVExChild_alSVE extends SimpleVertexEx_alSVE;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_hmSV';
if ($exist.size()=0) {
create class SVExChild_hmSV extends SimpleVertexEx_hmSV;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_hmSVE';
if ($exist.size()=0) {
create class SVExChild_hmSVE extends SimpleVertexEx_hmSVE;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SVExChild_ohmSVE';
if ($exist.size()=0) {
create class SVExChild_ohmSVE extends EdgeAttrib;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'Serial';
if ($exist.size() = 0) {
create class Serial extends V;
}
alter class Serial custom javaClass='test.Serial';
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'Serial') where name = 's1';
if ($exist.size()=0) {
create property Serial.s1 LONG;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'Serial') where name = 's2';
if ($exist.size()=0) {
create property Serial.s2 LONG;
}
create sequence test_sequence type ordered;
let exist = select from (select expand(classes) from metadata:schema) where name = 'Secure';
if ($exist.size() = 0) {
create class Secure extends SObject;
}
alter class Secure custom javaClass='test.Secure';
let exist = select from (select expand(classes) from metadata:schema) where name = 'Secure_subs';
if ($exist.size()=0) {
create class Secure_subs extends E;
}
let exist = select from (select expand(properties) from (select expand(classes) from metadata:schema) where name = 'Secure') where name = 's';
if ($exist.size()=0) {
create property Secure.s STRING;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'Secure___owner';
if ($exist.size()=0) {
create class Secure___owner extends SObject___owner;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'Secure___inherit';
if ($exist.size()=0) {
create class Secure___inherit extends SObject___inherit;
}
let exist = select from (select expand(classes) from metadata:schema) where name = 'SubSecure';
if ($exist.size() = 0) {
create class SubSecure extends V;
}
alter class SubSecure custom javaClass='test.SubSecure';
let exist = select from (select expand(classes) from metadata:schema) where name = 'SubSecure_aList';
if ($exist.size()=0) {
create class SubSecure_aList extends E;
}
end