MySQL4OCL: A Stored Procedure-Based MySQL Code Generator for OCL

Marina Egea, Carolina Dania, Manuel Clavel

Abstract


In this paper we introduce a MySQL code generator for a significant subset of OCL expressions which is based on the use of stored procedures for mapping OCL iterators. Our code generator is defined recursively over the structure of OCL expressions. We discuss the class of OCL expressions covered by our definition (which includes, possibly nested, iterator expressions) as well as some extensions needed to cover the full OCL language. We also discuss the efficiency of the MySQL code produced by our code generator, and compare it with previous known results on evaluating OCL expressions on medium-large scenarios. We have implemented our code generator in the MySQL4OCL tool.

Full Text:

PDF


DOI: http://dx.doi.org/10.14279/tuj.eceasst.36.445

DOI (PDF): http://dx.doi.org/10.14279/tuj.eceasst.36.445.430

Hosted By Universitätsbibliothek TU Berlin.