Relational Database Migration To Object Oriented Environment: A Reengineering Approach
Relational Database Migration To Object Oriented Environment: A Reengineering Approach
I.
INTRODUCTION
III.
RELATED WORK
Pattern:
Fig. 5(a) Student table
Pattern:
Class Course
{
int course_ID;
String title;
String dept_name;
int credits;
}
Class Takes
{
int sec_ID;
int semester;
int year;
String grade;
set (Student S);
set (Course C);
}
While setting objects of Student class and Course class during
initialization of Takes class object, only those ID and
course_ID will be accepted for insertion, which have already
been set and inserted in previously initialized objects of
Student and Course class.
Rule 6: Mapping one-one/ one-many relationship
A dependency between the keys of two table/relation in both
directions leads to a one-to-one relationship. This is
implemented by adding object identifier references of each
other in both derived class.
Pattern:
class Pilot
{
String name;
int points;
}
2.
3.
4.
5.
Fig. 6
Fig. 9
V.
VII.
REFERENCES
Relational
Database
ACID (Atomicity,
Consistency, Isolation &
Durability)
Impedance
Mismatch
Speed
Handling long
transactions
Inheritence ,
Polymorphism &
Encapsulation
X
X
slower
faster