Object-Oriented Programming + Relational Database Features Object-Oriented Database Model
Object-Oriented Programming + Relational Database Features Object-Oriented Database Model
The figure below outlines the object-oriented database model along with its principles
and features.
Let's now take a closer look at the fundamental features of object-oriented databases.
To start, let's look at the feature of objects and classes.
The object-oriented approach considers all entities as objects. An object has properties
(state) and methods (behavior). Each object is identified using a unique object
identifier. For example, let us consider a real-world entity called 'Student'. A student
has states or properties such as a name, USN, date of birth, address, etc. Similarly, the
student has behaviors or methods including attending classes, writing exams, paying
fees, etc.
This next figure below shows how the 'Student' object can be represented.
Now let's look at the feature of complex objects and compare them to simple objects.
The object-oriented database allows for the creation of persistent objects. A persistent
object is one that lives in computer memory even after completing its execution. This
is different from the lifespan of normal objects, which expire after execution, are
destroyed immediately, and freed from memory. Object persistence solves the database
challenges of concurrency and recovery.
Advantages of Object Oriented Data Model
3. Database integrity