OCL2Trigger: Deriving Active Mechanisms for Relational Databases Using Model-Driven Architecture Articles uri icon

publication date

  • December 2008

start page

  • 2299

end page

  • 2314

issue

  • 12

volume

  • 81

International Standard Serial Number (ISSN)

  • 0164-1212

Electronic International Standard Serial Number (EISSN)

  • 1873-1228

abstract

  • Transforming integrity constraints into active rules or triggers for verifying database consistency produces 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 transforming 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.