OCL2Trigger: Deriving active mechanisms for relational databases using Model-Driven Architecture

Harith T. Al-Jumaily, Dolores Cuadra, Paloma Martínez
2008 Journal of Systems and Software  
Transforming integrity constraints into active rules or triggers for verifying database consistency pro duces a serious and complex problem related to real time behaviour that must be considered for any implementation. Our main contribution to this work is to provide a complete approach for deriving the active mechanisms for Relational Databases from the specification of the integrity constraints by using OCL. This approach is designed in accordance with the MDA approach which consists of
more » ... orm ing the specified OCL clauses into a class diagram into SQL:2003 standard triggers, then transforming the standard triggers into target DBMS triggers. We believe that developing triggers and plugging them into a given model is insufficient because the behaviour of such triggers is invisible to the developers, and therefore not controllable. For this reason, a DBMS trigger verification model is used in our approach, in order to ensure the termination of trigger execution. Our approach is implemented as an add in tool in Rational Rose called OCL2Trigger. q This work is part of the "Software Process Management Platform: Modelling, reuse and measurement". TIN2004/07083 project.
doi:10.1016/j.jss.2008.04.027 fatcat:2ivgve2lubd6pdyo4efbdaxezq