Automated insertion of exception handling for key and referential constraints

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 re...

Full description

Saved in:
Bibliographic Details
Main Authors: Liu, Kaiping, Tan, Hee Beng Kuan
Other Authors: School of Electrical and Electronic Engineering
Format: Conference or Workshop Item
Language:English
Published: 2013
Subjects:
Online Access:https://hdl.handle.net/10356/96575
http://hdl.handle.net/10220/12988
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-96575
record_format dspace
spelling sg-ntu-dr.10356-965752020-03-07T13:24:47Z Automated insertion of exception handling for key and referential constraints Liu, Kaiping Tan, Hee Beng Kuan School of Electrical and Electronic Engineering Asia-Pacific Software Engineering Conference (19th : 2012 : Hong Kong, China) DRNTU::Engineering::Electrical and electronic engineering 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. 2013-08-05T03:55:09Z 2019-12-06T19:32:41Z 2013-08-05T03:55:09Z 2019-12-06T19:32:41Z 2012 2012 Conference Paper https://hdl.handle.net/10356/96575 http://hdl.handle.net/10220/12988 10.1109/APSEC.2012.17 en
institution Nanyang Technological University
building NTU Library
country Singapore
collection DR-NTU
language English
topic DRNTU::Engineering::Electrical and electronic engineering
spellingShingle DRNTU::Engineering::Electrical and electronic engineering
Liu, Kaiping
Tan, Hee Beng Kuan
Automated insertion of exception handling for key and referential constraints
description 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.
author2 School of Electrical and Electronic Engineering
author_facet School of Electrical and Electronic Engineering
Liu, Kaiping
Tan, Hee Beng Kuan
format Conference or Workshop Item
author Liu, Kaiping
Tan, Hee Beng Kuan
author_sort Liu, Kaiping
title Automated insertion of exception handling for key and referential constraints
title_short Automated insertion of exception handling for key and referential constraints
title_full Automated insertion of exception handling for key and referential constraints
title_fullStr Automated insertion of exception handling for key and referential constraints
title_full_unstemmed Automated insertion of exception handling for key and referential constraints
title_sort automated insertion of exception handling for key and referential constraints
publishDate 2013
url https://hdl.handle.net/10356/96575
http://hdl.handle.net/10220/12988
_version_ 1681043221221736448