OCL2PSQL: An OCL-to-SQL Code-Generator for Model-Driven Engineering
Autor: | Hoang Nguyen Phuoc Bao, Manuel Clavel |
---|---|
Rok vydání: | 2019 |
Předmět: |
SQL
Computer science Programming language InformationSystems_DATABASEMANAGEMENT Context (language use) computer.software_genre Unified Modeling Language Benchmark (computing) Code generation Model-driven architecture computer computer.programming_language Declarative programming Object Constraint Language |
Zdroj: | Future Data and Security Engineering ISBN: 9783030356521 FDSE |
DOI: | 10.1007/978-3-030-35653-8_13 |
Popis: | 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. |
Databáze: | OpenAIRE |
Externí odkaz: |
načítá se...