• DocumentCode
    596220
  • Title

    Automated Insertion of Exception Handling for Key and Referential Constraints

  • Author

    Kaiping Liu ; Hee Beng Kuan Tan

  • Author_Institution
    Sch. of Electr. & Electron. Eng., Nanyang Technol. Univ., Singapore, Singapore
  • Volume
    1
  • fYear
    2012
  • fDate
    4-7 Dec. 2012
  • Firstpage
    848
  • Lastpage
    856
  • Abstract
    Key and referential constraints are the two main integrity constraints in database applications. These constraints can be enforced by the Database Management System automatically. Any violation from these constraints is handled by programmer´s written code. This paper proposes an approach to relieve the burden of programmers from the mechanical coding for the exception handling of these constraints. In our approach, first SQL operations that may lead to constraint violations are identified. Then, based on SQL query patterns, the code for exception handling is generated accordingly and inserted into the program automatically. We provide two alternative ways to handle the exceptions: one is handling the exceptions without using the automated enforcement in Database Management System, the other is to handle it in conjunction with the DBMS enforcement. We have developed a tool, GEHPHP (Generation of Exception Handling for PHP Systems), and conducted experiments to verify the proposed approach.
  • Keywords
    SQL; data integrity; database management systems; exception handling; program compilers; query processing; DBMS enforcement; GEHPHP; SQL operations; SQL query patterns; automated enforcement; automated insertion; constraint violations; database applications; database management system; generation of exception handling for PHP systems; integrity constraints; key constraint; mechanical coding; programmer written code; referential constraint; Database systems; Educational institutions; Encoding; Flow graphs; Relational databases; Runtime; SQL query pattern; automatic code insertion; constraints violation; exception handling; key and referential constrains;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference (APSEC), 2012 19th Asia-Pacific
  • Conference_Location
    Hong Kong
  • ISSN
    1530-1362
  • Print_ISBN
    978-1-4673-4930-7
  • Type

    conf

  • DOI
    10.1109/APSEC.2012.17
  • Filename
    6462754