OCL2PSQL: An OCL-to-SQL Code-Generator for Model-Driven Engineering

被引:3
|
作者
Hoang Nguyen Phuoc Bao [1 ]
Clavel, Manuel [1 ]
机构
[1] Vietnamese German Univ, Fac Engn, Thu Dau Mot City, Vietnam
关键词
OCL; SQL; Model-driven engineering; Code-generation;
D O I
10.1007/978-3-030-35653-8_13
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The Object Constraint Language (OCL) is a textual, declarative language typically used as part of the UML standard for specifying constraints and queries on models. Several attempts have been proposed in the past for translating OCL expressions into SQL queries in the context of Model Driven Engineering (MDE). To cope with OCL expressions that include iterators, previous attempts resorted to imperative features (loops, cursors) of SQL, with the consequent loss of efficiency. In this paper, we define (and implement) a novel mapping from OCL to SQL that covers (possibly nested) iterators, without resorting to imperative, non-declarative features of SQL. We show with a preliminary benchmark that our mapping generates SQL queries that can be efficiently executed on mid- and large-size SQL databases.
引用
收藏
页码:185 / 203
页数:19
相关论文
共 46 条
  • [1] SQL-PL4OCL: an automatic code generator from OCL to SQL procedural language
    Marina Egea
    Carolina Dania
    [J]. Software & Systems Modeling, 2019, 18 : 769 - 791
  • [2] SQL-PL4OCL: an automatic code generator from OCL to SQL procedural language
    Egea, Marina
    Dania, Carolina
    [J]. SOFTWARE AND SYSTEMS MODELING, 2019, 18 (01): : 769 - 791
  • [3] SQL-PL4OCL : An automatic code generator from OCL to SQL Procedural Language
    Egea, Marina
    Dania, Carolina
    [J]. 2017 ACM/IEEE 20TH INTERNATIONAL CONFERENCE ON MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS (MODELS 2017), 2017, : 54 - 54
  • [4] OCL and model driven engineering
    Bézivin, J
    Baar, T
    Gardner, T
    Gogolla, M
    Hähnle, RH
    Hussmann, H
    Patrascoiu, O
    Schmitt, PH
    Warmer, J
    [J]. UML MODELING LANGUAGES AND APPLICATIONS, 2005, 3297 : 67 - 75
  • [5] Security Requirements Formalized with OCL in a Model-Driven Approach
    Borek, Marian
    Moebius, Nina
    Stenzel, Kurt
    Reif, Wolfgang
    [J]. 2013 3RD INTERNATIONAL WORKSHOP ON MODEL-DRIVEN REQUIREMENTS ENGINEERING (MODRE), 2013, : 65 - 73
  • [6] Applying a Model-Driven Approach for UML/OCL Constraints: Application to NoSQL Databases
    Abdelhadi, Fatma
    Brahim, Amal Ait
    Zurfluh, Gilles
    [J]. ON THE MOVE TO MEANINGFUL INTERNET SYSTEMS: OTM 2019 CONFERENCES, 2019, 11877 : 646 - 660
  • [7] Model-driven approach to modeling and validating integrity constraints for XML with OCL and Schematron
    Maly, Jakub
    Necasky, Martin
    [J]. INFORMATION SYSTEMS FRONTIERS, 2015, 17 (04) : 917 - 946
  • [8] Model-driven approach to modeling and validating integrity constraints for XML with OCL and Schematron
    Jakub Malý
    Martin Nečaský
    [J]. Information Systems Frontiers, 2015, 17 : 917 - 946
  • [9] OCL2Trigger: Deriving active mechanisms for relational databases using Model-Driven Architecture
    Al-Jumaily, Harith T.
    Cuadra, Dolores
    Martinez, Paloma
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2008, 81 (12) : 2299 - 2314
  • [10] Model-Driven Engineering of Machine Executable Code
    Eichberg, Michael
    Monperrus, Martin
    Kloppenburg, Sven
    Mezini, Mira
    [J]. MODELLING FOUNDATIONS AND APPLICATIONS, PROCEEDINGS, 2010, 6138 : 104 - +