@vinctus/oql 1.1.21 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/main.js +804 -510
- package/main.js.map +3 -3
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -1232,28 +1232,38 @@ function $p_Lcom_vinctus_oql_AbstractOQL__buildResult$1__T__F0__Lcom_vinctus_oql
|
|
|
1232
1232
|
var _2 = $n(v).value__O();
|
|
1233
1233
|
if (((typeof _2) === "string")) {
|
|
1234
1234
|
var x71 = $as_T(_2);
|
|
1235
|
-
|
|
1236
|
-
|
|
1235
|
+
matchAlts1: {
|
|
1236
|
+
matchAlts2: {
|
|
1237
|
+
var x = $m_Lcom_vinctus_oql_SmallintType$();
|
|
1238
|
+
if ((x === typ)) {
|
|
1239
|
+
break matchAlts2
|
|
1240
|
+
};
|
|
1241
|
+
var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
1242
|
+
if ((x$3 === typ)) {
|
|
1243
|
+
break matchAlts2
|
|
1244
|
+
};
|
|
1245
|
+
break matchAlts1
|
|
1246
|
+
};
|
|
1237
1247
|
$m_sc_StringOps$();
|
|
1238
1248
|
var this$22 = $m_jl_Integer$();
|
|
1239
1249
|
return this$22.parseInt__T__I__I(x71, 10)
|
|
1240
1250
|
};
|
|
1241
|
-
var x$
|
|
1242
|
-
if ((x$
|
|
1251
|
+
var x$5 = $m_Lcom_vinctus_oql_FloatType$();
|
|
1252
|
+
if ((x$5 === typ)) {
|
|
1243
1253
|
$m_sc_StringOps$();
|
|
1244
1254
|
return $m_jl_Double$().parseDouble__T__D(x71)
|
|
1245
1255
|
};
|
|
1246
|
-
var x$
|
|
1247
|
-
if ((x$
|
|
1256
|
+
var x$7 = $m_Lcom_vinctus_oql_BigintType$();
|
|
1257
|
+
if ((x$7 === typ)) {
|
|
1248
1258
|
return $n($thiz.Lcom_vinctus_oql_AbstractOQL__f_conv).bigint__T__O(x71)
|
|
1249
1259
|
};
|
|
1250
|
-
var x$
|
|
1251
|
-
if ((x$
|
|
1260
|
+
var x$9 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
1261
|
+
if ((x$9 === typ)) {
|
|
1252
1262
|
$n($thiz.Lcom_vinctus_oql_AbstractOQL__f_conv);
|
|
1253
1263
|
return x71
|
|
1254
1264
|
};
|
|
1255
|
-
var x$
|
|
1256
|
-
if ((x$
|
|
1265
|
+
var x$11 = $m_Lcom_vinctus_oql_TimestampType$();
|
|
1266
|
+
if ((x$11 === typ)) {
|
|
1257
1267
|
return $n($thiz.Lcom_vinctus_oql_AbstractOQL__f_conv).timestamp__T__O(x71)
|
|
1258
1268
|
};
|
|
1259
1269
|
if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
|
|
@@ -1269,8 +1279,8 @@ function $p_Lcom_vinctus_oql_AbstractOQL__buildResult$1__T__F0__Lcom_vinctus_oql
|
|
|
1269
1279
|
var x$1$2 = $as_Lcom_vinctus_oql_NodePGResultSetValue(v);
|
|
1270
1280
|
var this$30 = $n(x$1$2);
|
|
1271
1281
|
var x43 = this$30.Lcom_vinctus_oql_NodePGResultSetValue__f_value;
|
|
1272
|
-
var x$
|
|
1273
|
-
if ((x$
|
|
1282
|
+
var x$13 = $m_Lcom_vinctus_oql_JSONType$();
|
|
1283
|
+
if ((x$13 === typ)) {
|
|
1274
1284
|
$n($thiz.Lcom_vinctus_oql_AbstractOQL__f_conv);
|
|
1275
1285
|
return x43
|
|
1276
1286
|
}
|
|
@@ -1279,8 +1289,8 @@ function $p_Lcom_vinctus_oql_AbstractOQL__buildResult$1__T__F0__Lcom_vinctus_oql
|
|
|
1279
1289
|
var x$1$3 = $as_Lcom_vinctus_oql_SequenceResultSetValue(v);
|
|
1280
1290
|
var this$33 = $n(x$1$3);
|
|
1281
1291
|
var x37 = this$33.Lcom_vinctus_oql_SequenceResultSetValue__f_value;
|
|
1282
|
-
var x$
|
|
1283
|
-
if ((x$
|
|
1292
|
+
var x$15 = $m_Lcom_vinctus_oql_JSONType$();
|
|
1293
|
+
if ((x$15 === typ)) {
|
|
1284
1294
|
$n($thiz.Lcom_vinctus_oql_AbstractOQL__f_conv);
|
|
1285
1295
|
return $m_Lcom_vinctus_sjs\uff3futils_package$().toJS__O__sjs_js_Any(x37)
|
|
1286
1296
|
}
|
|
@@ -1994,16 +2004,16 @@ $c_Lcom_vinctus_oql_AbstractOQL$.prototype.decorate__Lcom_vinctus_oql_Entity__Lc
|
|
|
1994
2004
|
$n(x140).Lcom_vinctus_oql_OQLExpression__f_typ = x143;
|
|
1995
2005
|
return (void 0)
|
|
1996
2006
|
};
|
|
1997
|
-
|
|
1998
|
-
|
|
2007
|
+
matchAlts3: {
|
|
2008
|
+
matchAlts4: {
|
|
1999
2009
|
var x$5 = $m_Lcom_vinctus_oql_StarOQLExpression$();
|
|
2000
2010
|
if ((x$5 === expr)) {
|
|
2001
|
-
break
|
|
2011
|
+
break matchAlts4
|
|
2002
2012
|
};
|
|
2003
2013
|
if ((expr instanceof $c_Lcom_vinctus_oql_RawOQLExpression)) {
|
|
2004
|
-
break
|
|
2014
|
+
break matchAlts4
|
|
2005
2015
|
};
|
|
2006
|
-
break
|
|
2016
|
+
break matchAlts3
|
|
2007
2017
|
};
|
|
2008
2018
|
return (void 0)
|
|
2009
2019
|
};
|
|
@@ -3030,10 +3040,10 @@ function $p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__
|
|
|
3030
3040
|
var this$11 = $n(x$1$3);
|
|
3031
3041
|
var this$12 = $n(x$1$3);
|
|
3032
3042
|
var this$13 = $n(x$1$3);
|
|
3033
|
-
var
|
|
3043
|
+
var x271 = this$13.Lcom_vinctus_oql_Attribute__f_pk;
|
|
3034
3044
|
var this$14 = $n(x$1$3);
|
|
3035
3045
|
var this$15 = $n(x$1$3);
|
|
3036
|
-
return (!
|
|
3046
|
+
return (!x271)
|
|
3037
3047
|
};
|
|
3038
3048
|
throw new $c_s_MatchError(x$1$3)
|
|
3039
3049
|
})))).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$3$1) => {
|
|
@@ -3041,28 +3051,28 @@ function $p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__
|
|
|
3041
3051
|
matchResult31: {
|
|
3042
3052
|
if ((x$1$4 !== null)) {
|
|
3043
3053
|
var this$18 = $n(x$1$4);
|
|
3044
|
-
var
|
|
3054
|
+
var x280 = this$18.Lcom_vinctus_oql_Attribute__f_name;
|
|
3045
3055
|
var this$19 = $n(x$1$4);
|
|
3046
3056
|
var this$20 = $n(x$1$4);
|
|
3047
3057
|
var this$21 = $n(x$1$4);
|
|
3048
|
-
var
|
|
3058
|
+
var x283 = this$21.Lcom_vinctus_oql_Attribute__f_required;
|
|
3049
3059
|
var this$22 = $n(x$1$4);
|
|
3050
|
-
var
|
|
3051
|
-
if ((
|
|
3052
|
-
var x$1$5 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3060
|
+
var x284 = this$22.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3061
|
+
if ((x284 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3062
|
+
var x$1$5 = $as_Lcom_vinctus_oql_ManyToOneType(x284);
|
|
3053
3063
|
var this$24 = $n(x$1$5);
|
|
3054
|
-
var
|
|
3064
|
+
var x277 = this$24.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3055
3065
|
var this$25 = $n(ents);
|
|
3056
3066
|
var newents = new $c_sci_$colon$colon(entity, this$25);
|
|
3057
|
-
if ((!newents.contains__O__Z(
|
|
3058
|
-
if ((!
|
|
3067
|
+
if ((!newents.contains__O__Z(x277))) {
|
|
3068
|
+
if ((!x283)) {
|
|
3059
3069
|
var this$27 = $n(nullablesbuf$1);
|
|
3060
3070
|
var this$26 = $n(attrs);
|
|
3061
|
-
var elem$2 = new $c_sci_$colon$colon(
|
|
3071
|
+
var elem$2 = new $c_sci_$colon$colon(x280, this$26).reverse__sci_List();
|
|
3062
3072
|
this$27.addOne__O__scm_ListBuffer(elem$2)
|
|
3063
3073
|
};
|
|
3064
3074
|
var this$28 = $n(attrs);
|
|
3065
|
-
$p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__sci_List__sci_List__Lcom_vinctus_oql_Entity__V($thiz, idsbuf$1, nullablesbuf$1, new $c_sci_$colon$colon(
|
|
3075
|
+
$p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__sci_List__sci_List__Lcom_vinctus_oql_Entity__V($thiz, idsbuf$1, nullablesbuf$1, new $c_sci_$colon$colon(x280, this$28), newents, x277)
|
|
3066
3076
|
}
|
|
3067
3077
|
};
|
|
3068
3078
|
break matchResult31
|
|
@@ -3077,30 +3087,30 @@ function $ps_Lcom_vinctus_oql_DataModel__lookup$1__Lcom_vinctus_oql_OQLExpressio
|
|
|
3077
3087
|
var ids$tailLocal1 = ids;
|
|
3078
3088
|
while (true) {
|
|
3079
3089
|
matchResult34: {
|
|
3080
|
-
var
|
|
3081
|
-
if ((
|
|
3090
|
+
var x302 = ids$tailLocal1;
|
|
3091
|
+
if ((x302 !== null)) {
|
|
3082
3092
|
$n($m_s_package$().s_package$__f_List);
|
|
3083
|
-
if (($n(
|
|
3084
|
-
var this$4 = $n(
|
|
3085
|
-
var
|
|
3093
|
+
if (($n(x302).lengthCompare__I__I(1) === 0)) {
|
|
3094
|
+
var this$4 = $n(x302);
|
|
3095
|
+
var x307 = $as_Lcom_vinctus_oql_Ident($f_sc_LinearSeqOps__apply__I__O(this$4, 0));
|
|
3086
3096
|
matchResult32: {
|
|
3087
|
-
var
|
|
3088
|
-
if ((
|
|
3089
|
-
var attr = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(
|
|
3097
|
+
var x285 = $n($n(entity$tailLocal1).attributes__sci_Map()).get__O__s_Option($n(x307).Lcom_vinctus_oql_Ident__f_s);
|
|
3098
|
+
if ((x285 instanceof $c_s_Some)) {
|
|
3099
|
+
var attr = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x285)).s_Some__f_value);
|
|
3090
3100
|
var this$7 = $n(dmrefs$1);
|
|
3091
3101
|
var self = entity$tailLocal1;
|
|
3092
3102
|
var elem = new $c_T2(self, attr);
|
|
3093
3103
|
this$7.addOne__O__scm_ListBuffer(elem);
|
|
3094
3104
|
if (ref$1) {
|
|
3095
3105
|
if ((!($n(attr).Lcom_vinctus_oql_Attribute__f_typ instanceof $c_Lcom_vinctus_oql_ManyToOneType))) {
|
|
3096
|
-
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(
|
|
3106
|
+
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(x307).Lcom_vinctus_oql_Ident__f_pos, (("attribute '" + $n(x307).Lcom_vinctus_oql_Ident__f_s) + "' is not many-to-one"), input$1)
|
|
3097
3107
|
};
|
|
3098
3108
|
var $$x1 = $n(expr$1);
|
|
3099
3109
|
var this$8 = $n($n($as_Lcom_vinctus_oql_Attribute($n($n($n($as_Lcom_vinctus_oql_ManyToOneType($n(attr).Lcom_vinctus_oql_Attribute__f_typ)).Lcom_vinctus_oql_ManyToOneType__f_entity).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_typ);
|
|
3100
3110
|
$$x1.Lcom_vinctus_oql_OQLExpression__f_typ = $as_Lcom_vinctus_oql_Datatype(this$8)
|
|
3101
3111
|
} else {
|
|
3102
3112
|
if ((!$n($n(attr).Lcom_vinctus_oql_Attribute__f_typ).isDataType__Z())) {
|
|
3103
|
-
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(
|
|
3113
|
+
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(x307).Lcom_vinctus_oql_Ident__f_pos, (("attribute '" + $n(x307).Lcom_vinctus_oql_Ident__f_s) + "' is not a DBMS data type"), input$1)
|
|
3104
3114
|
};
|
|
3105
3115
|
var $$x2 = $n(expr$1);
|
|
3106
3116
|
var this$9 = $n($n(attr).Lcom_vinctus_oql_Attribute__f_typ);
|
|
@@ -3109,50 +3119,50 @@ function $ps_Lcom_vinctus_oql_DataModel__lookup$1__Lcom_vinctus_oql_OQLExpressio
|
|
|
3109
3119
|
break matchResult32
|
|
3110
3120
|
};
|
|
3111
3121
|
var x = $m_s_None$();
|
|
3112
|
-
if ((x ===
|
|
3113
|
-
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(
|
|
3122
|
+
if ((x === x285)) {
|
|
3123
|
+
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(x307).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n(entity$tailLocal1).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(x307).Lcom_vinctus_oql_Ident__f_s) + "'"), input$1)
|
|
3114
3124
|
};
|
|
3115
|
-
throw new $c_s_MatchError(
|
|
3125
|
+
throw new $c_s_MatchError(x285)
|
|
3116
3126
|
};
|
|
3117
3127
|
break matchResult34
|
|
3118
3128
|
}
|
|
3119
3129
|
};
|
|
3120
|
-
if ((
|
|
3121
|
-
var
|
|
3122
|
-
var
|
|
3123
|
-
var head = $as_Lcom_vinctus_oql_Ident($n(
|
|
3124
|
-
var
|
|
3125
|
-
if ((
|
|
3126
|
-
var
|
|
3127
|
-
if ((
|
|
3128
|
-
var this$11 = $n(
|
|
3129
|
-
var this$12 = $n(
|
|
3130
|
-
var this$13 = $n(
|
|
3131
|
-
var this$14 = $n(
|
|
3132
|
-
var this$15 = $n(
|
|
3133
|
-
var
|
|
3134
|
-
if ((
|
|
3135
|
-
var x$1 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3130
|
+
if ((x302 instanceof $c_sci_$colon$colon)) {
|
|
3131
|
+
var x303 = $as_sci_$colon$colon(x302);
|
|
3132
|
+
var x305 = $n(x303).sci_$colon$colon__f_next;
|
|
3133
|
+
var head = $as_Lcom_vinctus_oql_Ident($n(x303).sci_$colon$colon__f_head);
|
|
3134
|
+
var x288 = $n($n(entity$tailLocal1).attributes__sci_Map()).get__O__s_Option($n(head).Lcom_vinctus_oql_Ident__f_s);
|
|
3135
|
+
if ((x288 instanceof $c_s_Some)) {
|
|
3136
|
+
var x292 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x288)).s_Some__f_value);
|
|
3137
|
+
if ((x292 !== null)) {
|
|
3138
|
+
var this$11 = $n(x292);
|
|
3139
|
+
var this$12 = $n(x292);
|
|
3140
|
+
var this$13 = $n(x292);
|
|
3141
|
+
var this$14 = $n(x292);
|
|
3142
|
+
var this$15 = $n(x292);
|
|
3143
|
+
var x298 = this$15.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3144
|
+
if ((x298 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3145
|
+
var x$1 = $as_Lcom_vinctus_oql_ManyToOneType(x298);
|
|
3136
3146
|
var this$17 = $n(x$1);
|
|
3137
|
-
var
|
|
3147
|
+
var x301 = this$17.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3138
3148
|
var this$20 = $n(dmrefs$1);
|
|
3139
|
-
var elem$1 = new $c_T2(
|
|
3149
|
+
var elem$1 = new $c_T2(x301, x292);
|
|
3140
3150
|
this$20.addOne__O__scm_ListBuffer(elem$1);
|
|
3141
|
-
ids$tailLocal1 =
|
|
3142
|
-
entity$tailLocal1 =
|
|
3151
|
+
ids$tailLocal1 = x305;
|
|
3152
|
+
entity$tailLocal1 = x301;
|
|
3143
3153
|
continue
|
|
3144
3154
|
}
|
|
3145
3155
|
};
|
|
3146
3156
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(head).Lcom_vinctus_oql_Ident__f_pos, (((("attribute '" + $n(head).Lcom_vinctus_oql_Ident__f_s) + "' of entity '") + $n(entity$tailLocal1).Lcom_vinctus_oql_Entity__f_name) + "' does not have an entity type"), input$1)
|
|
3147
3157
|
};
|
|
3148
3158
|
var x$3 = $m_s_None$();
|
|
3149
|
-
if ((x$3 ===
|
|
3159
|
+
if ((x$3 === x288)) {
|
|
3150
3160
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(head).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n(entity$tailLocal1).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(head).Lcom_vinctus_oql_Ident__f_s) + "'"), input$1)
|
|
3151
3161
|
};
|
|
3152
|
-
throw new $c_s_MatchError(
|
|
3162
|
+
throw new $c_s_MatchError(x288);
|
|
3153
3163
|
break matchResult34
|
|
3154
3164
|
};
|
|
3155
|
-
throw new $c_s_MatchError(
|
|
3165
|
+
throw new $c_s_MatchError(x302)
|
|
3156
3166
|
};
|
|
3157
3167
|
return (void 0)
|
|
3158
3168
|
}
|
|
@@ -3259,35 +3269,56 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3259
3269
|
return false
|
|
3260
3270
|
}
|
|
3261
3271
|
}));
|
|
3262
|
-
var this$
|
|
3272
|
+
var this$79 = $ct_sc_IterableOps$WithFilter__sc_IterableOps__F1__(new $c_sc_IterableOps$WithFilter(), this$13, p);
|
|
3263
3273
|
var f$1 = new $c_sjsr_AnonFunction1(((x$1$2) => {
|
|
3264
3274
|
var x$1$3 = $as_Lcom_vinctus_oql_DataModel$EntityInfo(x$1$2);
|
|
3265
3275
|
matchResult15: {
|
|
3266
3276
|
if ((x$1$3 !== null)) {
|
|
3267
3277
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3268
3278
|
var this$15 = $n(x$1$3);
|
|
3269
|
-
var
|
|
3279
|
+
var x121 = this$15.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3270
3280
|
var this$16 = $n(x$1$3);
|
|
3271
|
-
var
|
|
3281
|
+
var x122 = this$16.Lcom_vinctus_oql_DataModel$EntityInfo__f_dmlattrs;
|
|
3272
3282
|
var this$17 = $n(x$1$3);
|
|
3273
|
-
var
|
|
3283
|
+
var x123 = this$17.Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs;
|
|
3274
3284
|
var elem = $m_s_None$();
|
|
3275
3285
|
var pk = new $c_sr_ObjectRef(elem);
|
|
3276
|
-
$n(
|
|
3286
|
+
$n(x122).foreach__F1__V(new $c_sjsr_AnonFunction1(((a$4) => {
|
|
3277
3287
|
var a$5 = $as_Lcom_vinctus_oql_DMLAttribute(a$4);
|
|
3278
3288
|
matchResult14: {
|
|
3279
3289
|
var $$x2;
|
|
3280
3290
|
var x59 = $n(a$5).Lcom_vinctus_oql_DMLAttribute__f_typ;
|
|
3281
|
-
if ((x59 instanceof $
|
|
3282
|
-
var x$1$4 = $
|
|
3291
|
+
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLParametricDataType)) {
|
|
3292
|
+
var x$1$4 = $as_Lcom_vinctus_oql_DMLParametricDataType(x59);
|
|
3283
3293
|
var this$20 = $n(x$1$4);
|
|
3284
|
-
var
|
|
3285
|
-
|
|
3294
|
+
var x117 = this$20.Lcom_vinctus_oql_DMLParametricDataType__f_typ;
|
|
3295
|
+
var this$21 = $n(x$1$4);
|
|
3296
|
+
var x118 = this$21.Lcom_vinctus_oql_DMLParametricDataType__f_parameters;
|
|
3297
|
+
if ((x117 === "char")) {
|
|
3298
|
+
$m_sc_StringOps$();
|
|
3299
|
+
var x = $as_T($n(x118).head__O());
|
|
3300
|
+
var this$24 = $m_jl_Integer$();
|
|
3301
|
+
var n = this$24.parseInt__T__I__I(x, 10);
|
|
3302
|
+
var $$x2 = new $c_Lcom_vinctus_oql_CharacterType(n);
|
|
3303
|
+
break matchResult14
|
|
3304
|
+
}
|
|
3305
|
+
};
|
|
3306
|
+
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLSimpleDataType)) {
|
|
3307
|
+
var x$1$5 = $as_Lcom_vinctus_oql_DMLSimpleDataType(x59);
|
|
3308
|
+
var this$27 = $n(x$1$5);
|
|
3309
|
+
var x114 = this$27.Lcom_vinctus_oql_DMLSimpleDataType__f_typ;
|
|
3310
|
+
switch (x114) {
|
|
3286
3311
|
case "text": {
|
|
3287
3312
|
var $$x2 = $m_Lcom_vinctus_oql_TextType$();
|
|
3288
3313
|
break matchResult14;
|
|
3289
3314
|
break
|
|
3290
3315
|
}
|
|
3316
|
+
case "smallint":
|
|
3317
|
+
case "int2": {
|
|
3318
|
+
var $$x2 = $m_Lcom_vinctus_oql_SmallintType$();
|
|
3319
|
+
break matchResult14;
|
|
3320
|
+
break
|
|
3321
|
+
}
|
|
3291
3322
|
case "integer":
|
|
3292
3323
|
case "int":
|
|
3293
3324
|
case "int4": {
|
|
@@ -3304,10 +3335,10 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3304
3335
|
default: {
|
|
3305
3336
|
matchAlts3: {
|
|
3306
3337
|
matchAlts4: {
|
|
3307
|
-
if ((
|
|
3338
|
+
if ((x114 === "bigint")) {
|
|
3308
3339
|
break matchAlts4
|
|
3309
3340
|
};
|
|
3310
|
-
if ((
|
|
3341
|
+
if ((x114 === "int8")) {
|
|
3311
3342
|
break matchAlts4
|
|
3312
3343
|
};
|
|
3313
3344
|
break matchAlts3
|
|
@@ -3319,28 +3350,28 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3319
3350
|
}
|
|
3320
3351
|
};
|
|
3321
3352
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLParametricDataType)) {
|
|
3322
|
-
var x$1$
|
|
3323
|
-
var this$
|
|
3324
|
-
var x98 = this$
|
|
3325
|
-
var this$
|
|
3326
|
-
var x99 = this$
|
|
3353
|
+
var x$1$6 = $as_Lcom_vinctus_oql_DMLParametricDataType(x59);
|
|
3354
|
+
var this$29 = $n(x$1$6);
|
|
3355
|
+
var x98 = this$29.Lcom_vinctus_oql_DMLParametricDataType__f_typ;
|
|
3356
|
+
var this$30 = $n(x$1$6);
|
|
3357
|
+
var x99 = this$30.Lcom_vinctus_oql_DMLParametricDataType__f_parameters;
|
|
3327
3358
|
if ((x98 === "decimal")) {
|
|
3328
3359
|
$m_sc_StringOps$();
|
|
3329
|
-
var x = $as_T($n(x99).head__O());
|
|
3330
|
-
var this$
|
|
3331
|
-
var precision = this$
|
|
3360
|
+
var x$2 = $as_T($n(x99).head__O());
|
|
3361
|
+
var this$33 = $m_jl_Integer$();
|
|
3362
|
+
var precision = this$33.parseInt__T__I__I(x$2, 10);
|
|
3332
3363
|
$m_sc_StringOps$();
|
|
3333
|
-
var x$
|
|
3334
|
-
var this$
|
|
3335
|
-
var scale = this$
|
|
3364
|
+
var x$3 = $as_T($n($as_sc_IterableOps($n(x99).tail__O())).head__O());
|
|
3365
|
+
var this$36 = $m_jl_Integer$();
|
|
3366
|
+
var scale = this$36.parseInt__T__I__I(x$3, 10);
|
|
3336
3367
|
var $$x2 = new $c_Lcom_vinctus_oql_DecimalType(precision, scale);
|
|
3337
3368
|
break matchResult14
|
|
3338
3369
|
}
|
|
3339
3370
|
};
|
|
3340
3371
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLSimpleDataType)) {
|
|
3341
|
-
var x$1$
|
|
3342
|
-
var this$
|
|
3343
|
-
var x95 = this$
|
|
3372
|
+
var x$1$7 = $as_Lcom_vinctus_oql_DMLSimpleDataType(x59);
|
|
3373
|
+
var this$39 = $n(x$1$7);
|
|
3374
|
+
var x95 = this$39.Lcom_vinctus_oql_DMLSimpleDataType__f_typ;
|
|
3344
3375
|
switch (x95) {
|
|
3345
3376
|
case "date": {
|
|
3346
3377
|
var $$x2 = $m_Lcom_vinctus_oql_DateType$();
|
|
@@ -3382,24 +3413,24 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3382
3413
|
}
|
|
3383
3414
|
};
|
|
3384
3415
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLNameType)) {
|
|
3385
|
-
var x$1$
|
|
3386
|
-
var this$
|
|
3387
|
-
var x74 = this$
|
|
3416
|
+
var x$1$8 = $as_Lcom_vinctus_oql_DMLNameType(x59);
|
|
3417
|
+
var this$41 = $n(x$1$8);
|
|
3418
|
+
var x74 = this$41.Lcom_vinctus_oql_DMLNameType__f_entity;
|
|
3388
3419
|
var x21 = entities.get__O__s_Option($n(x74).Lcom_vinctus_oql_Ident__f_s);
|
|
3389
3420
|
if ((x21 instanceof $c_s_Some)) {
|
|
3390
3421
|
var x23 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($n($as_s_Some(x21)).s_Some__f_value);
|
|
3391
3422
|
if ((x23 !== null)) {
|
|
3392
3423
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3393
|
-
var this$
|
|
3394
|
-
var x25 = this$
|
|
3395
|
-
var this$
|
|
3396
|
-
var this$
|
|
3424
|
+
var this$43 = $n(x23);
|
|
3425
|
+
var x25 = this$43.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3426
|
+
var this$44 = $n(x23);
|
|
3427
|
+
var this$45 = $n(x23);
|
|
3397
3428
|
var $$x2 = new $c_Lcom_vinctus_oql_ManyToOneType(x25);
|
|
3398
3429
|
break matchResult14
|
|
3399
3430
|
}
|
|
3400
3431
|
};
|
|
3401
|
-
var x$
|
|
3402
|
-
if ((x$
|
|
3432
|
+
var x$4 = $m_s_None$();
|
|
3433
|
+
if ((x$4 === x21)) {
|
|
3403
3434
|
var x18 = enums.get__O__s_Option($n(x74).Lcom_vinctus_oql_Ident__f_s);
|
|
3404
3435
|
if ((x18 instanceof $c_s_Some)) {
|
|
3405
3436
|
var e$4 = $as_Lcom_vinctus_oql_EnumType($n($as_s_Some(x18)).s_Some__f_value);
|
|
@@ -3416,19 +3447,19 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3416
3447
|
throw new $c_s_MatchError(x21)
|
|
3417
3448
|
};
|
|
3418
3449
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLOneToOneType)) {
|
|
3419
|
-
var x$1$
|
|
3420
|
-
var this$
|
|
3421
|
-
var x70 = this$
|
|
3422
|
-
var this$
|
|
3450
|
+
var x$1$9 = $as_Lcom_vinctus_oql_DMLOneToOneType(x59);
|
|
3451
|
+
var this$48 = $n(x$1$9);
|
|
3452
|
+
var x70 = this$48.Lcom_vinctus_oql_DMLOneToOneType__f_entity;
|
|
3453
|
+
var this$49 = $n(x$1$9);
|
|
3423
3454
|
var x28 = entities.get__O__s_Option($n(x70).Lcom_vinctus_oql_Ident__f_s);
|
|
3424
3455
|
if ((x28 instanceof $c_s_Some)) {
|
|
3425
3456
|
var x30 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($n($as_s_Some(x28)).s_Some__f_value);
|
|
3426
3457
|
if ((x30 !== null)) {
|
|
3427
3458
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3428
|
-
var this$
|
|
3429
|
-
var x32 = this$
|
|
3430
|
-
var this$
|
|
3431
|
-
var this$
|
|
3459
|
+
var this$51 = $n(x30);
|
|
3460
|
+
var x32 = this$51.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3461
|
+
var this$52 = $n(x30);
|
|
3462
|
+
var this$53 = $n(x30);
|
|
3432
3463
|
var $$x2 = new $c_Lcom_vinctus_oql_OneToOneType(x32, null);
|
|
3433
3464
|
break matchResult14
|
|
3434
3465
|
}
|
|
@@ -3441,19 +3472,19 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3441
3472
|
throw new $c_s_MatchError(x28)
|
|
3442
3473
|
};
|
|
3443
3474
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLOneToManyType)) {
|
|
3444
|
-
var x$1$
|
|
3445
|
-
var this$
|
|
3446
|
-
var x66 = this$
|
|
3447
|
-
var this$
|
|
3475
|
+
var x$1$10 = $as_Lcom_vinctus_oql_DMLOneToManyType(x59);
|
|
3476
|
+
var this$56 = $n(x$1$10);
|
|
3477
|
+
var x66 = this$56.Lcom_vinctus_oql_DMLOneToManyType__f_entity;
|
|
3478
|
+
var this$57 = $n(x$1$10);
|
|
3448
3479
|
var x35 = entities.get__O__s_Option($n(x66).Lcom_vinctus_oql_Ident__f_s);
|
|
3449
3480
|
if ((x35 instanceof $c_s_Some)) {
|
|
3450
3481
|
var x37 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($n($as_s_Some(x35)).s_Some__f_value);
|
|
3451
3482
|
if ((x37 !== null)) {
|
|
3452
3483
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3453
|
-
var this$
|
|
3454
|
-
var x39 = this$
|
|
3455
|
-
var this$
|
|
3456
|
-
var this$
|
|
3484
|
+
var this$59 = $n(x37);
|
|
3485
|
+
var x39 = this$59.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3486
|
+
var this$60 = $n(x37);
|
|
3487
|
+
var this$61 = $n(x37);
|
|
3457
3488
|
var $$x2 = new $c_Lcom_vinctus_oql_OneToManyType(x39, null);
|
|
3458
3489
|
break matchResult14
|
|
3459
3490
|
}
|
|
@@ -3466,29 +3497,29 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3466
3497
|
throw new $c_s_MatchError(x35)
|
|
3467
3498
|
};
|
|
3468
3499
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLManyToManyType)) {
|
|
3469
|
-
var x$1$
|
|
3470
|
-
var this$
|
|
3471
|
-
var x62 = this$
|
|
3472
|
-
var this$
|
|
3473
|
-
var x63 = this$
|
|
3500
|
+
var x$1$11 = $as_Lcom_vinctus_oql_DMLManyToManyType(x59);
|
|
3501
|
+
var this$64 = $n(x$1$11);
|
|
3502
|
+
var x62 = this$64.Lcom_vinctus_oql_DMLManyToManyType__f_entity;
|
|
3503
|
+
var this$65 = $n(x$1$11);
|
|
3504
|
+
var x63 = this$65.Lcom_vinctus_oql_DMLManyToManyType__f_link;
|
|
3474
3505
|
var _1 = entities.get__O__s_Option($n(x62).Lcom_vinctus_oql_Ident__f_s);
|
|
3475
3506
|
var _2 = entities.get__O__s_Option($n(x63).Lcom_vinctus_oql_Ident__f_s);
|
|
3476
3507
|
if ((_1 instanceof $c_s_Some)) {
|
|
3477
3508
|
var x54 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($n($as_s_Some(_1)).s_Some__f_value);
|
|
3478
3509
|
if ((x54 !== null)) {
|
|
3479
3510
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3480
|
-
var this$
|
|
3481
|
-
var x56 = this$
|
|
3482
|
-
var this$
|
|
3483
|
-
var this$
|
|
3511
|
+
var this$68 = $n(x54);
|
|
3512
|
+
var x56 = this$68.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3513
|
+
var this$69 = $n(x54);
|
|
3514
|
+
var this$70 = $n(x54);
|
|
3484
3515
|
if ((_2 instanceof $c_s_Some)) {
|
|
3485
3516
|
var x48 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($n($as_s_Some(_2)).s_Some__f_value);
|
|
3486
3517
|
if ((x48 !== null)) {
|
|
3487
3518
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3488
|
-
var this$
|
|
3489
|
-
var x50 = this$
|
|
3490
|
-
var this$
|
|
3491
|
-
var this$
|
|
3519
|
+
var this$72 = $n(x48);
|
|
3520
|
+
var x50 = this$72.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3521
|
+
var this$73 = $n(x48);
|
|
3522
|
+
var this$74 = $n(x48);
|
|
3492
3523
|
var $$x2 = new $c_Lcom_vinctus_oql_ManyToManyType(x56, x50, null, null);
|
|
3493
3524
|
break matchResult14
|
|
3494
3525
|
}
|
|
@@ -3508,8 +3539,8 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3508
3539
|
};
|
|
3509
3540
|
var typ$4 = $as_Lcom_vinctus_oql_TypeSpecifier($$x2);
|
|
3510
3541
|
var name$2 = $n($n(a$5).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3511
|
-
var this$
|
|
3512
|
-
var column = $n($as_Lcom_vinctus_oql_Ident((this$
|
|
3542
|
+
var this$76 = $n($n(a$5).Lcom_vinctus_oql_DMLAttribute__f_actualName);
|
|
3543
|
+
var column = $n($as_Lcom_vinctus_oql_Ident((this$76.isEmpty__Z() ? $n(a$5).Lcom_vinctus_oql_DMLAttribute__f_name : this$76.get__O()))).Lcom_vinctus_oql_Ident__f_s;
|
|
3513
3544
|
var pk$1 = $n(a$5).Lcom_vinctus_oql_DMLAttribute__f_pk;
|
|
3514
3545
|
var required = $n(a$5).Lcom_vinctus_oql_DMLAttribute__f_required;
|
|
3515
3546
|
var attr$3 = new $c_Lcom_vinctus_oql_Attribute(name$2, column, pk$1, required, typ$4);
|
|
@@ -3524,183 +3555,183 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3524
3555
|
pk.sr_ObjectRef__f_elem = ev$4;
|
|
3525
3556
|
ev$4 = null
|
|
3526
3557
|
};
|
|
3527
|
-
$n(
|
|
3558
|
+
$n(x123).update__O__O__V($n($n(a$5).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s, attr$3)
|
|
3528
3559
|
})));
|
|
3529
|
-
$n(
|
|
3560
|
+
$n(x121).Lcom_vinctus_oql_Entity__f__pk = $as_s_Option(pk.sr_ObjectRef__f_elem);
|
|
3530
3561
|
break matchResult15
|
|
3531
3562
|
};
|
|
3532
3563
|
throw new $c_s_MatchError(x$1$3)
|
|
3533
3564
|
}
|
|
3534
3565
|
}));
|
|
3535
|
-
$n(this$
|
|
3536
|
-
var this$
|
|
3566
|
+
$n(this$79.filtered__sc_Iterable()).foreach__F1__V(f$1);
|
|
3567
|
+
var this$84 = new $c_sc_MapOps$$anon$1(entities);
|
|
3537
3568
|
var p$1 = new $c_sjsr_AnonFunction1(((x$1$3$1) => {
|
|
3538
|
-
var x$1$
|
|
3539
|
-
if ((x$1$
|
|
3569
|
+
var x$1$12 = $as_Lcom_vinctus_oql_DataModel$EntityInfo(x$1$3$1);
|
|
3570
|
+
if ((x$1$12 !== null)) {
|
|
3540
3571
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3541
|
-
var this$
|
|
3542
|
-
var this$
|
|
3543
|
-
var this$
|
|
3572
|
+
var this$81 = $n(x$1$12);
|
|
3573
|
+
var this$82 = $n(x$1$12);
|
|
3574
|
+
var this$83 = $n(x$1$12);
|
|
3544
3575
|
return true
|
|
3545
3576
|
} else {
|
|
3546
3577
|
return false
|
|
3547
3578
|
}
|
|
3548
3579
|
}));
|
|
3549
|
-
var this$
|
|
3580
|
+
var this$187 = $ct_sc_IterableOps$WithFilter__sc_IterableOps__F1__(new $c_sc_IterableOps$WithFilter(), this$84, p$1);
|
|
3550
3581
|
var f$2 = new $c_sjsr_AnonFunction1(((x$1$4$1) => {
|
|
3551
|
-
var x$1$
|
|
3582
|
+
var x$1$13 = $as_Lcom_vinctus_oql_DataModel$EntityInfo(x$1$4$1);
|
|
3552
3583
|
matchResult26: {
|
|
3553
|
-
if ((x$1$
|
|
3584
|
+
if ((x$1$13 !== null)) {
|
|
3554
3585
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3555
|
-
var this$
|
|
3556
|
-
var
|
|
3557
|
-
var this$
|
|
3558
|
-
var
|
|
3559
|
-
var this$
|
|
3560
|
-
var
|
|
3561
|
-
$n(
|
|
3562
|
-
var x$1$
|
|
3586
|
+
var this$86 = $n(x$1$13);
|
|
3587
|
+
var x252 = this$86.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3588
|
+
var this$87 = $n(x$1$13);
|
|
3589
|
+
var x253 = this$87.Lcom_vinctus_oql_DataModel$EntityInfo__f_dmlattrs;
|
|
3590
|
+
var this$88 = $n(x$1$13);
|
|
3591
|
+
var x254 = this$88.Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs;
|
|
3592
|
+
$n(x253).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$2$1) => {
|
|
3593
|
+
var x$1$14 = $as_Lcom_vinctus_oql_DMLAttribute(x$1$2$1);
|
|
3563
3594
|
matchResult25: {
|
|
3564
|
-
if ((x$1$
|
|
3565
|
-
var this$
|
|
3566
|
-
var this$
|
|
3567
|
-
var this$
|
|
3568
|
-
var
|
|
3569
|
-
var this$
|
|
3570
|
-
var this$
|
|
3571
|
-
if ((
|
|
3572
|
-
var x$1$
|
|
3573
|
-
var this$
|
|
3574
|
-
var
|
|
3575
|
-
var this$
|
|
3576
|
-
var
|
|
3577
|
-
var key$1 = $n(
|
|
3595
|
+
if ((x$1$14 !== null)) {
|
|
3596
|
+
var this$90 = $n(x$1$14);
|
|
3597
|
+
var this$91 = $n(x$1$14);
|
|
3598
|
+
var this$92 = $n(x$1$14);
|
|
3599
|
+
var x243 = this$92.Lcom_vinctus_oql_DMLAttribute__f_typ;
|
|
3600
|
+
var this$93 = $n(x$1$14);
|
|
3601
|
+
var this$94 = $n(x$1$14);
|
|
3602
|
+
if ((x243 instanceof $c_Lcom_vinctus_oql_DMLManyToManyType)) {
|
|
3603
|
+
var x$1$15 = $as_Lcom_vinctus_oql_DMLManyToManyType(x243);
|
|
3604
|
+
var this$96 = $n(x$1$15);
|
|
3605
|
+
var x248 = this$96.Lcom_vinctus_oql_DMLManyToManyType__f_entity;
|
|
3606
|
+
var this$97 = $n(x$1$15);
|
|
3607
|
+
var x249 = this$97.Lcom_vinctus_oql_DMLManyToManyType__f_link;
|
|
3608
|
+
var key$1 = $n(x249).Lcom_vinctus_oql_Ident__f_s;
|
|
3578
3609
|
var linkinfo = $as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$1));
|
|
3579
|
-
var this$
|
|
3580
|
-
var this$
|
|
3610
|
+
var this$98 = $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3611
|
+
var this$107 = new $c_sc_MapOps$$anon$1(this$98);
|
|
3581
3612
|
var pred = new $c_sjsr_AnonFunction1(((x$1$2$2) => {
|
|
3582
|
-
var x$1$
|
|
3583
|
-
if ((x$1$
|
|
3584
|
-
var this$
|
|
3585
|
-
var this$
|
|
3586
|
-
var this$
|
|
3587
|
-
var this$
|
|
3588
|
-
var this$
|
|
3589
|
-
var
|
|
3590
|
-
if ((
|
|
3591
|
-
var x$1$
|
|
3592
|
-
var this$
|
|
3593
|
-
var
|
|
3594
|
-
if (((
|
|
3613
|
+
var x$1$16 = $as_Lcom_vinctus_oql_Attribute(x$1$2$2);
|
|
3614
|
+
if ((x$1$16 !== null)) {
|
|
3615
|
+
var this$100 = $n(x$1$16);
|
|
3616
|
+
var this$101 = $n(x$1$16);
|
|
3617
|
+
var this$102 = $n(x$1$16);
|
|
3618
|
+
var this$103 = $n(x$1$16);
|
|
3619
|
+
var this$104 = $n(x$1$16);
|
|
3620
|
+
var x135 = this$104.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3621
|
+
if ((x135 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3622
|
+
var x$1$17 = $as_Lcom_vinctus_oql_ManyToOneType(x135);
|
|
3623
|
+
var this$106 = $n(x$1$17);
|
|
3624
|
+
var x138 = this$106.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3625
|
+
if (((x252 === null) ? (x138 === null) : $n(x252).equals__O__Z(x138))) {
|
|
3595
3626
|
return true
|
|
3596
3627
|
}
|
|
3597
3628
|
}
|
|
3598
3629
|
};
|
|
3599
3630
|
return false
|
|
3600
3631
|
}));
|
|
3601
|
-
var self = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$
|
|
3632
|
+
var self = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$107, pred));
|
|
3602
3633
|
if (($n(self).size__I() > 1)) {
|
|
3603
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3634
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x249).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x252).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3604
3635
|
};
|
|
3605
3636
|
if (($n(self).size__I() < 1)) {
|
|
3606
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3637
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x249).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x252).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3607
3638
|
};
|
|
3608
|
-
var key$2 = $n(
|
|
3639
|
+
var key$2 = $n(x248).Lcom_vinctus_oql_Ident__f_s;
|
|
3609
3640
|
var targetentity = $n($as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$2))).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3610
|
-
var this$
|
|
3611
|
-
var this$
|
|
3641
|
+
var this$108 = $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3642
|
+
var this$117 = new $c_sc_MapOps$$anon$1(this$108);
|
|
3612
3643
|
var pred$1 = new $c_sjsr_AnonFunction1(((x$1$3$2) => {
|
|
3613
|
-
var x$1$
|
|
3614
|
-
if ((x$1$
|
|
3615
|
-
var this$
|
|
3616
|
-
var this$
|
|
3617
|
-
var this$
|
|
3618
|
-
var this$
|
|
3619
|
-
var this$
|
|
3620
|
-
var
|
|
3621
|
-
if ((
|
|
3622
|
-
var x$1$
|
|
3623
|
-
var this$
|
|
3624
|
-
var
|
|
3625
|
-
if (((targetentity === null) ? (
|
|
3644
|
+
var x$1$18 = $as_Lcom_vinctus_oql_Attribute(x$1$3$2);
|
|
3645
|
+
if ((x$1$18 !== null)) {
|
|
3646
|
+
var this$110 = $n(x$1$18);
|
|
3647
|
+
var this$111 = $n(x$1$18);
|
|
3648
|
+
var this$112 = $n(x$1$18);
|
|
3649
|
+
var this$113 = $n(x$1$18);
|
|
3650
|
+
var this$114 = $n(x$1$18);
|
|
3651
|
+
var x145 = this$114.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3652
|
+
if ((x145 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3653
|
+
var x$1$19 = $as_Lcom_vinctus_oql_ManyToOneType(x145);
|
|
3654
|
+
var this$116 = $n(x$1$19);
|
|
3655
|
+
var x148 = this$116.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3656
|
+
if (((targetentity === null) ? (x148 === null) : $n(targetentity).equals__O__Z(x148))) {
|
|
3626
3657
|
return true
|
|
3627
3658
|
}
|
|
3628
3659
|
}
|
|
3629
3660
|
};
|
|
3630
3661
|
return false
|
|
3631
3662
|
}));
|
|
3632
|
-
var target = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$
|
|
3663
|
+
var target = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$117, pred$1));
|
|
3633
3664
|
if (($n(target).size__I() > 1)) {
|
|
3634
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3665
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x249).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x248).Lcom_vinctus_oql_Ident__f_s) + "'"), dml)
|
|
3635
3666
|
};
|
|
3636
3667
|
if (($n(target).size__I() < 1)) {
|
|
3637
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3668
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x249).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x248).Lcom_vinctus_oql_Ident__f_s) + "'"), dml)
|
|
3638
3669
|
};
|
|
3639
|
-
var $$x4 = $n(
|
|
3640
|
-
var $$x3 = $n($n(x$1$
|
|
3641
|
-
var this$
|
|
3642
|
-
var key$3 = $n($n(x$1$
|
|
3643
|
-
var \u03b42$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$
|
|
3670
|
+
var $$x4 = $n(x254);
|
|
3671
|
+
var $$x3 = $n($n(x$1$14).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3672
|
+
var this$118 = $n(x254);
|
|
3673
|
+
var key$3 = $n($n(x$1$14).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3674
|
+
var \u03b42$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$118, key$3));
|
|
3644
3675
|
var link = $n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3645
3676
|
var self$1 = $as_Lcom_vinctus_oql_Attribute($n(self).head__O());
|
|
3646
3677
|
var target$1 = $as_Lcom_vinctus_oql_Attribute($n(target).head__O());
|
|
3647
3678
|
var typ$1 = new $c_Lcom_vinctus_oql_ManyToManyType(targetentity, link, self$1, target$1);
|
|
3648
|
-
var this$
|
|
3649
|
-
var name$1$1 = this$
|
|
3650
|
-
var this$
|
|
3651
|
-
var column$1 = this$
|
|
3652
|
-
var this$
|
|
3653
|
-
var pk$1$1 = this$
|
|
3654
|
-
var this$
|
|
3655
|
-
var required$1 = this$
|
|
3679
|
+
var this$120 = $n(\u03b42$);
|
|
3680
|
+
var name$1$1 = this$120.Lcom_vinctus_oql_Attribute__f_name;
|
|
3681
|
+
var this$121 = $n(\u03b42$);
|
|
3682
|
+
var column$1 = this$121.Lcom_vinctus_oql_Attribute__f_column;
|
|
3683
|
+
var this$122 = $n(\u03b42$);
|
|
3684
|
+
var pk$1$1 = this$122.Lcom_vinctus_oql_Attribute__f_pk;
|
|
3685
|
+
var this$123 = $n(\u03b42$);
|
|
3686
|
+
var required$1 = this$123.Lcom_vinctus_oql_Attribute__f_required;
|
|
3656
3687
|
$n(\u03b42$);
|
|
3657
3688
|
$n($$x4).update__O__O__V($$x3, new $c_Lcom_vinctus_oql_Attribute(name$1$1, column$1, pk$1$1, required$1, typ$1));
|
|
3658
3689
|
break matchResult25
|
|
3659
3690
|
};
|
|
3660
|
-
if ((
|
|
3661
|
-
var x$1$
|
|
3662
|
-
var this$
|
|
3663
|
-
var
|
|
3664
|
-
if (entities.contains__O__Z($n(
|
|
3665
|
-
var key$4 = $n(
|
|
3691
|
+
if ((x243 instanceof $c_Lcom_vinctus_oql_DMLNameType)) {
|
|
3692
|
+
var x$1$20 = $as_Lcom_vinctus_oql_DMLNameType(x243);
|
|
3693
|
+
var this$126 = $n(x$1$20);
|
|
3694
|
+
var x239 = this$126.Lcom_vinctus_oql_DMLNameType__f_entity;
|
|
3695
|
+
if (entities.contains__O__Z($n(x239).Lcom_vinctus_oql_Ident__f_s)) {
|
|
3696
|
+
var key$4 = $n(x239).Lcom_vinctus_oql_Ident__f_s;
|
|
3666
3697
|
var $$x5 = $n($n($n($as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$4))).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).pk__s_Option()).isEmpty__Z()
|
|
3667
3698
|
} else {
|
|
3668
3699
|
var $$x5 = false
|
|
3669
3700
|
};
|
|
3670
3701
|
if ($$x5) {
|
|
3671
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3702
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x239).Lcom_vinctus_oql_Ident__f_pos, (("target entity '" + $n(x239).Lcom_vinctus_oql_Ident__f_s) + "' has no declared primary key"), dml)
|
|
3672
3703
|
};
|
|
3673
3704
|
break matchResult25
|
|
3674
3705
|
};
|
|
3675
|
-
if ((
|
|
3676
|
-
var x$1$
|
|
3677
|
-
var this$
|
|
3678
|
-
var
|
|
3679
|
-
var this$
|
|
3680
|
-
var
|
|
3681
|
-
var key$5 = $n(
|
|
3706
|
+
if ((x243 instanceof $c_Lcom_vinctus_oql_DMLOneToOneType)) {
|
|
3707
|
+
var x$1$21 = $as_Lcom_vinctus_oql_DMLOneToOneType(x243);
|
|
3708
|
+
var this$128 = $n(x$1$21);
|
|
3709
|
+
var x229 = this$128.Lcom_vinctus_oql_DMLOneToOneType__f_entity;
|
|
3710
|
+
var this$129 = $n(x$1$21);
|
|
3711
|
+
var x230 = this$129.Lcom_vinctus_oql_DMLOneToOneType__f_attr;
|
|
3712
|
+
var key$5 = $n(x229).Lcom_vinctus_oql_Ident__f_s;
|
|
3682
3713
|
var entityinfo = $as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$5));
|
|
3683
3714
|
matchResult21: {
|
|
3684
3715
|
var newtyp;
|
|
3685
|
-
if ((
|
|
3686
|
-
var id = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(
|
|
3687
|
-
var
|
|
3688
|
-
if ((
|
|
3689
|
-
var
|
|
3690
|
-
if ((
|
|
3691
|
-
var this$
|
|
3692
|
-
var this$
|
|
3693
|
-
var this$
|
|
3694
|
-
var this$
|
|
3695
|
-
var this$
|
|
3696
|
-
var
|
|
3697
|
-
if ((
|
|
3698
|
-
var x$1$
|
|
3699
|
-
var this$
|
|
3700
|
-
var
|
|
3701
|
-
if (((
|
|
3716
|
+
if ((x230 instanceof $c_s_Some)) {
|
|
3717
|
+
var id = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(x230)).s_Some__f_value);
|
|
3718
|
+
var x149 = $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs).get__O__s_Option($n(id).Lcom_vinctus_oql_Ident__f_s);
|
|
3719
|
+
if ((x149 instanceof $c_s_Some)) {
|
|
3720
|
+
var x153 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x149)).s_Some__f_value);
|
|
3721
|
+
if ((x153 !== null)) {
|
|
3722
|
+
var this$131 = $n(x153);
|
|
3723
|
+
var this$132 = $n(x153);
|
|
3724
|
+
var this$133 = $n(x153);
|
|
3725
|
+
var this$134 = $n(x153);
|
|
3726
|
+
var this$135 = $n(x153);
|
|
3727
|
+
var x159 = this$135.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3728
|
+
if ((x159 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3729
|
+
var x$1$22 = $as_Lcom_vinctus_oql_ManyToOneType(x159);
|
|
3730
|
+
var this$137 = $n(x$1$22);
|
|
3731
|
+
var x162 = this$137.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3732
|
+
if (((x252 === null) ? (x162 === null) : $n(x252).equals__O__Z(x162))) {
|
|
3702
3733
|
var entity$2 = $n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3703
|
-
var newtyp = new $c_Lcom_vinctus_oql_OneToOneType(entity$2,
|
|
3734
|
+
var newtyp = new $c_Lcom_vinctus_oql_OneToOneType(entity$2, x153);
|
|
3704
3735
|
break matchResult21
|
|
3705
3736
|
}
|
|
3706
3737
|
}
|
|
@@ -3709,96 +3740,96 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3709
3740
|
break matchResult21
|
|
3710
3741
|
};
|
|
3711
3742
|
var x$3$2 = $m_s_None$();
|
|
3712
|
-
if ((x$3$2 ===
|
|
3743
|
+
if ((x$3$2 === x149)) {
|
|
3713
3744
|
var newtyp = $m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(id).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(id).Lcom_vinctus_oql_Ident__f_s) + "'"), dml);
|
|
3714
3745
|
break matchResult21
|
|
3715
3746
|
};
|
|
3716
|
-
throw new $c_s_MatchError(
|
|
3747
|
+
throw new $c_s_MatchError(x149)
|
|
3717
3748
|
};
|
|
3718
3749
|
var x$5$1 = $m_s_None$();
|
|
3719
|
-
if ((x$5$1 ===
|
|
3720
|
-
var this$
|
|
3721
|
-
var this$
|
|
3750
|
+
if ((x$5$1 === x230)) {
|
|
3751
|
+
var this$139 = $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3752
|
+
var this$148 = new $c_sc_MapOps$$anon$1(this$139);
|
|
3722
3753
|
var pred$2 = new $c_sjsr_AnonFunction1(((x$1$4$2) => {
|
|
3723
|
-
var x$1$
|
|
3724
|
-
if ((x$1$
|
|
3725
|
-
var this$
|
|
3726
|
-
var this$
|
|
3727
|
-
var this$
|
|
3728
|
-
var this$
|
|
3729
|
-
var this$
|
|
3730
|
-
var
|
|
3731
|
-
if ((
|
|
3732
|
-
var x$1$
|
|
3733
|
-
var this$
|
|
3734
|
-
var
|
|
3735
|
-
if (((
|
|
3754
|
+
var x$1$23 = $as_Lcom_vinctus_oql_Attribute(x$1$4$2);
|
|
3755
|
+
if ((x$1$23 !== null)) {
|
|
3756
|
+
var this$141 = $n(x$1$23);
|
|
3757
|
+
var this$142 = $n(x$1$23);
|
|
3758
|
+
var this$143 = $n(x$1$23);
|
|
3759
|
+
var this$144 = $n(x$1$23);
|
|
3760
|
+
var this$145 = $n(x$1$23);
|
|
3761
|
+
var x169 = this$145.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3762
|
+
if ((x169 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3763
|
+
var x$1$24 = $as_Lcom_vinctus_oql_ManyToOneType(x169);
|
|
3764
|
+
var this$147 = $n(x$1$24);
|
|
3765
|
+
var x172 = this$147.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3766
|
+
if (((x252 === null) ? (x172 === null) : $n(x252).equals__O__Z(x172))) {
|
|
3736
3767
|
return true
|
|
3737
3768
|
}
|
|
3738
3769
|
}
|
|
3739
3770
|
};
|
|
3740
3771
|
return false
|
|
3741
3772
|
}));
|
|
3742
|
-
var attrs = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$
|
|
3773
|
+
var attrs = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$148, pred$2));
|
|
3743
3774
|
if (($n(attrs).size__I() > 1)) {
|
|
3744
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3775
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x229).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x252).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3745
3776
|
};
|
|
3746
3777
|
if (($n(attrs).size__I() < 1)) {
|
|
3747
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3778
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x229).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x252).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3748
3779
|
};
|
|
3749
3780
|
var entity$3 = $n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3750
3781
|
var attribute = $as_Lcom_vinctus_oql_Attribute($n(attrs).head__O());
|
|
3751
3782
|
var newtyp = new $c_Lcom_vinctus_oql_OneToOneType(entity$3, attribute);
|
|
3752
3783
|
break matchResult21
|
|
3753
3784
|
};
|
|
3754
|
-
throw new $c_s_MatchError(
|
|
3785
|
+
throw new $c_s_MatchError(x230)
|
|
3755
3786
|
};
|
|
3756
|
-
var $$x7 = $n(
|
|
3757
|
-
var $$x6 = $n($n(x$1$
|
|
3758
|
-
var this$
|
|
3759
|
-
var key$6 = $n($n(x$1$
|
|
3760
|
-
var \u03b43$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$
|
|
3787
|
+
var $$x7 = $n(x254);
|
|
3788
|
+
var $$x6 = $n($n(x$1$14).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3789
|
+
var this$150 = $n(x254);
|
|
3790
|
+
var key$6 = $n($n(x$1$14).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3791
|
+
var \u03b43$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$150, key$6));
|
|
3761
3792
|
$n(\u03b43$);
|
|
3762
|
-
var this$
|
|
3763
|
-
var name$3 = this$
|
|
3764
|
-
var this$
|
|
3765
|
-
var column$2 = this$
|
|
3766
|
-
var this$
|
|
3767
|
-
var pk$2 = this$
|
|
3768
|
-
var this$
|
|
3769
|
-
var required$2 = this$
|
|
3793
|
+
var this$151 = $n(\u03b43$);
|
|
3794
|
+
var name$3 = this$151.Lcom_vinctus_oql_Attribute__f_name;
|
|
3795
|
+
var this$152 = $n(\u03b43$);
|
|
3796
|
+
var column$2 = this$152.Lcom_vinctus_oql_Attribute__f_column;
|
|
3797
|
+
var this$153 = $n(\u03b43$);
|
|
3798
|
+
var pk$2 = this$153.Lcom_vinctus_oql_Attribute__f_pk;
|
|
3799
|
+
var this$154 = $n(\u03b43$);
|
|
3800
|
+
var required$2 = this$154.Lcom_vinctus_oql_Attribute__f_required;
|
|
3770
3801
|
$n($$x7).update__O__O__V($$x6, new $c_Lcom_vinctus_oql_Attribute(name$3, column$2, pk$2, required$2, newtyp));
|
|
3771
3802
|
break matchResult25
|
|
3772
3803
|
};
|
|
3773
|
-
if ((
|
|
3774
|
-
var x$1$
|
|
3775
|
-
var this$
|
|
3776
|
-
var
|
|
3777
|
-
var this$
|
|
3778
|
-
var
|
|
3779
|
-
var key$7 = $n(
|
|
3804
|
+
if ((x243 instanceof $c_Lcom_vinctus_oql_DMLOneToManyType)) {
|
|
3805
|
+
var x$1$25 = $as_Lcom_vinctus_oql_DMLOneToManyType(x243);
|
|
3806
|
+
var this$157 = $n(x$1$25);
|
|
3807
|
+
var x219 = this$157.Lcom_vinctus_oql_DMLOneToManyType__f_entity;
|
|
3808
|
+
var this$158 = $n(x$1$25);
|
|
3809
|
+
var x220 = this$158.Lcom_vinctus_oql_DMLOneToManyType__f_attr;
|
|
3810
|
+
var key$7 = $n(x219).Lcom_vinctus_oql_Ident__f_s;
|
|
3780
3811
|
var entityinfo$2 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$7));
|
|
3781
3812
|
matchResult24: {
|
|
3782
3813
|
var newtyp$2;
|
|
3783
|
-
if ((
|
|
3784
|
-
var id$2 = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(
|
|
3785
|
-
var
|
|
3786
|
-
if ((
|
|
3787
|
-
var
|
|
3788
|
-
if ((
|
|
3789
|
-
var this$
|
|
3790
|
-
var this$
|
|
3791
|
-
var this$
|
|
3792
|
-
var this$
|
|
3793
|
-
var this$
|
|
3794
|
-
var
|
|
3795
|
-
if ((
|
|
3796
|
-
var x$1$
|
|
3797
|
-
var this$
|
|
3798
|
-
var
|
|
3799
|
-
if (((
|
|
3814
|
+
if ((x220 instanceof $c_s_Some)) {
|
|
3815
|
+
var id$2 = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(x220)).s_Some__f_value);
|
|
3816
|
+
var x176 = $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs).get__O__s_Option($n(id$2).Lcom_vinctus_oql_Ident__f_s);
|
|
3817
|
+
if ((x176 instanceof $c_s_Some)) {
|
|
3818
|
+
var x180 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x176)).s_Some__f_value);
|
|
3819
|
+
if ((x180 !== null)) {
|
|
3820
|
+
var this$160 = $n(x180);
|
|
3821
|
+
var this$161 = $n(x180);
|
|
3822
|
+
var this$162 = $n(x180);
|
|
3823
|
+
var this$163 = $n(x180);
|
|
3824
|
+
var this$164 = $n(x180);
|
|
3825
|
+
var x186 = this$164.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3826
|
+
if ((x186 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3827
|
+
var x$1$26 = $as_Lcom_vinctus_oql_ManyToOneType(x186);
|
|
3828
|
+
var this$166 = $n(x$1$26);
|
|
3829
|
+
var x189 = this$166.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3830
|
+
if (((x252 === null) ? (x189 === null) : $n(x252).equals__O__Z(x189))) {
|
|
3800
3831
|
var entity$4 = $n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3801
|
-
var newtyp$2 = new $c_Lcom_vinctus_oql_OneToManyType(entity$4,
|
|
3832
|
+
var newtyp$2 = new $c_Lcom_vinctus_oql_OneToManyType(entity$4, x180);
|
|
3802
3833
|
break matchResult24
|
|
3803
3834
|
}
|
|
3804
3835
|
}
|
|
@@ -3807,110 +3838,110 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3807
3838
|
break matchResult24
|
|
3808
3839
|
};
|
|
3809
3840
|
var x$9 = $m_s_None$();
|
|
3810
|
-
if ((x$9 ===
|
|
3841
|
+
if ((x$9 === x176)) {
|
|
3811
3842
|
var newtyp$2 = $m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(id$2).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(id$2).Lcom_vinctus_oql_Ident__f_s) + "'"), dml);
|
|
3812
3843
|
break matchResult24
|
|
3813
3844
|
};
|
|
3814
|
-
throw new $c_s_MatchError(
|
|
3845
|
+
throw new $c_s_MatchError(x176)
|
|
3815
3846
|
};
|
|
3816
3847
|
var x$11 = $m_s_None$();
|
|
3817
|
-
if ((x$11 ===
|
|
3818
|
-
var this$
|
|
3819
|
-
var this$
|
|
3848
|
+
if ((x$11 === x220)) {
|
|
3849
|
+
var this$168 = $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3850
|
+
var this$177 = new $c_sc_MapOps$$anon$1(this$168);
|
|
3820
3851
|
var pred$3 = new $c_sjsr_AnonFunction1(((x$1$5$1) => {
|
|
3821
|
-
var x$1$
|
|
3822
|
-
if ((x$1$
|
|
3823
|
-
var this$
|
|
3824
|
-
var this$
|
|
3825
|
-
var this$
|
|
3826
|
-
var this$
|
|
3827
|
-
var this$
|
|
3828
|
-
var
|
|
3829
|
-
if ((
|
|
3830
|
-
var x$1$
|
|
3831
|
-
var this$
|
|
3832
|
-
var
|
|
3833
|
-
if (((
|
|
3852
|
+
var x$1$27 = $as_Lcom_vinctus_oql_Attribute(x$1$5$1);
|
|
3853
|
+
if ((x$1$27 !== null)) {
|
|
3854
|
+
var this$170 = $n(x$1$27);
|
|
3855
|
+
var this$171 = $n(x$1$27);
|
|
3856
|
+
var this$172 = $n(x$1$27);
|
|
3857
|
+
var this$173 = $n(x$1$27);
|
|
3858
|
+
var this$174 = $n(x$1$27);
|
|
3859
|
+
var x196 = this$174.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3860
|
+
if ((x196 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3861
|
+
var x$1$28 = $as_Lcom_vinctus_oql_ManyToOneType(x196);
|
|
3862
|
+
var this$176 = $n(x$1$28);
|
|
3863
|
+
var x199 = this$176.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3864
|
+
if (((x252 === null) ? (x199 === null) : $n(x252).equals__O__Z(x199))) {
|
|
3834
3865
|
return true
|
|
3835
3866
|
}
|
|
3836
3867
|
}
|
|
3837
3868
|
};
|
|
3838
3869
|
return false
|
|
3839
3870
|
}));
|
|
3840
|
-
var attrs$2 = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$
|
|
3871
|
+
var attrs$2 = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$177, pred$3));
|
|
3841
3872
|
if (($n(attrs$2).size__I() > 1)) {
|
|
3842
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3873
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x219).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x252).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3843
3874
|
};
|
|
3844
3875
|
if (($n(attrs$2).size__I() < 1)) {
|
|
3845
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3876
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x219).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x252).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3846
3877
|
};
|
|
3847
3878
|
var entity$5 = $n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3848
3879
|
var attribute$1 = $as_Lcom_vinctus_oql_Attribute($n(attrs$2).head__O());
|
|
3849
3880
|
var newtyp$2 = new $c_Lcom_vinctus_oql_OneToManyType(entity$5, attribute$1);
|
|
3850
3881
|
break matchResult24
|
|
3851
3882
|
};
|
|
3852
|
-
throw new $c_s_MatchError(
|
|
3883
|
+
throw new $c_s_MatchError(x220)
|
|
3853
3884
|
};
|
|
3854
|
-
var $$x9 = $n(
|
|
3855
|
-
var $$x8 = $n($n(x$1$
|
|
3856
|
-
var this$
|
|
3857
|
-
var key$8 = $n($n(x$1$
|
|
3858
|
-
var \u03b44$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$
|
|
3885
|
+
var $$x9 = $n(x254);
|
|
3886
|
+
var $$x8 = $n($n(x$1$14).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3887
|
+
var this$179 = $n(x254);
|
|
3888
|
+
var key$8 = $n($n(x$1$14).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3889
|
+
var \u03b44$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$179, key$8));
|
|
3859
3890
|
$n(\u03b44$);
|
|
3860
|
-
var this$
|
|
3861
|
-
var name$4 = this$
|
|
3862
|
-
var this$
|
|
3863
|
-
var column$3 = this$
|
|
3864
|
-
var this$
|
|
3865
|
-
var pk$3 = this$
|
|
3866
|
-
var this$
|
|
3867
|
-
var required$3 = this$
|
|
3891
|
+
var this$180 = $n(\u03b44$);
|
|
3892
|
+
var name$4 = this$180.Lcom_vinctus_oql_Attribute__f_name;
|
|
3893
|
+
var this$181 = $n(\u03b44$);
|
|
3894
|
+
var column$3 = this$181.Lcom_vinctus_oql_Attribute__f_column;
|
|
3895
|
+
var this$182 = $n(\u03b44$);
|
|
3896
|
+
var pk$3 = this$182.Lcom_vinctus_oql_Attribute__f_pk;
|
|
3897
|
+
var this$183 = $n(\u03b44$);
|
|
3898
|
+
var required$3 = this$183.Lcom_vinctus_oql_Attribute__f_required;
|
|
3868
3899
|
$n($$x9).update__O__O__V($$x8, new $c_Lcom_vinctus_oql_Attribute(name$4, column$3, pk$3, required$3, newtyp$2));
|
|
3869
3900
|
break matchResult25
|
|
3870
3901
|
};
|
|
3871
|
-
if ($is_Lcom_vinctus_oql_DMLDataType(
|
|
3902
|
+
if ($is_Lcom_vinctus_oql_DMLDataType(x243)) {
|
|
3872
3903
|
break matchResult25
|
|
3873
3904
|
}
|
|
3874
3905
|
};
|
|
3875
|
-
throw new $c_s_MatchError(x$1$
|
|
3906
|
+
throw new $c_s_MatchError(x$1$14)
|
|
3876
3907
|
}
|
|
3877
3908
|
})));
|
|
3878
|
-
var $$x10 = $n(
|
|
3879
|
-
var this$
|
|
3909
|
+
var $$x10 = $n(x252);
|
|
3910
|
+
var this$186 = $n(x254);
|
|
3880
3911
|
var factory = $m_sci_VectorMap$();
|
|
3881
3912
|
var factory$1 = new $c_sc_MapFactory$ToFactory(factory);
|
|
3882
|
-
$$x10.Lcom_vinctus_oql_Entity__f__attributes = $as_sci_Map(factory$1.fromSpecific__sc_IterableOnce__O(this$
|
|
3913
|
+
$$x10.Lcom_vinctus_oql_Entity__f__attributes = $as_sci_Map(factory$1.fromSpecific__sc_IterableOnce__O(this$186));
|
|
3883
3914
|
break matchResult26
|
|
3884
3915
|
};
|
|
3885
|
-
throw new $c_s_MatchError(x$1$
|
|
3916
|
+
throw new $c_s_MatchError(x$1$13)
|
|
3886
3917
|
}
|
|
3887
3918
|
}));
|
|
3888
|
-
$n(this$
|
|
3919
|
+
$n(this$187.filtered__sc_Iterable()).foreach__F1__V(f$2);
|
|
3889
3920
|
if ($m_Lcom_vinctus_oql_package$().Lcom_vinctus_oql_package$__f_parsingError) {
|
|
3890
3921
|
$m_s_sys_package$().error__T__E("errors while creating data model")
|
|
3891
3922
|
};
|
|
3892
|
-
var this$
|
|
3923
|
+
var this$188 = new $c_sc_MapView$Id(entities);
|
|
3893
3924
|
var f$3 = new $c_sjsr_AnonFunction1(((_$10) => {
|
|
3894
3925
|
var _$10$1 = $as_Lcom_vinctus_oql_DataModel$EntityInfo(_$10);
|
|
3895
3926
|
return $n(_$10$1).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity
|
|
3896
3927
|
}));
|
|
3897
|
-
var this$
|
|
3928
|
+
var this$190 = new $c_sc_MapView$MapValues(this$188, f$3);
|
|
3898
3929
|
var factory$2 = $m_sci_VectorMap$();
|
|
3899
3930
|
var factory$3 = new $c_sc_MapFactory$ToFactory(factory$2);
|
|
3900
|
-
var _1$1 = factory$3.fromSpecific__sc_IterableOnce__O(this$
|
|
3901
|
-
var this$
|
|
3931
|
+
var _1$1 = factory$3.fromSpecific__sc_IterableOnce__O(this$190);
|
|
3932
|
+
var this$191 = $m_s_$less$colon$less$();
|
|
3902
3933
|
var _2$1 = $m_sci_Map$().from__sc_IterableOnce__sci_Map(enums);
|
|
3903
|
-
var
|
|
3904
|
-
var
|
|
3905
|
-
var
|
|
3906
|
-
if ((
|
|
3907
|
-
if ((
|
|
3908
|
-
var \u03b41$___1 =
|
|
3909
|
-
var \u03b41$___2 =
|
|
3934
|
+
var x255 = new $c_T2(_1$1, _2$1);
|
|
3935
|
+
var x256 = $as_sci_VectorMap(x255.T2__f__1);
|
|
3936
|
+
var x257 = $as_sci_Map(x255.T2__f__2);
|
|
3937
|
+
if ((x256 !== null)) {
|
|
3938
|
+
if ((x257 !== null)) {
|
|
3939
|
+
var \u03b41$___1 = x256;
|
|
3940
|
+
var \u03b41$___2 = x257;
|
|
3910
3941
|
break matchResult27
|
|
3911
3942
|
}
|
|
3912
3943
|
};
|
|
3913
|
-
throw new $c_s_MatchError(
|
|
3944
|
+
throw new $c_s_MatchError(x255)
|
|
3914
3945
|
};
|
|
3915
3946
|
this.Lcom_vinctus_oql_DataModel__f_entities = $as_sci_Map(\u03b41$___1);
|
|
3916
3947
|
this.Lcom_vinctus_oql_DataModel__f_enums = $as_sci_Map(\u03b41$___2);
|
|
@@ -3919,21 +3950,21 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3919
3950
|
var idsbuf = new $c_scm_ListBuffer();
|
|
3920
3951
|
var nullablesbuf = new $c_scm_ListBuffer();
|
|
3921
3952
|
$p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__sci_List__sci_List__Lcom_vinctus_oql_Entity__V(this, idsbuf, nullablesbuf, $m_s_package$().s_package$__f_Nil, $m_s_package$().s_package$__f_Nil, e$5);
|
|
3922
|
-
var this$
|
|
3953
|
+
var this$205 = $n(idsbuf.toList__sci_List());
|
|
3923
3954
|
var f$8 = ((ids) => {
|
|
3924
3955
|
var ids$1 = $as_sci_List(ids);
|
|
3925
|
-
var this$
|
|
3956
|
+
var this$195 = $n(ids$1);
|
|
3926
3957
|
var f$4 = ((id$1) => {
|
|
3927
3958
|
var id$3 = $as_T(id$1);
|
|
3928
3959
|
return new $c_Lcom_vinctus_oql_Ident(id$3, null)
|
|
3929
3960
|
});
|
|
3930
|
-
if ((this$
|
|
3961
|
+
if ((this$195 === $m_sci_Nil$())) {
|
|
3931
3962
|
var attridents = $m_sci_Nil$()
|
|
3932
3963
|
} else {
|
|
3933
|
-
var arg1$2 = this$
|
|
3964
|
+
var arg1$2 = this$195.head__O();
|
|
3934
3965
|
var h$1 = new $c_sci_$colon$colon(f$4(arg1$2), $m_sci_Nil$());
|
|
3935
3966
|
var t$1 = h$1;
|
|
3936
|
-
var rest$1 = $as_sci_List(this$
|
|
3967
|
+
var rest$1 = $as_sci_List(this$195.tail__O());
|
|
3937
3968
|
while ((rest$1 !== $m_sci_Nil$())) {
|
|
3938
3969
|
var arg1$3 = $n(rest$1).head__O();
|
|
3939
3970
|
var nx$1 = new $c_sci_$colon$colon(f$4(arg1$3), $m_sci_Nil$());
|
|
@@ -3945,15 +3976,15 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3945
3976
|
};
|
|
3946
3977
|
var attr = new $c_Lcom_vinctus_oql_AttributeOQLExpression(attridents, null);
|
|
3947
3978
|
attr.Lcom_vinctus_oql_AttributeOQLExpression__f_dmrefs = this.lookup__Lcom_vinctus_oql_OQLExpression__sci_List__Z__Lcom_vinctus_oql_Entity__T__sci_List(attr, attridents, false, e$5, null);
|
|
3948
|
-
var this$
|
|
3979
|
+
var this$199 = $n(nullablesbuf.toList__sci_List());
|
|
3949
3980
|
var f$5 = ((_$11) => {
|
|
3950
3981
|
var _$11$1 = $as_sci_List(_$11);
|
|
3951
|
-
var this$
|
|
3982
|
+
var this$198 = $n(ids$1);
|
|
3952
3983
|
$n(ids$1);
|
|
3953
3984
|
var offset = 0;
|
|
3954
|
-
return $f_sc_SeqOps__startsWith__sc_IterableOnce__I__Z(this$
|
|
3985
|
+
return $f_sc_SeqOps__startsWith__sc_IterableOnce__I__Z(this$198, _$11$1, offset)
|
|
3955
3986
|
});
|
|
3956
|
-
var l = this$
|
|
3987
|
+
var l = this$199;
|
|
3957
3988
|
block: {
|
|
3958
3989
|
var result;
|
|
3959
3990
|
while (true) {
|
|
@@ -3974,8 +4005,8 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3974
4005
|
var result = start;
|
|
3975
4006
|
break block
|
|
3976
4007
|
} else {
|
|
3977
|
-
var x$
|
|
3978
|
-
if (($uZ(f$5(x$
|
|
4008
|
+
var x$6 = $n(remaining).head__O();
|
|
4009
|
+
if (($uZ(f$5(x$6)) !== false)) {
|
|
3979
4010
|
remaining = $as_sci_List($n(remaining).tail__O());
|
|
3980
4011
|
continue
|
|
3981
4012
|
};
|
|
@@ -4016,21 +4047,21 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
4016
4047
|
}
|
|
4017
4048
|
}
|
|
4018
4049
|
};
|
|
4019
|
-
var this$
|
|
4050
|
+
var this$203 = $n(result);
|
|
4020
4051
|
var f$7 = ((ids$3) => {
|
|
4021
4052
|
var ids$2 = $as_sci_List(ids$3);
|
|
4022
|
-
var this$
|
|
4053
|
+
var this$201 = $n(ids$2);
|
|
4023
4054
|
var f$6 = ((id$4) => {
|
|
4024
4055
|
var id$5 = $as_T(id$4);
|
|
4025
4056
|
return new $c_Lcom_vinctus_oql_Ident(id$5, null)
|
|
4026
4057
|
});
|
|
4027
|
-
if ((this$
|
|
4058
|
+
if ((this$201 === $m_sci_Nil$())) {
|
|
4028
4059
|
var nullidents = $m_sci_Nil$()
|
|
4029
4060
|
} else {
|
|
4030
|
-
var arg1$4 = this$
|
|
4061
|
+
var arg1$4 = this$201.head__O();
|
|
4031
4062
|
var h$3 = new $c_sci_$colon$colon(f$6(arg1$4), $m_sci_Nil$());
|
|
4032
4063
|
var t$3 = h$3;
|
|
4033
|
-
var rest$2 = $as_sci_List(this$
|
|
4064
|
+
var rest$2 = $as_sci_List(this$201.tail__O());
|
|
4034
4065
|
while ((rest$2 !== $m_sci_Nil$())) {
|
|
4035
4066
|
var arg1$5 = $n(rest$2).head__O();
|
|
4036
4067
|
var nx$2 = new $c_sci_$colon$colon(f$6(arg1$5), $m_sci_Nil$());
|
|
@@ -4044,13 +4075,13 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
4044
4075
|
nullable.Lcom_vinctus_oql_ReferenceOQLExpression__f_dmrefs = this.lookup__Lcom_vinctus_oql_OQLExpression__sci_List__Z__Lcom_vinctus_oql_Entity__T__sci_List(nullable, nullidents, true, e$5, null);
|
|
4045
4076
|
return nullable
|
|
4046
4077
|
});
|
|
4047
|
-
if ((this$
|
|
4078
|
+
if ((this$203 === $m_sci_Nil$())) {
|
|
4048
4079
|
var nullables = $m_sci_Nil$()
|
|
4049
4080
|
} else {
|
|
4050
|
-
var arg1$6 = this$
|
|
4081
|
+
var arg1$6 = this$203.head__O();
|
|
4051
4082
|
var h$4 = new $c_sci_$colon$colon(f$7(arg1$6), $m_sci_Nil$());
|
|
4052
4083
|
var t$4 = h$4;
|
|
4053
|
-
var rest$3 = $as_sci_List(this$
|
|
4084
|
+
var rest$3 = $as_sci_List(this$203.tail__O());
|
|
4054
4085
|
while ((rest$3 !== $m_sci_Nil$())) {
|
|
4055
4086
|
var arg1$7 = $n(rest$3).head__O();
|
|
4056
4087
|
var nx$3 = new $c_sci_$colon$colon(f$7(arg1$7), $m_sci_Nil$());
|
|
@@ -4062,13 +4093,13 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
4062
4093
|
};
|
|
4063
4094
|
return new $c_T2(attr, nullables)
|
|
4064
4095
|
});
|
|
4065
|
-
if ((this$
|
|
4096
|
+
if ((this$205 === $m_sci_Nil$())) {
|
|
4066
4097
|
var attrs$1 = $m_sci_Nil$()
|
|
4067
4098
|
} else {
|
|
4068
|
-
var arg1$8 = this$
|
|
4099
|
+
var arg1$8 = this$205.head__O();
|
|
4069
4100
|
var h$5 = new $c_sci_$colon$colon(f$8(arg1$8), $m_sci_Nil$());
|
|
4070
4101
|
var t$5 = h$5;
|
|
4071
|
-
var rest$4 = $as_sci_List(this$
|
|
4102
|
+
var rest$4 = $as_sci_List(this$205.tail__O());
|
|
4072
4103
|
while ((rest$4 !== $m_sci_Nil$())) {
|
|
4073
4104
|
var arg1$9 = $n(rest$4).head__O();
|
|
4074
4105
|
var nx$4 = new $c_sci_$colon$colon(f$8(arg1$9), $m_sci_Nil$());
|
|
@@ -4079,11 +4110,11 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
4079
4110
|
var attrs$1 = h$5
|
|
4080
4111
|
};
|
|
4081
4112
|
var $$x12 = $n(e$5);
|
|
4082
|
-
var this$
|
|
4113
|
+
var this$208 = $n($m_s_Predef$().s_Predef$__f_Map);
|
|
4083
4114
|
var $$x11 = $m_sr_ScalaRunTime$();
|
|
4084
4115
|
var self$2 = this.Lcom_vinctus_oql_DataModel__f_first;
|
|
4085
4116
|
var elems = $n($$x11).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([new $c_T2(self$2, attrs$1)]));
|
|
4086
|
-
$$x12.Lcom_vinctus_oql_Entity__f__fixing = this$
|
|
4117
|
+
$$x12.Lcom_vinctus_oql_Entity__f__fixing = this$208.from__sc_IterableOnce__sci_Map(elems)
|
|
4087
4118
|
})))
|
|
4088
4119
|
}
|
|
4089
4120
|
$c_Lcom_vinctus_oql_DataModel.prototype = new $h_O();
|
|
@@ -31308,40 +31339,69 @@ function $f_Lcom_vinctus_oql_SQLDataSource__string__T__T($thiz, s) {
|
|
|
31308
31339
|
}
|
|
31309
31340
|
function $f_Lcom_vinctus_oql_SQLDataSource__typed__O__Lcom_vinctus_oql_Datatype__T($thiz, a, typ) {
|
|
31310
31341
|
if (((typeof a) === "string")) {
|
|
31311
|
-
var
|
|
31312
|
-
|
|
31313
|
-
|
|
31314
|
-
|
|
31342
|
+
var x35 = $as_T(a);
|
|
31343
|
+
matchAlts3: {
|
|
31344
|
+
matchAlts4: {
|
|
31345
|
+
var x = $m_Lcom_vinctus_oql_TextType$();
|
|
31346
|
+
if ((x === typ)) {
|
|
31347
|
+
break matchAlts4
|
|
31348
|
+
};
|
|
31349
|
+
if ((typ instanceof $c_Lcom_vinctus_oql_CharacterType)) {
|
|
31350
|
+
var x$1 = $as_Lcom_vinctus_oql_CharacterType(typ);
|
|
31351
|
+
var this$3 = $n(x$1);
|
|
31352
|
+
break matchAlts4
|
|
31353
|
+
};
|
|
31354
|
+
break matchAlts3
|
|
31355
|
+
};
|
|
31356
|
+
return $thiz.string__T__T(x35)
|
|
31315
31357
|
};
|
|
31316
31358
|
var x$3 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
31317
31359
|
if ((x$3 === typ)) {
|
|
31318
|
-
return (
|
|
31360
|
+
return (x35 + "::UUID")
|
|
31319
31361
|
};
|
|
31320
31362
|
var x$5 = $m_Lcom_vinctus_oql_TimestampType$();
|
|
31321
31363
|
if ((x$5 === typ)) {
|
|
31322
|
-
return (
|
|
31364
|
+
return (x35 + "::TIMESTAMP")
|
|
31323
31365
|
};
|
|
31324
31366
|
var x$7 = $m_Lcom_vinctus_oql_DateType$();
|
|
31325
31367
|
if ((x$7 === typ)) {
|
|
31326
|
-
return (
|
|
31368
|
+
return (x35 + "::DATE")
|
|
31327
31369
|
};
|
|
31328
|
-
var x$9 = $
|
|
31370
|
+
var x$9 = $m_Lcom_vinctus_oql_TimeType$();
|
|
31329
31371
|
if ((x$9 === typ)) {
|
|
31330
|
-
return (
|
|
31372
|
+
return (x35 + "::TIME")
|
|
31331
31373
|
};
|
|
31332
|
-
var x$11 = $
|
|
31374
|
+
var x$11 = $m_Lcom_vinctus_oql_JSONType$();
|
|
31333
31375
|
if ((x$11 === typ)) {
|
|
31334
|
-
return (
|
|
31376
|
+
return (x35 + "::JSON")
|
|
31377
|
+
};
|
|
31378
|
+
var x$13 = $m_Lcom_vinctus_oql_IntervalType$();
|
|
31379
|
+
if ((x$13 === typ)) {
|
|
31380
|
+
return (x35 + "::INTERVAL")
|
|
31335
31381
|
}
|
|
31336
31382
|
};
|
|
31337
31383
|
matchAlts1: {
|
|
31338
31384
|
matchAlts2: {
|
|
31339
|
-
var x$
|
|
31340
|
-
if ((x$
|
|
31385
|
+
var x$15 = $m_Lcom_vinctus_oql_SmallintType$();
|
|
31386
|
+
if ((x$15 === typ)) {
|
|
31341
31387
|
break matchAlts2
|
|
31342
31388
|
};
|
|
31343
|
-
var x$
|
|
31344
|
-
if ((x$
|
|
31389
|
+
var x$17 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
31390
|
+
if ((x$17 === typ)) {
|
|
31391
|
+
break matchAlts2
|
|
31392
|
+
};
|
|
31393
|
+
var x$19 = $m_Lcom_vinctus_oql_FloatType$();
|
|
31394
|
+
if ((x$19 === typ)) {
|
|
31395
|
+
break matchAlts2
|
|
31396
|
+
};
|
|
31397
|
+
var x$21 = $m_Lcom_vinctus_oql_BigintType$();
|
|
31398
|
+
if ((x$21 === typ)) {
|
|
31399
|
+
break matchAlts2
|
|
31400
|
+
};
|
|
31401
|
+
if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
|
|
31402
|
+
var x$1$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
|
|
31403
|
+
var this$5 = $n(x$1$1);
|
|
31404
|
+
var this$6 = $n(x$1$1);
|
|
31345
31405
|
break matchAlts2
|
|
31346
31406
|
};
|
|
31347
31407
|
break matchAlts1
|
|
@@ -42096,57 +42156,63 @@ $c_Lcom_vinctus_oql_DMLParser.prototype.attribute__s_util_parsing_combinator_Par
|
|
|
42096
42156
|
});
|
|
42097
42157
|
$c_Lcom_vinctus_oql_DMLParser.prototype.typeSpecifier__s_util_parsing_combinator_Parsers$Parser = (function() {
|
|
42098
42158
|
var r = this.kw__T__s_util_matching_Regex("text");
|
|
42099
|
-
return $n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r, this).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42159
|
+
return $n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r, this).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42100
42160
|
var r$1 = this.kw__T__s_util_matching_Regex("json");
|
|
42101
42161
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$1, this)
|
|
42102
42162
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42103
|
-
var r$2 = this.kw__T__s_util_matching_Regex("
|
|
42163
|
+
var r$2 = this.kw__T__s_util_matching_Regex("int2");
|
|
42104
42164
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$2, this)
|
|
42105
42165
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42106
|
-
var r$3 = this.kw__T__s_util_matching_Regex("
|
|
42166
|
+
var r$3 = this.kw__T__s_util_matching_Regex("smallint");
|
|
42107
42167
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$3, this)
|
|
42108
42168
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42109
|
-
var r$4 = this.kw__T__s_util_matching_Regex("
|
|
42169
|
+
var r$4 = this.kw__T__s_util_matching_Regex("integer");
|
|
42110
42170
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$4, this)
|
|
42111
42171
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42112
|
-
var r$5 = this.kw__T__s_util_matching_Regex("
|
|
42172
|
+
var r$5 = this.kw__T__s_util_matching_Regex("int4");
|
|
42113
42173
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$5, this)
|
|
42114
42174
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42115
|
-
var r$6 = this.kw__T__s_util_matching_Regex("
|
|
42175
|
+
var r$6 = this.kw__T__s_util_matching_Regex("int");
|
|
42116
42176
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$6, this)
|
|
42117
42177
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42118
|
-
var r$7 = this.kw__T__s_util_matching_Regex("
|
|
42178
|
+
var r$7 = this.kw__T__s_util_matching_Regex("boolean");
|
|
42119
42179
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$7, this)
|
|
42120
42180
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42121
|
-
var r$8 = this.kw__T__s_util_matching_Regex("
|
|
42181
|
+
var r$8 = this.kw__T__s_util_matching_Regex("bool");
|
|
42122
42182
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$8, this)
|
|
42123
42183
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42124
|
-
var r$9 = this.kw__T__s_util_matching_Regex("
|
|
42184
|
+
var r$9 = this.kw__T__s_util_matching_Regex("bigint");
|
|
42125
42185
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$9, this)
|
|
42126
42186
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42127
|
-
var r$10 = this.kw__T__s_util_matching_Regex("
|
|
42187
|
+
var r$10 = this.kw__T__s_util_matching_Regex("int8");
|
|
42128
42188
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$10, this)
|
|
42129
42189
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42130
|
-
var r$11 = this.kw__T__s_util_matching_Regex("
|
|
42190
|
+
var r$11 = this.kw__T__s_util_matching_Regex("date");
|
|
42131
42191
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$11, this)
|
|
42132
42192
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42133
|
-
var r$12 = this.kw__T__s_util_matching_Regex("
|
|
42193
|
+
var r$12 = this.kw__T__s_util_matching_Regex("time");
|
|
42134
42194
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$12, this)
|
|
42135
42195
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42136
|
-
var r$13 = this.kw__T__s_util_matching_Regex("
|
|
42196
|
+
var r$13 = this.kw__T__s_util_matching_Regex("interval");
|
|
42137
42197
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$13, this)
|
|
42138
42198
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42139
|
-
var r$14 = this.kw__T__s_util_matching_Regex("
|
|
42199
|
+
var r$14 = this.kw__T__s_util_matching_Regex("float8");
|
|
42140
42200
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$14, this)
|
|
42141
42201
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42142
|
-
var r$15 = this.kw__T__s_util_matching_Regex("
|
|
42202
|
+
var r$15 = this.kw__T__s_util_matching_Regex("float");
|
|
42143
42203
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$15, this)
|
|
42204
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42205
|
+
var r$16 = this.kw__T__s_util_matching_Regex("uuid");
|
|
42206
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$16, this)
|
|
42207
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42208
|
+
var r$17 = this.kw__T__s_util_matching_Regex("timestamp");
|
|
42209
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$17, this)
|
|
42144
42210
|
})))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((typ) => {
|
|
42145
42211
|
var typ$1 = $as_T(typ);
|
|
42146
42212
|
return new $c_Lcom_vinctus_oql_DMLSimpleDataType(typ$1)
|
|
42147
42213
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42148
|
-
var r$
|
|
42149
|
-
return $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$
|
|
42214
|
+
var r$18 = this.kw__T__s_util_matching_Regex("decimal");
|
|
42215
|
+
return $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$18, this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("(", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.integer__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(",", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.integer__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(")", this))))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1) => {
|
|
42150
42216
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
42151
42217
|
if ((x$1$1 !== null)) {
|
|
42152
42218
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
@@ -42175,98 +42241,120 @@ $c_Lcom_vinctus_oql_DMLParser.prototype.typeSpecifier__s_util_parsing_combinator
|
|
|
42175
42241
|
};
|
|
42176
42242
|
throw new $c_s_MatchError(x$1$1)
|
|
42177
42243
|
})))
|
|
42244
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42245
|
+
var r$19 = this.kw__T__s_util_matching_Regex("char");
|
|
42246
|
+
return $n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$19, this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("(", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.integer__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(")", this))))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$3) => {
|
|
42247
|
+
var x$1$4 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$3);
|
|
42248
|
+
if ((x$1$4 !== null)) {
|
|
42249
|
+
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42250
|
+
var x68 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$4).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42251
|
+
if ((x68 !== null)) {
|
|
42252
|
+
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42253
|
+
if (($n(x68).s_util_parsing_combinator_Parsers$$tilde__f__1 !== null)) {
|
|
42254
|
+
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42255
|
+
$as_s_util_parsing_combinator_Parsers$$tilde($n(x68).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42256
|
+
var n = $as_T($n(x68).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42257
|
+
$n($m_s_package$().s_package$__f_List);
|
|
42258
|
+
var elems$1 = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_T.getArrayOf().constr)([n]));
|
|
42259
|
+
var parameters$1 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
|
|
42260
|
+
return new $c_Lcom_vinctus_oql_DMLParametricDataType("char", parameters$1)
|
|
42261
|
+
}
|
|
42262
|
+
}
|
|
42263
|
+
};
|
|
42264
|
+
throw new $c_s_MatchError(x$1$4)
|
|
42265
|
+
})))
|
|
42178
42266
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n(this.ident__s_util_parsing_combinator_Parsers$Parser()).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((entity) => {
|
|
42179
42267
|
var entity$1 = $as_Lcom_vinctus_oql_Ident(entity);
|
|
42180
42268
|
return new $c_Lcom_vinctus_oql_DMLNameType(entity$1)
|
|
42181
|
-
}))))))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("[", this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("]", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("(", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(")", this))))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$
|
|
42182
|
-
var x$1$
|
|
42183
|
-
if ((x$1$
|
|
42269
|
+
}))))))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("[", this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("]", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("(", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(")", this))))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$6) => {
|
|
42270
|
+
var x$1$7 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$6);
|
|
42271
|
+
if ((x$1$7 !== null)) {
|
|
42184
42272
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42185
|
-
var
|
|
42186
|
-
if ((
|
|
42273
|
+
var x78 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$7).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42274
|
+
if ((x78 !== null)) {
|
|
42187
42275
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42188
|
-
var
|
|
42189
|
-
if ((
|
|
42276
|
+
var x81 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x78).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42277
|
+
if ((x81 !== null)) {
|
|
42190
42278
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42191
|
-
var
|
|
42192
|
-
if ((
|
|
42279
|
+
var x84 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x81).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42280
|
+
if ((x84 !== null)) {
|
|
42193
42281
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42194
|
-
var
|
|
42195
|
-
if ((
|
|
42282
|
+
var x87 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x84).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42283
|
+
if ((x87 !== null)) {
|
|
42196
42284
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42197
|
-
var n = $as_Lcom_vinctus_oql_Ident($n(
|
|
42198
|
-
var l = $as_Lcom_vinctus_oql_Ident($n(
|
|
42199
|
-
return new $c_Lcom_vinctus_oql_DMLManyToManyType(n, l)
|
|
42285
|
+
var n$1 = $as_Lcom_vinctus_oql_Ident($n(x87).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42286
|
+
var l = $as_Lcom_vinctus_oql_Ident($n(x78).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42287
|
+
return new $c_Lcom_vinctus_oql_DMLManyToManyType(n$1, l)
|
|
42200
42288
|
}
|
|
42201
42289
|
}
|
|
42202
42290
|
}
|
|
42203
42291
|
}
|
|
42204
42292
|
};
|
|
42205
|
-
throw new $c_s_MatchError(x$1$
|
|
42293
|
+
throw new $c_s_MatchError(x$1$7)
|
|
42206
42294
|
}))))))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("[", this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("]", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42207
42295
|
var p$1 = new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(".", this).$tilde$greater__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))));
|
|
42208
42296
|
return $f_s_util_parsing_combinator_Parsers__opt__F0__s_util_parsing_combinator_Parsers$Parser(this, p$1)
|
|
42209
|
-
})))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$
|
|
42210
|
-
var x$1$
|
|
42211
|
-
if ((x$1$
|
|
42297
|
+
})))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$8) => {
|
|
42298
|
+
var x$1$9 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$8);
|
|
42299
|
+
if ((x$1$9 !== null)) {
|
|
42212
42300
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42213
|
-
var
|
|
42214
|
-
if ((
|
|
42301
|
+
var x94 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$9).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42302
|
+
if ((x94 !== null)) {
|
|
42215
42303
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42216
|
-
var
|
|
42217
|
-
if ((
|
|
42304
|
+
var x97 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x94).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42305
|
+
if ((x97 !== null)) {
|
|
42218
42306
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42219
|
-
var n$
|
|
42220
|
-
var t = $as_s_Option($n(x$1$
|
|
42221
|
-
return new $c_Lcom_vinctus_oql_DMLOneToManyType(n$
|
|
42307
|
+
var n$2 = $as_Lcom_vinctus_oql_Ident($n(x97).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42308
|
+
var t = $as_s_Option($n(x$1$9).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42309
|
+
return new $c_Lcom_vinctus_oql_DMLOneToManyType(n$2, t)
|
|
42222
42310
|
}
|
|
42223
42311
|
}
|
|
42224
42312
|
};
|
|
42225
|
-
throw new $c_s_MatchError(x$1$
|
|
42313
|
+
throw new $c_s_MatchError(x$1$9)
|
|
42226
42314
|
}))))))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("<", this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(">", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
42227
42315
|
var p$2 = new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(".", this).$tilde$greater__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.ident__s_util_parsing_combinator_Parsers$Parser())))));
|
|
42228
42316
|
return $f_s_util_parsing_combinator_Parsers__opt__F0__s_util_parsing_combinator_Parsers$Parser(this, p$2)
|
|
42229
|
-
})))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$
|
|
42230
|
-
var x$1$
|
|
42231
|
-
if ((x$1$
|
|
42317
|
+
})))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1$10) => {
|
|
42318
|
+
var x$1$11 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$10);
|
|
42319
|
+
if ((x$1$11 !== null)) {
|
|
42232
42320
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42233
|
-
var
|
|
42234
|
-
if ((
|
|
42321
|
+
var x104 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$11).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42322
|
+
if ((x104 !== null)) {
|
|
42235
42323
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42236
|
-
var
|
|
42237
|
-
if ((
|
|
42324
|
+
var x107 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x104).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
42325
|
+
if ((x107 !== null)) {
|
|
42238
42326
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
42239
|
-
var n$
|
|
42240
|
-
var t$1 = $as_s_Option($n(x$1$
|
|
42241
|
-
return new $c_Lcom_vinctus_oql_DMLOneToOneType(n$
|
|
42327
|
+
var n$3 = $as_Lcom_vinctus_oql_Ident($n(x107).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42328
|
+
var t$1 = $as_s_Option($n(x$1$11).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
42329
|
+
return new $c_Lcom_vinctus_oql_DMLOneToOneType(n$3, t$1)
|
|
42242
42330
|
}
|
|
42243
42331
|
}
|
|
42244
42332
|
};
|
|
42245
|
-
throw new $c_s_MatchError(x$1$
|
|
42333
|
+
throw new $c_s_MatchError(x$1$11)
|
|
42246
42334
|
}))))))
|
|
42247
42335
|
});
|
|
42248
42336
|
$c_Lcom_vinctus_oql_DMLParser.prototype.parseModel__T__Lcom_vinctus_oql_DMLModel = (function(src) {
|
|
42249
42337
|
var p = this.model__s_util_parsing_combinator_Parsers$Parser();
|
|
42250
42338
|
var in$1 = $ct_s_util_parsing_input_CharSequenceReader__jl_CharSequence__(new $c_s_util_parsing_input_CharSequenceReader(), src);
|
|
42251
|
-
var
|
|
42252
|
-
if (((
|
|
42339
|
+
var x112 = $f_s_util_parsing_combinator_RegexParsers__parseAll__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_input_Reader__s_util_parsing_combinator_Parsers$ParseResult(this, p, in$1);
|
|
42340
|
+
if (((x112 instanceof $c_s_util_parsing_combinator_Parsers$Success) && ($n($as_s_util_parsing_combinator_Parsers$Success(x112)).s_util_parsing_combinator_Parsers$Success__f_$outer === this))) {
|
|
42253
42341
|
$n(this.Success__s_util_parsing_combinator_Parsers$Success$());
|
|
42254
|
-
var x$1 = $as_s_util_parsing_combinator_Parsers$Success(
|
|
42342
|
+
var x$1 = $as_s_util_parsing_combinator_Parsers$Success(x112);
|
|
42255
42343
|
var this$2 = $n(x$1);
|
|
42256
|
-
var
|
|
42344
|
+
var x119 = $as_Lcom_vinctus_oql_DMLModel(this$2.s_util_parsing_combinator_Parsers$Success__f_result);
|
|
42257
42345
|
var this$3 = $n(x$1);
|
|
42258
|
-
return
|
|
42259
|
-
};
|
|
42260
|
-
if ((
|
|
42261
|
-
var
|
|
42262
|
-
if ((!$n(
|
|
42263
|
-
var
|
|
42264
|
-
var error = $as_T($n(
|
|
42265
|
-
var rest = $as_s_util_parsing_input_Reader($n(
|
|
42346
|
+
return x119
|
|
42347
|
+
};
|
|
42348
|
+
if ((x112 !== null)) {
|
|
42349
|
+
var x113 = $n(this.NoSuccess__s_util_parsing_combinator_Parsers$NoSuccess$()).unapply__s_util_parsing_combinator_Parsers$ParseResult__s_Option(x112);
|
|
42350
|
+
if ((!$n(x113).isEmpty__Z())) {
|
|
42351
|
+
var x114 = $as_T2($n(x113).get__O());
|
|
42352
|
+
var error = $as_T($n(x114).T2__f__1);
|
|
42353
|
+
var rest = $as_s_util_parsing_input_Reader($n(x114).T2__f__2);
|
|
42266
42354
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(rest).pos__s_util_parsing_input_Position(), error, src)
|
|
42267
42355
|
}
|
|
42268
42356
|
};
|
|
42269
|
-
throw new $c_s_MatchError(
|
|
42357
|
+
throw new $c_s_MatchError(x112)
|
|
42270
42358
|
});
|
|
42271
42359
|
var $d_Lcom_vinctus_oql_DMLParser = new $TypeData().initClass({
|
|
42272
42360
|
Lcom_vinctus_oql_DMLParser: 0
|
|
@@ -42440,6 +42528,12 @@ function $f_Lcom_vinctus_oql_PGDataSource__$init$__V($thiz) {
|
|
|
42440
42528
|
$thiz.Lcom_vinctus_oql_NodePGDataSource__f_builtinVariables = this$21.from__sc_IterableOnce__sci_Map(elems$1)
|
|
42441
42529
|
}
|
|
42442
42530
|
function $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ) {
|
|
42531
|
+
if ((typ instanceof $c_Lcom_vinctus_oql_CharacterType)) {
|
|
42532
|
+
var x$1 = $as_Lcom_vinctus_oql_CharacterType(typ);
|
|
42533
|
+
var this$2 = $n(x$1);
|
|
42534
|
+
var x11 = this$2.Lcom_vinctus_oql_CharacterType__f_n;
|
|
42535
|
+
return (("CHAR(" + x11) + ")")
|
|
42536
|
+
};
|
|
42443
42537
|
var x = $m_Lcom_vinctus_oql_TextType$();
|
|
42444
42538
|
if ((x === typ)) {
|
|
42445
42539
|
return "TEXT"
|
|
@@ -42448,54 +42542,62 @@ function $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifi
|
|
|
42448
42542
|
if ((x$3 === typ)) {
|
|
42449
42543
|
return "INTEGER"
|
|
42450
42544
|
};
|
|
42451
|
-
var x$5 = $
|
|
42545
|
+
var x$5 = $m_Lcom_vinctus_oql_SmallintType$();
|
|
42452
42546
|
if ((x$5 === typ)) {
|
|
42453
|
-
return "
|
|
42547
|
+
return "SMALLINT"
|
|
42454
42548
|
};
|
|
42455
|
-
var x$7 = $
|
|
42549
|
+
var x$7 = $m_Lcom_vinctus_oql_BooleanType$();
|
|
42456
42550
|
if ((x$7 === typ)) {
|
|
42551
|
+
return "BOOLEAN"
|
|
42552
|
+
};
|
|
42553
|
+
var x$9 = $m_Lcom_vinctus_oql_BigintType$();
|
|
42554
|
+
if ((x$9 === typ)) {
|
|
42457
42555
|
return "BIGINT"
|
|
42458
42556
|
};
|
|
42459
42557
|
if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
|
|
42460
|
-
var x$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
|
|
42461
|
-
var this$
|
|
42462
|
-
var x7 = this$
|
|
42463
|
-
var this$
|
|
42464
|
-
var x8 = this$
|
|
42558
|
+
var x$1$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
|
|
42559
|
+
var this$4 = $n(x$1$1);
|
|
42560
|
+
var x7 = this$4.Lcom_vinctus_oql_DecimalType__f_precision;
|
|
42561
|
+
var this$5 = $n(x$1$1);
|
|
42562
|
+
var x8 = this$5.Lcom_vinctus_oql_DecimalType__f_scale;
|
|
42465
42563
|
return (((("NUMERIC(" + x7) + ", ") + x8) + ")")
|
|
42466
42564
|
};
|
|
42467
|
-
var x$
|
|
42468
|
-
if ((x$
|
|
42565
|
+
var x$11 = $m_Lcom_vinctus_oql_DateType$();
|
|
42566
|
+
if ((x$11 === typ)) {
|
|
42469
42567
|
return "DATE"
|
|
42470
42568
|
};
|
|
42471
|
-
var x$
|
|
42472
|
-
if ((x$
|
|
42569
|
+
var x$13 = $m_Lcom_vinctus_oql_FloatType$();
|
|
42570
|
+
if ((x$13 === typ)) {
|
|
42473
42571
|
return "DOUBLE PRECISION"
|
|
42474
42572
|
};
|
|
42475
|
-
var x$
|
|
42476
|
-
if ((x$
|
|
42573
|
+
var x$15 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
42574
|
+
if ((x$15 === typ)) {
|
|
42477
42575
|
return "UUID"
|
|
42478
42576
|
};
|
|
42479
|
-
var x$
|
|
42480
|
-
if ((x$
|
|
42577
|
+
var x$17 = $m_Lcom_vinctus_oql_TimestampType$();
|
|
42578
|
+
if ((x$17 === typ)) {
|
|
42481
42579
|
return "TIMESTAMP WITHOUT TIME ZONE"
|
|
42482
42580
|
};
|
|
42483
42581
|
if ((typ instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
42484
|
-
var x$1$
|
|
42485
|
-
var this$
|
|
42486
|
-
var x4 = this$
|
|
42582
|
+
var x$1$2 = $as_Lcom_vinctus_oql_ManyToOneType(typ);
|
|
42583
|
+
var this$7 = $n(x$1$2);
|
|
42584
|
+
var x4 = this$7.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
42487
42585
|
var typ$1 = $n($as_Lcom_vinctus_oql_Attribute($n($n(x4).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_typ;
|
|
42488
42586
|
return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ$1)
|
|
42489
42587
|
};
|
|
42490
42588
|
throw new $c_s_MatchError(typ)
|
|
42491
42589
|
}
|
|
42492
42590
|
function $f_Lcom_vinctus_oql_PGDataSource__mapPKType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ) {
|
|
42493
|
-
var x = $
|
|
42591
|
+
var x = $m_Lcom_vinctus_oql_SmallintType$();
|
|
42494
42592
|
if ((x === typ)) {
|
|
42495
|
-
return "
|
|
42593
|
+
return "SMALLSERIAL"
|
|
42496
42594
|
};
|
|
42497
|
-
var x$3 = $
|
|
42595
|
+
var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
42498
42596
|
if ((x$3 === typ)) {
|
|
42597
|
+
return "SERIAL"
|
|
42598
|
+
};
|
|
42599
|
+
var x$5 = $m_Lcom_vinctus_oql_BigintType$();
|
|
42600
|
+
if ((x$5 === typ)) {
|
|
42499
42601
|
return "BIGSERIAL"
|
|
42500
42602
|
};
|
|
42501
42603
|
if ($is_Lcom_vinctus_oql_Datatype(typ)) {
|
|
@@ -42514,6 +42616,10 @@ function $f_Lcom_vinctus_oql_PGDataSource__reverseMapType__T__Lcom_vinctus_oql_D
|
|
|
42514
42616
|
var $$x1 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
42515
42617
|
break
|
|
42516
42618
|
}
|
|
42619
|
+
case "smallint": {
|
|
42620
|
+
var $$x1 = $m_Lcom_vinctus_oql_SmallintType$();
|
|
42621
|
+
break
|
|
42622
|
+
}
|
|
42517
42623
|
case "integer": {
|
|
42518
42624
|
var $$x1 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
42519
42625
|
break
|
|
@@ -42618,16 +42724,20 @@ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapType__Lcom_vinctus_oql_TypeSpecif
|
|
|
42618
42724
|
if ((x === typ)) {
|
|
42619
42725
|
return "TEXT"
|
|
42620
42726
|
};
|
|
42621
|
-
var x$3 = $
|
|
42727
|
+
var x$3 = $m_Lcom_vinctus_oql_SmallintType$();
|
|
42622
42728
|
if ((x$3 === typ)) {
|
|
42623
|
-
return "
|
|
42729
|
+
return "SMALLINT"
|
|
42624
42730
|
};
|
|
42625
|
-
var x$5 = $
|
|
42731
|
+
var x$5 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
42626
42732
|
if ((x$5 === typ)) {
|
|
42627
|
-
return "
|
|
42733
|
+
return "INTEGER"
|
|
42628
42734
|
};
|
|
42629
|
-
var x$7 = $
|
|
42735
|
+
var x$7 = $m_Lcom_vinctus_oql_BooleanType$();
|
|
42630
42736
|
if ((x$7 === typ)) {
|
|
42737
|
+
return "BOOLEAN"
|
|
42738
|
+
};
|
|
42739
|
+
var x$9 = $m_Lcom_vinctus_oql_BigintType$();
|
|
42740
|
+
if ((x$9 === typ)) {
|
|
42631
42741
|
return "BIGINT"
|
|
42632
42742
|
};
|
|
42633
42743
|
if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
|
|
@@ -42638,24 +42748,24 @@ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapType__Lcom_vinctus_oql_TypeSpecif
|
|
|
42638
42748
|
var x16 = this$3.Lcom_vinctus_oql_DecimalType__f_scale;
|
|
42639
42749
|
return (((("DECIMAL(" + x15) + ", ") + x16) + ")")
|
|
42640
42750
|
};
|
|
42641
|
-
var x$
|
|
42642
|
-
if ((x$
|
|
42751
|
+
var x$11 = $m_Lcom_vinctus_oql_DateType$();
|
|
42752
|
+
if ((x$11 === typ)) {
|
|
42643
42753
|
return "DATE"
|
|
42644
42754
|
};
|
|
42645
|
-
var x$
|
|
42646
|
-
if ((x$
|
|
42755
|
+
var x$13 = $m_Lcom_vinctus_oql_FloatType$();
|
|
42756
|
+
if ((x$13 === typ)) {
|
|
42647
42757
|
return "DOUBLE"
|
|
42648
42758
|
};
|
|
42649
|
-
var x$
|
|
42650
|
-
if ((x$
|
|
42759
|
+
var x$15 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
42760
|
+
if ((x$15 === typ)) {
|
|
42651
42761
|
return "UUID"
|
|
42652
42762
|
};
|
|
42653
|
-
var x$
|
|
42654
|
-
if ((x$
|
|
42763
|
+
var x$17 = $m_Lcom_vinctus_oql_TimestampType$();
|
|
42764
|
+
if ((x$17 === typ)) {
|
|
42655
42765
|
return "TIMESTAMP"
|
|
42656
42766
|
};
|
|
42657
|
-
var x$
|
|
42658
|
-
if ((x$
|
|
42767
|
+
var x$19 = $m_Lcom_vinctus_oql_JSONType$();
|
|
42768
|
+
if ((x$19 === typ)) {
|
|
42659
42769
|
return "JSON"
|
|
42660
42770
|
};
|
|
42661
42771
|
if ((typ instanceof $c_Lcom_vinctus_oql_EnumType)) {
|
|
@@ -42674,16 +42784,20 @@ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapType__Lcom_vinctus_oql_TypeSpecif
|
|
|
42674
42784
|
throw new $c_s_MatchError(typ)
|
|
42675
42785
|
});
|
|
42676
42786
|
$c_Lcom_vinctus_oql_RDBDataSource.prototype.mapPKType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
|
|
42677
|
-
var x = $
|
|
42787
|
+
var x = $m_Lcom_vinctus_oql_SmallintType$();
|
|
42678
42788
|
if ((x === typ)) {
|
|
42679
|
-
return "
|
|
42789
|
+
return "SMALLINT AUTO"
|
|
42680
42790
|
};
|
|
42681
|
-
var x$3 = $
|
|
42791
|
+
var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
42682
42792
|
if ((x$3 === typ)) {
|
|
42683
|
-
return "
|
|
42793
|
+
return "INT AUTO"
|
|
42684
42794
|
};
|
|
42685
|
-
var x$5 = $
|
|
42795
|
+
var x$5 = $m_Lcom_vinctus_oql_BigintType$();
|
|
42686
42796
|
if ((x$5 === typ)) {
|
|
42797
|
+
return "BIGINT AUTO"
|
|
42798
|
+
};
|
|
42799
|
+
var x$7 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
42800
|
+
if ((x$7 === typ)) {
|
|
42687
42801
|
return "UUID AUTO"
|
|
42688
42802
|
};
|
|
42689
42803
|
if ($is_Lcom_vinctus_oql_Datatype(typ)) {
|
|
@@ -42702,6 +42816,10 @@ $c_Lcom_vinctus_oql_RDBDataSource.prototype.reverseMapType__T__Lcom_vinctus_oql_
|
|
|
42702
42816
|
var $$x1 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
42703
42817
|
break
|
|
42704
42818
|
}
|
|
42819
|
+
case "SMALLINT": {
|
|
42820
|
+
var $$x1 = $m_Lcom_vinctus_oql_SmallintType$();
|
|
42821
|
+
break
|
|
42822
|
+
}
|
|
42705
42823
|
case "INT": {
|
|
42706
42824
|
var $$x1 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
42707
42825
|
break
|
|
@@ -80177,6 +80295,106 @@ var $d_s_util_parsing_input_OffsetPosition = new $TypeData().initClass({
|
|
|
80177
80295
|
});
|
|
80178
80296
|
$c_s_util_parsing_input_OffsetPosition.prototype.$classData = $d_s_util_parsing_input_OffsetPosition;
|
|
80179
80297
|
/** @constructor */
|
|
80298
|
+
function $c_Lcom_vinctus_oql_CharacterType(n) {
|
|
80299
|
+
this.Lcom_vinctus_oql_CharacterType__f_isDataType = false;
|
|
80300
|
+
this.Lcom_vinctus_oql_CharacterType__f_isColumnType = false;
|
|
80301
|
+
this.Lcom_vinctus_oql_CharacterType__f_isArrayType = false;
|
|
80302
|
+
this.Lcom_vinctus_oql_CharacterType__f_n = 0;
|
|
80303
|
+
this.Lcom_vinctus_oql_CharacterType__f_n = n;
|
|
80304
|
+
$f_Lcom_vinctus_oql_Datatype__$init$__V(this)
|
|
80305
|
+
}
|
|
80306
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype = new $h_O();
|
|
80307
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.constructor = $c_Lcom_vinctus_oql_CharacterType;
|
|
80308
|
+
/** @constructor */
|
|
80309
|
+
function $h_Lcom_vinctus_oql_CharacterType() {
|
|
80310
|
+
/*<skip>*/
|
|
80311
|
+
}
|
|
80312
|
+
$h_Lcom_vinctus_oql_CharacterType.prototype = $c_Lcom_vinctus_oql_CharacterType.prototype;
|
|
80313
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.isDataType__Z = (function() {
|
|
80314
|
+
return this.Lcom_vinctus_oql_CharacterType__f_isDataType
|
|
80315
|
+
});
|
|
80316
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.isColumnType__Z = (function() {
|
|
80317
|
+
return this.Lcom_vinctus_oql_CharacterType__f_isColumnType
|
|
80318
|
+
});
|
|
80319
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.isArrayType__Z = (function() {
|
|
80320
|
+
return this.Lcom_vinctus_oql_CharacterType__f_isArrayType
|
|
80321
|
+
});
|
|
80322
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.com$vinctus$oql$Datatype$_setter_$isDataType_$eq__Z__V = (function(x$0) {
|
|
80323
|
+
this.Lcom_vinctus_oql_CharacterType__f_isDataType = x$0
|
|
80324
|
+
});
|
|
80325
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.com$vinctus$oql$Datatype$_setter_$isColumnType_$eq__Z__V = (function(x$0) {
|
|
80326
|
+
this.Lcom_vinctus_oql_CharacterType__f_isColumnType = x$0
|
|
80327
|
+
});
|
|
80328
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.com$vinctus$oql$Datatype$_setter_$isArrayType_$eq__Z__V = (function(x$0) {
|
|
80329
|
+
this.Lcom_vinctus_oql_CharacterType__f_isArrayType = x$0
|
|
80330
|
+
});
|
|
80331
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.productIterator__sc_Iterator = (function() {
|
|
80332
|
+
return new $c_s_Product$$anon$1(this)
|
|
80333
|
+
});
|
|
80334
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.hashCode__I = (function() {
|
|
80335
|
+
var acc = (-889275714);
|
|
80336
|
+
var hash = acc;
|
|
80337
|
+
var data = $f_T__hashCode__I("CharacterType");
|
|
80338
|
+
acc = $m_sr_Statics$().mix__I__I__I(hash, data);
|
|
80339
|
+
var hash$1 = acc;
|
|
80340
|
+
var data$1 = this.Lcom_vinctus_oql_CharacterType__f_n;
|
|
80341
|
+
acc = $m_sr_Statics$().mix__I__I__I(hash$1, data$1);
|
|
80342
|
+
var hash$2 = acc;
|
|
80343
|
+
return $m_sr_Statics$().finalizeHash__I__I__I(hash$2, 1)
|
|
80344
|
+
});
|
|
80345
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.equals__O__Z = (function(x$0) {
|
|
80346
|
+
if ((this === x$0)) {
|
|
80347
|
+
return true
|
|
80348
|
+
} else if ((x$0 instanceof $c_Lcom_vinctus_oql_CharacterType)) {
|
|
80349
|
+
var x$0$2 = $as_Lcom_vinctus_oql_CharacterType(x$0);
|
|
80350
|
+
return ((this.Lcom_vinctus_oql_CharacterType__f_n === $n(x$0$2).Lcom_vinctus_oql_CharacterType__f_n) && ($n(x$0$2), true))
|
|
80351
|
+
} else {
|
|
80352
|
+
return false
|
|
80353
|
+
}
|
|
80354
|
+
});
|
|
80355
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.toString__T = (function() {
|
|
80356
|
+
return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
|
|
80357
|
+
});
|
|
80358
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.productArity__I = (function() {
|
|
80359
|
+
return 1
|
|
80360
|
+
});
|
|
80361
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.productPrefix__T = (function() {
|
|
80362
|
+
return "CharacterType"
|
|
80363
|
+
});
|
|
80364
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.productElement__I__O = (function(n) {
|
|
80365
|
+
if ((n === 0)) {
|
|
80366
|
+
return this.Lcom_vinctus_oql_CharacterType__f_n
|
|
80367
|
+
};
|
|
80368
|
+
throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
|
|
80369
|
+
});
|
|
80370
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.productElementName__I__T = (function(n) {
|
|
80371
|
+
if ((n === 0)) {
|
|
80372
|
+
return "n"
|
|
80373
|
+
};
|
|
80374
|
+
throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
|
|
80375
|
+
});
|
|
80376
|
+
function $as_Lcom_vinctus_oql_CharacterType(obj) {
|
|
80377
|
+
return (((obj instanceof $c_Lcom_vinctus_oql_CharacterType) || (obj === null)) ? obj : $throwClassCastException(obj, "com.vinctus.oql.CharacterType"))
|
|
80378
|
+
}
|
|
80379
|
+
function $isArrayOf_Lcom_vinctus_oql_CharacterType(obj, depth) {
|
|
80380
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_vinctus_oql_CharacterType)))
|
|
80381
|
+
}
|
|
80382
|
+
function $asArrayOf_Lcom_vinctus_oql_CharacterType(obj, depth) {
|
|
80383
|
+
return (($isArrayOf_Lcom_vinctus_oql_CharacterType(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.vinctus.oql.CharacterType;", depth))
|
|
80384
|
+
}
|
|
80385
|
+
var $d_Lcom_vinctus_oql_CharacterType = new $TypeData().initClass({
|
|
80386
|
+
Lcom_vinctus_oql_CharacterType: 0
|
|
80387
|
+
}, false, "com.vinctus.oql.CharacterType", {
|
|
80388
|
+
Lcom_vinctus_oql_CharacterType: 1,
|
|
80389
|
+
O: 1,
|
|
80390
|
+
Lcom_vinctus_oql_TypeSpecifier: 1,
|
|
80391
|
+
Lcom_vinctus_oql_Datatype: 1,
|
|
80392
|
+
s_Equals: 1,
|
|
80393
|
+
s_Product: 1,
|
|
80394
|
+
Ljava_io_Serializable: 1
|
|
80395
|
+
});
|
|
80396
|
+
$c_Lcom_vinctus_oql_CharacterType.prototype.$classData = $d_Lcom_vinctus_oql_CharacterType;
|
|
80397
|
+
/** @constructor */
|
|
80180
80398
|
function $c_Lcom_vinctus_oql_DMLEntity(name, actualName, attributes) {
|
|
80181
80399
|
this.Lcom_vinctus_oql_DMLEntity__f_name = null;
|
|
80182
80400
|
this.Lcom_vinctus_oql_DMLEntity__f_actualName = null;
|
|
@@ -103414,6 +103632,82 @@ function $m_Lcom_vinctus_oql_JSONType$() {
|
|
|
103414
103632
|
return $n_Lcom_vinctus_oql_JSONType$
|
|
103415
103633
|
}
|
|
103416
103634
|
/** @constructor */
|
|
103635
|
+
function $c_Lcom_vinctus_oql_SmallintType$() {
|
|
103636
|
+
this.Lcom_vinctus_oql_SmallintType$__f_isDataType = false;
|
|
103637
|
+
this.Lcom_vinctus_oql_SmallintType$__f_isColumnType = false;
|
|
103638
|
+
this.Lcom_vinctus_oql_SmallintType$__f_isArrayType = false;
|
|
103639
|
+
$n_Lcom_vinctus_oql_SmallintType$ = this;
|
|
103640
|
+
$f_Lcom_vinctus_oql_Datatype__$init$__V(this)
|
|
103641
|
+
}
|
|
103642
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype = new $h_O();
|
|
103643
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.constructor = $c_Lcom_vinctus_oql_SmallintType$;
|
|
103644
|
+
/** @constructor */
|
|
103645
|
+
function $h_Lcom_vinctus_oql_SmallintType$() {
|
|
103646
|
+
/*<skip>*/
|
|
103647
|
+
}
|
|
103648
|
+
$h_Lcom_vinctus_oql_SmallintType$.prototype = $c_Lcom_vinctus_oql_SmallintType$.prototype;
|
|
103649
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.isDataType__Z = (function() {
|
|
103650
|
+
return this.Lcom_vinctus_oql_SmallintType$__f_isDataType
|
|
103651
|
+
});
|
|
103652
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.isColumnType__Z = (function() {
|
|
103653
|
+
return this.Lcom_vinctus_oql_SmallintType$__f_isColumnType
|
|
103654
|
+
});
|
|
103655
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.isArrayType__Z = (function() {
|
|
103656
|
+
return this.Lcom_vinctus_oql_SmallintType$__f_isArrayType
|
|
103657
|
+
});
|
|
103658
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.com$vinctus$oql$Datatype$_setter_$isDataType_$eq__Z__V = (function(x$0) {
|
|
103659
|
+
this.Lcom_vinctus_oql_SmallintType$__f_isDataType = x$0
|
|
103660
|
+
});
|
|
103661
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.com$vinctus$oql$Datatype$_setter_$isColumnType_$eq__Z__V = (function(x$0) {
|
|
103662
|
+
this.Lcom_vinctus_oql_SmallintType$__f_isColumnType = x$0
|
|
103663
|
+
});
|
|
103664
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.com$vinctus$oql$Datatype$_setter_$isArrayType_$eq__Z__V = (function(x$0) {
|
|
103665
|
+
this.Lcom_vinctus_oql_SmallintType$__f_isArrayType = x$0
|
|
103666
|
+
});
|
|
103667
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.productIterator__sc_Iterator = (function() {
|
|
103668
|
+
return new $c_s_Product$$anon$1(this)
|
|
103669
|
+
});
|
|
103670
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.hashCode__I = (function() {
|
|
103671
|
+
return 1213752578
|
|
103672
|
+
});
|
|
103673
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.toString__T = (function() {
|
|
103674
|
+
return "SmallintType"
|
|
103675
|
+
});
|
|
103676
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.productArity__I = (function() {
|
|
103677
|
+
return 0
|
|
103678
|
+
});
|
|
103679
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.productPrefix__T = (function() {
|
|
103680
|
+
return "SmallintType"
|
|
103681
|
+
});
|
|
103682
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.productElement__I__O = (function(n) {
|
|
103683
|
+
throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
|
|
103684
|
+
});
|
|
103685
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.productElementName__I__T = (function(n) {
|
|
103686
|
+
throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
|
|
103687
|
+
});
|
|
103688
|
+
var $d_Lcom_vinctus_oql_SmallintType$ = new $TypeData().initClass({
|
|
103689
|
+
Lcom_vinctus_oql_SmallintType$: 0
|
|
103690
|
+
}, false, "com.vinctus.oql.SmallintType$", {
|
|
103691
|
+
Lcom_vinctus_oql_SmallintType$: 1,
|
|
103692
|
+
O: 1,
|
|
103693
|
+
Lcom_vinctus_oql_TypeSpecifier: 1,
|
|
103694
|
+
Lcom_vinctus_oql_Datatype: 1,
|
|
103695
|
+
s_Equals: 1,
|
|
103696
|
+
s_Product: 1,
|
|
103697
|
+
Ljava_io_Serializable: 1,
|
|
103698
|
+
s_deriving_Mirror: 1,
|
|
103699
|
+
s_deriving_Mirror$Product: 1,
|
|
103700
|
+
s_deriving_Mirror$Singleton: 1
|
|
103701
|
+
});
|
|
103702
|
+
$c_Lcom_vinctus_oql_SmallintType$.prototype.$classData = $d_Lcom_vinctus_oql_SmallintType$;
|
|
103703
|
+
var $n_Lcom_vinctus_oql_SmallintType$;
|
|
103704
|
+
function $m_Lcom_vinctus_oql_SmallintType$() {
|
|
103705
|
+
if ((!$n_Lcom_vinctus_oql_SmallintType$)) {
|
|
103706
|
+
$n_Lcom_vinctus_oql_SmallintType$ = new $c_Lcom_vinctus_oql_SmallintType$()
|
|
103707
|
+
};
|
|
103708
|
+
return $n_Lcom_vinctus_oql_SmallintType$
|
|
103709
|
+
}
|
|
103710
|
+
/** @constructor */
|
|
103417
103711
|
function $c_Lcom_vinctus_oql_TextType$() {
|
|
103418
103712
|
this.Lcom_vinctus_oql_TextType$__f_isDataType = false;
|
|
103419
103713
|
this.Lcom_vinctus_oql_TextType$__f_isColumnType = false;
|