-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcontainerLevelConfig.json
More file actions
510 lines (506 loc) · 17.2 KB
/
containerLevelConfig.json
File metadata and controls
510 lines (506 loc) · 17.2 KB
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
/*
* Copyright © 2016-2021 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
In order to define custom properties for any object's properties pane, you may copy/paste from the following,
making sure that you maintain a proper JSON format.
{
"propertyName": "Simple text",
"propertyKeyword": "simpletextProp",
"propertyType": "text",
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Text area",
"propertyKeyword": "textareaProp",
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Dropdown selection",
"propertyKeyword": "dropdownProp",
"propertyTooltip": "Select from list of options",
"propertyType": "select",
"options": [
"Option 1",
"Option 2",
"Option 3",
"Option 4"
]
},
{
"propertyName": "Numeric",
"propertyKeyword": "numericProp",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false,
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Checkbox",
"propertyKeyword": "checkboxProp",
"propertyType": "checkbox"
},
{
"propertyName": "Group",
"propertyType": "group",
"propertyKeyword": "grpProp",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
},
// “groupInput” can have the following states - 0 items, 1 item, and many items.
// “blockInput” has only 2 states - 0 items or 1 item.
// This gives us an easy way to represent it as an object and not as an array internally which is beneficial for processing
// and forward-engineering in particular.
{
"propertyName": "Block",
"propertyType": "block",
"propertyKeyword": "grpProp",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
},
{
"propertyName": "Field List",
"propertyKeyword": "keyList",
"propertyType": "fieldList",
"template": "orderedList"
},
{
"propertyName": "List with attribute",
"propertyKeyword": "keyListOrder",
"propertyType": "fieldList",
"template": "orderedList",
"attributeList": [
"ascending",
"descending"
]
}
*/
[
{
"lowerTab": "Details",
"structure": [
{
"propertyName": "If not exists",
"propertyKeyword": "ifNotExist",
"propertyType": "checkbox"
},
{
"propertyName": "Custom scripts",
"propertyType": "block",
"propertyKeyword": "customScripts",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Before CREATE SCHEMA",
"propertyKeyword": "beforeCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After CREATE SCHEMA",
"propertyKeyword": "afterCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE TABLE",
"propertyKeyword": "beforeCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE TABLE",
"propertyKeyword": "afterCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE VIEW",
"propertyKeyword": "beforeCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE VIEW",
"propertyKeyword": "afterCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
}
]
},
{
"propertyName": "Annotations",
"propertyKeyword": "schemaAnnotations",
"propertyTooltip": "An individual annotation has a name and an optional value. Both the name and the value are freeform text fields. Annotations are additive, meaning that multiple annotations can be specified for the same schema object in a single DDL.",
"propertyType": "group",
"structure": [
{
"propertyName": "Name",
"propertyKeyword": "annotationName",
"propertyTooltip": "An identifier that can have up to 1024 characters. If the annotation name is a reserved word it must be provided in double quotes. When a double quoted identifier is used, the identifier can also contain whitespace characters",
"propertyType": "text",
"validation": {
"regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,1024}[^\\.,\\-=/:\\s]$"
}
},
{
"propertyName": "Value",
"propertyKeyword": "annotationValue",
"propertyTooltip": "The value of the annotation is optionsal. Value can have a maximum of 4000 characters.",
"propertyType": "details",
"template": "textarea",
"markdown": false,
"validation": {
"regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,4000}[^\\.,\\-=/:\\s]$"
}
}
],
"dependency": {
"type": "not",
"values": [
{
"level": "model",
"key": "dbVersion",
"value": "12c"
},
{
"level": "model",
"key": "dbVersion",
"value": "18c"
}
]
}
},
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Authorization",
"propertyKeyword": "authorization",
"propertyType": "checkbox"
},
{
"propertyName": "Grant statement",
"propertyKeyword": "grant_statement",
"propertyTooltip": "Use this clause to grant object privileges on objects you own to other users.",
"propertyType": "details",
"template": "textarea"
}
],
"containerLevelKeys": []
},
{
"lowerTab": "Synonyms",
"structure": [
{
"propertyName": "Synonyms",
"propertyType": "group",
"propertyKeyword": "synonyms",
"shouldValidate": false,
"propertyTooltip": "",
"structure": [
{
"propertyName": "Name",
"propertyKeyword": "synonymName",
"propertyType": "text",
"requiredProperty": true
},
{
"propertyName": "Public",
"propertyKeyword": "synonymPublic",
"propertyTooltip": "Make the synonym PUBLIC so that it can be accessed by users from PUBLIC group.",
"propertyType": "checkbox",
"defaultValue": false
},
{
"propertyName": "Or replace",
"propertyKeyword": "synonymOrReplace",
"propertyTooltip": "Replace the synonym if it already exists.",
"propertyType": "checkbox",
"defaultValue": false
},
{
"propertyName": "Editionable",
"propertyKeyword": "synonymEditionable",
"propertyTooltip": "",
"propertyType": "select",
"defaultValue": "",
"options": ["", "EDITIONABLE", "NONEDITIONABLE"]
},
{
"propertyName": "Entity",
"propertyKeyword": "synonymEntityId",
"propertyTooltip": "Chose entity to create synonym for",
"propertyType": "selecthashed",
"fieldParentCategory": "collection",
"template": ["entities", "views", "definitions"],
"withEmptyOption": true,
"selectedBucketEntitiesOnly": true,
"requiredProperty": true
}
]
}
]
},
{
"lowerTab": "Sequences",
"structure": [
{
"propertyName": "Sequences",
"propertyType": "group",
"propertyKeyword": "sequences",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Sequence name",
"propertyKeyword": "sequenceName",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "If not exists",
"propertyKeyword": "ifNotExist",
"propertyTooltip": "Do not throw an error if a relation with the same name already exists. A notice is issued in this case. Note that there is no guarantee that the existing relation is anything like the sequence that would have been created — it might not even be a sequence.",
"propertyType": "checkbox"
},
{
"propertyName": "Type",
"propertyKeyword": "type",
"propertyTooltip": "Specify session if you want to sequence returns a unique range of sequence numbers only within a session, or global to create a regular sequence.",
"propertyType": "select",
"options": ["", "global", "session"]
},
{
"propertyName": "Sharing",
"propertyKeyword": "sharing",
"propertyTooltip": "If you omit this clause, then the database uses the value of the DEFAULT_SHARING initialization parameter to determine the sharing attribute of the sequence. A metadata link shares the sequence’s metadata, but its data is unique to each container. A data link shares the sequence, and its data is the same for all containers in the application container. If None, the sequence is not shared.",
"propertyType": "select",
"options": ["", "metadata", "data", "none"]
},
{
"propertyName": "Start with",
"propertyKeyword": "start",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Allows the sequence to begin anywhere. The default starting value is minvalue for ascending sequences and maxvalue for descending ones."
},
{
"propertyName": "Increment by",
"propertyKeyword": "increment",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "The data type determines the default minimum and maximum values of the sequence."
},
{
"propertyName": "Min value",
"propertyKeyword": "minValue",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Determines the minimum value a sequence can generate. If this clause is not supplied is specified, then defaults will be used. The default for an ascending sequence is 1. The default for a descending sequence is the minimum value of the data type."
},
{
"propertyName": "Max value",
"propertyKeyword": "maxValue",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Determines the maximum value for the sequence. If this clause is not supplied is specified, then default values will be used. The default for an ascending sequence is the maximum value of the data type. The default for a descending sequence is -1."
},
{
"propertyName": "Cycle",
"propertyKeyword": "cycle",
"propertyTooltip": "Specify CYCLE to indicate that the sequence continues to generate values after reaching either its maximum or minimum value. Specify NOCYCLE to indicate that the sequence cannot generate more values after reaching its maximum or minimum value. This is the default.",
"propertyType": "select",
"options": ["", "cycle", "nocycle"]
},
{
"propertyName": "Cache",
"propertyKeyword": "cache",
"propertyTooltip": "Specify how many values of the sequence the database preallocates and keeps in memory for faster access. Specify NOCACHE to indicate that values of the sequence are not preallocated. If you omit both CACHE and NOCACHE, then the database caches 20 sequence numbers by default.",
"propertyType": "select",
"options": ["", "cache", "nocache"]
},
{
"propertyName": "Cache value",
"propertyKeyword": "cacheValue",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "This integer value can have 28 or fewer digits. The minimum value for this parameter is 2.",
"minValue": 2,
"dependency": {
"key": "cache",
"value": "cache"
}
},
{
"propertyName": "Order",
"propertyKeyword": "order",
"propertyTooltip": "Specify ORDER to guarantee that sequence numbers are generated in order of request. Specify NOORDER if you do not want to guarantee sequence numbers are generated in order of request. This is the default.",
"propertyType": "select",
"options": ["", "order", "noorder"]
},
{
"propertyName": "Keep",
"propertyKeyword": "keep",
"propertyTooltip": "Specify KEEP if you want NEXTVAL to retain its original value during replay for Application Continuity. Specify NOKEEP if you do not want NEXTVAL to retain its original value during replay for Application Continuity. This is the default.",
"propertyType": "select",
"options": ["", "keep", "nokeep"]
},
{
"propertyName": "Scale",
"propertyKeyword": "scale",
"propertyTooltip": "When you use SCALE it is highly recommended that you not use ORDER simultaneously on the sequence. Use SCALE to enable sequence scalability. When SCALE is specified, a numeric offset is affixed to the beginning of the sequence which removes all duplicates in generated values.",
"propertyType": "select",
"options": ["", "scale", "noscale"]
},
{
"propertyName": "Scale extend",
"propertyKeyword": "scaleExtend",
"propertyTooltip": "If you specify EXTEND with SCALE the generated sequence values are all of length (x+y), where x is the length of the scalable offset (default value is 6), and y is the maximum number of digits in the sequence (maxvalue/minvalue). With the NOEXTEND setting, the generated sequence values are at most as wide as the maximum number of digits in the sequence (maxvalue/minvalue). This setting is useful for integration with existing applications where sequences are used to populate fixed width columns.",
"propertyType": "select",
"options": ["", "extend", "noextend"],
"dependency": {
"key": "scale",
"value": "scale"
}
},
{
"propertyName": "Shard",
"propertyKeyword": "shard",
"propertyTooltip": "The sequence object is created as a global, all-shards sharded object that returns unique sequence values across all shards.",
"propertyType": "select",
"options": ["", "shard", "noshard"]
},
{
"propertyName": "Shard extend",
"propertyKeyword": "shardExtend",
"propertyTooltip": "When you specify EXTEND with the SHARD clause, the generated sequence values are all of length (x + y), where x is the length of an(a) SHARD offset of size 4. When you specify NOEXTEND, the generated sequence values are at most as wide as the maximum number of digits in the sequence maxvalue/minvalue. ",
"propertyType": "select",
"options": ["", "extend", "noextend"],
"dependency": {
"key": "shard",
"value": "shard"
}
}
]
}
]
}
]