SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
TOPIC
Object Oriented Database
Present By:
Md. Hasan Imam Bijoy
Student of C.S.E
Email: hasan15-11743@diu.edu.bd
Daffodil International University, Dhaka, Bangladesh.
Presentation Outline:
 Object Definitions
 Object Structures
 Object-Oriented Concepts
 Object-Oriented Databases
 Object Query Language(OQL) with Example
 Object-Oriented SQL
 Advantage of OODBS etc.
Definition of an Object
 Object – User defined complex data types
• An object has structure of state (variable) and methods
(behavior/operation)
 An Object is described by four characteristics:
• Identifier : a system-wide unique id for an object
• Name : an object may also have a unique name in DB
(optional)
• Lifetime: determines if the object is persistent or transient
• Structure: Construction of objects using type constructor
Object Structure
The State (current value) of a complex object may be constructed
from other objects (or other vales) by suing certain type
constructor
Can be represent by (I,C,V)
 I is an unique id
 C is a type constructor
 V is the object state
Basic types : Atom, tuple and set
Collection type : list, bag and array
Object Oriented Concept
Abstract Data Types
 Class definition, provide extension to complex attribute types
Encapsulation
 Implementation of operation and object structure hidden
 Inheritance
 Sharing of data withing hierarchy scope, support code
reusability
Polymorphism
 Operator overloading
Object Oriented Database
Abstract Data Types
 A database system that incorporates all the important
object-oriented concepts
 Some additional feature
 Unique Object identifiers
 Persistent object handling
Object Query Language (OQL)
Declarative Query Language
 Not Computationally Complete
 Syntax based on SQL(Select, from where)
 Additional flexibility (queries with user defined operators and types)
Example of OQL
The following is a sample query
“what ate the name of the black product?”
Select distinct p.name
From Products p
Where p.color = “Black”
 Valid in both SQL and OQL, but result are different .
Result of the Query (SQL)
Product No Name Color
P1 Ford Mustang Black
P2 Toyota Celica Green
P3 Mercedes SLK Black
Result:
Name
Ford Mustang
Mercedes SLK
 The statement queries a relational
database
 Returns a table with rows
Original Table:
Result of the Query (OQL)
Product No Name Color
P1 Ford Mustang Black
P2 Toyota Celica Green
P3 Mercedes SLK Black
Original Table:
Result:
String String
Ford Mustang Mercedes SLK
 The statement queries a object
oriented database
 Returns a collection of object
Comparison
Queries look very similar in SQL and OQL, sometimes they are the
same
In fact , the result they give are very different
Query returns:
OQL SQL
Object Tuple
Collection of Objects Table
Object Oriented SQL – SQL3
Foundation for OO database management systems –
ORACLE8, DB2, etc.
New features – “relation” & “Object oriented”
Relational Feature – new data types, new predicts,
enhanced semantics, additional security and an active
database
Object Oriented Features – support for functions and
procedures
User Define Datatypes
 Creating a “row type”
Example:
Create row type AddressType(
street char(50)
city char(20));
Create row type StarType(
Name char(30)
Address AddressType)
Creating Data types
 Creating “Table”
• Create table Address of type AddressType;
• Create table MovieStar of type StarType;
• Instances of Row types are tuples in table;
Sample Query
 Find the name and street addresses of those
MovieStars who stay in the city “Columbus”;
• Select MovieStar.name,
MovieStar.address.street
From MovieStar
Where MovieStar.address.city = “Columbus”;
Complex Data & Queries:
A Water Resource Management example
 A Database of state wide water projects
 Includes a library of picture sliders
 Indexing according to predefined concepts –
prohibitively expensive
 Type of Queries
 Geographic locations
 Reservoir levels during droughts
 Recent flood condition, etc.
Complex Data & Queries:
Addressing these queries
 Linking this database to landmarks on a topographic
map
 Examining the captions for each slide
 Implementing image-understanding programs
 Inspecting images and ascertaining attributes
These type of queries necessitate dedicated “methods”
Creating Function
 Create function one() returns int as “select 1 as RESULT”
language “SQL”
Select one() as answer:
Result
Answer
1
Creating “Table” & “Methods”
 Implementation:
Create tables slides(
id int,
date date,
Caption document,
pictureCD_Image,
method containsName
(name varchar)
return boolean
as external name “matching”
language ‘C’ );
Implementation
 Sample Query
Find a picture of a reservoir with lower level which
is in “Sacramento”
Select slides P, landmark L
Where isLowWaterLevel (P.picture) and
P.containsName (L.name) and L. name=“Sacramento”;
Object-Relational Mapping
 Object-Relational Mapping (ORM) systems built on top of traditional relational databases
 Implementor provides a mapping from objects to relations
 Objects are purely transient, no permanent object identity
 Objects can be retried from database
 System uses mapping to fetch relevant data from relations and construct objects
 Updated objects are stored back in database by generating corresponding update/insert/delete statements
 The Hibernate ORM system is widely used
 described in Section 9.4.2
 Provides API to start/end transactions, fetch objects, etc.
 Provides query language operating directly on object model
 queries translated to SQL
 Limitations: overheads, especially for bulk updates
Advantage of OODBMS
 Designer can specify the structure of objects and
their behavior (methods)
 Better interaction with object-oriented language
such as Java and C++
 Definition of complex and user-defined types
 Encapsulation of operations and user-defined
methods
A Water Resource Management example
 A Database of state wide water projects
 Includes a library of picture sliders
 Indexing according to predefined concepts –
prohibitively expensive
 Type of Queries
 Geographic locations
 Reservoir levels during droughts
 Recent flood condition, etc.
Thank you

More Related Content

What's hot (20)

PPTX
Adbms 11 object structure and type constructor
Vaibhav Khanna
 
PPT
Object Oriented Database Management System
Ajay Jha
 
PPTX
Ordbms
ramandeep brar
 
PPTX
Object oriented database model
PAQUIAAIZEL
 
PPT
Data preprocessing
Jason Rodrigues
 
PPT
File organization 1
Rupali Rana
 
PPTX
Introduction to pandas
Piyush rai
 
PPSX
Functional dependency
Dashani Rajapaksha
 
PPT
Entity relationship modelling
Dr. C.V. Suresh Babu
 
PDF
Introduction to Data Warehouse
SOMASUNDARAM T
 
PPS
Data models
Anuj Modi
 
PPTX
Structured Query Language (SQL)
Syed Hassan Ali
 
PPTX
Relational database
Megha Sharma
 
PPTX
Object oriented dbms
Kartik Kalpande Patil
 
PPT
Normalization case
Prosanta Ghosh
 
PPT
Files Vs DataBase
Dr. C.V. Suresh Babu
 
PPT
ER-Model-ER Diagram
Saranya Natarajan
 
PPT
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
PPT
13. Query Processing in DBMS
koolkampus
 
PPTX
Introduction to data structure ppt
NalinNishant3
 
Adbms 11 object structure and type constructor
Vaibhav Khanna
 
Object Oriented Database Management System
Ajay Jha
 
Object oriented database model
PAQUIAAIZEL
 
Data preprocessing
Jason Rodrigues
 
File organization 1
Rupali Rana
 
Introduction to pandas
Piyush rai
 
Functional dependency
Dashani Rajapaksha
 
Entity relationship modelling
Dr. C.V. Suresh Babu
 
Introduction to Data Warehouse
SOMASUNDARAM T
 
Data models
Anuj Modi
 
Structured Query Language (SQL)
Syed Hassan Ali
 
Relational database
Megha Sharma
 
Object oriented dbms
Kartik Kalpande Patil
 
Normalization case
Prosanta Ghosh
 
Files Vs DataBase
Dr. C.V. Suresh Babu
 
ER-Model-ER Diagram
Saranya Natarajan
 
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
13. Query Processing in DBMS
koolkampus
 
Introduction to data structure ppt
NalinNishant3
 

Similar to Object oriented database (20)

PPT
OODB
rajukc47
 
PPT
Oodb
danish wadood
 
PPT
Oodb
danish wadood
 
PPT
215 oodb
trhtom90
 
PPT
oodb.ppt
ISHAAGARWAL75
 
PPTX
Odbms concepts
Dabbal Singh Mahara
 
PPTX
MIT302 Lesson 2_Advanced Database Systems.pptx
elsagalgao
 
PPT
Chapter 1 - Concepts for Object Databases.ppt
Shemse Shukre
 
PDF
Adv DB - Full Handout.pdf
3BRBoruMedia
 
PPTX
ORDBMS.pptx
Anitta Antony
 
PDF
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
amarsiraj2020
 
PDF
Comparison of Relational Database and Object Oriented Database
Editor IJMTER
 
PPT
Introduction to Object-Relational Mapping
Ali Shakiba
 
PPTX
Object oriented modeling
Pooja Dixit
 
PPT
Ch21-OODB.ppt
fojep23014
 
KEY
Object persistence
Vlad Vega
 
PDF
Advanced database lab oracle structure query language
afendimohammed288
 
PDF
Data Management Evolution of the data management systems
derntean5
 
OODB
rajukc47
 
215 oodb
trhtom90
 
oodb.ppt
ISHAAGARWAL75
 
Odbms concepts
Dabbal Singh Mahara
 
MIT302 Lesson 2_Advanced Database Systems.pptx
elsagalgao
 
Chapter 1 - Concepts for Object Databases.ppt
Shemse Shukre
 
Adv DB - Full Handout.pdf
3BRBoruMedia
 
ORDBMS.pptx
Anitta Antony
 
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
amarsiraj2020
 
Comparison of Relational Database and Object Oriented Database
Editor IJMTER
 
Introduction to Object-Relational Mapping
Ali Shakiba
 
Object oriented modeling
Pooja Dixit
 
Ch21-OODB.ppt
fojep23014
 
Object persistence
Vlad Vega
 
Advanced database lab oracle structure query language
afendimohammed288
 
Data Management Evolution of the data management systems
derntean5
 
Ad

More from Md. Hasan Imam Bijoy (12)

PPTX
Introduction to System, Simulation and Model
Md. Hasan Imam Bijoy
 
PPTX
Introduction to Web Engineering by H.I. Bijoy
Md. Hasan Imam Bijoy
 
PPTX
Basic Accounting by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
PPTX
Software Process and Model by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
PPTX
Introduction to Compiler by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
PPTX
Time Division Multiplexing
Md. Hasan Imam Bijoy
 
PPTX
Time management
Md. Hasan Imam Bijoy
 
PPTX
Impression management
Md. Hasan Imam Bijoy
 
PPTX
Covid 19
Md. Hasan Imam Bijoy
 
PPTX
Time and Financial Management
Md. Hasan Imam Bijoy
 
Introduction to System, Simulation and Model
Md. Hasan Imam Bijoy
 
Introduction to Web Engineering by H.I. Bijoy
Md. Hasan Imam Bijoy
 
Basic Accounting by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
Software Process and Model by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
Introduction to Compiler by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
Time Division Multiplexing
Md. Hasan Imam Bijoy
 
Time management
Md. Hasan Imam Bijoy
 
Impression management
Md. Hasan Imam Bijoy
 
Time and Financial Management
Md. Hasan Imam Bijoy
 
Ad

Recently uploaded (20)

PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 

Object oriented database

  • 1. TOPIC Object Oriented Database Present By: Md. Hasan Imam Bijoy Student of C.S.E Email: [email protected] Daffodil International University, Dhaka, Bangladesh.
  • 2. Presentation Outline:  Object Definitions  Object Structures  Object-Oriented Concepts  Object-Oriented Databases  Object Query Language(OQL) with Example  Object-Oriented SQL  Advantage of OODBS etc.
  • 3. Definition of an Object  Object – User defined complex data types • An object has structure of state (variable) and methods (behavior/operation)  An Object is described by four characteristics: • Identifier : a system-wide unique id for an object • Name : an object may also have a unique name in DB (optional) • Lifetime: determines if the object is persistent or transient • Structure: Construction of objects using type constructor
  • 4. Object Structure The State (current value) of a complex object may be constructed from other objects (or other vales) by suing certain type constructor Can be represent by (I,C,V)  I is an unique id  C is a type constructor  V is the object state Basic types : Atom, tuple and set Collection type : list, bag and array
  • 5. Object Oriented Concept Abstract Data Types  Class definition, provide extension to complex attribute types Encapsulation  Implementation of operation and object structure hidden  Inheritance  Sharing of data withing hierarchy scope, support code reusability Polymorphism  Operator overloading
  • 6. Object Oriented Database Abstract Data Types  A database system that incorporates all the important object-oriented concepts  Some additional feature  Unique Object identifiers  Persistent object handling
  • 7. Object Query Language (OQL) Declarative Query Language  Not Computationally Complete  Syntax based on SQL(Select, from where)  Additional flexibility (queries with user defined operators and types)
  • 8. Example of OQL The following is a sample query “what ate the name of the black product?” Select distinct p.name From Products p Where p.color = “Black”  Valid in both SQL and OQL, but result are different .
  • 9. Result of the Query (SQL) Product No Name Color P1 Ford Mustang Black P2 Toyota Celica Green P3 Mercedes SLK Black Result: Name Ford Mustang Mercedes SLK  The statement queries a relational database  Returns a table with rows Original Table:
  • 10. Result of the Query (OQL) Product No Name Color P1 Ford Mustang Black P2 Toyota Celica Green P3 Mercedes SLK Black Original Table: Result: String String Ford Mustang Mercedes SLK  The statement queries a object oriented database  Returns a collection of object
  • 11. Comparison Queries look very similar in SQL and OQL, sometimes they are the same In fact , the result they give are very different Query returns: OQL SQL Object Tuple Collection of Objects Table
  • 12. Object Oriented SQL – SQL3 Foundation for OO database management systems – ORACLE8, DB2, etc. New features – “relation” & “Object oriented” Relational Feature – new data types, new predicts, enhanced semantics, additional security and an active database Object Oriented Features – support for functions and procedures
  • 13. User Define Datatypes  Creating a “row type” Example: Create row type AddressType( street char(50) city char(20)); Create row type StarType( Name char(30) Address AddressType)
  • 14. Creating Data types  Creating “Table” • Create table Address of type AddressType; • Create table MovieStar of type StarType; • Instances of Row types are tuples in table;
  • 15. Sample Query  Find the name and street addresses of those MovieStars who stay in the city “Columbus”; • Select MovieStar.name, MovieStar.address.street From MovieStar Where MovieStar.address.city = “Columbus”;
  • 16. Complex Data & Queries: A Water Resource Management example  A Database of state wide water projects  Includes a library of picture sliders  Indexing according to predefined concepts – prohibitively expensive  Type of Queries  Geographic locations  Reservoir levels during droughts  Recent flood condition, etc.
  • 17. Complex Data & Queries: Addressing these queries  Linking this database to landmarks on a topographic map  Examining the captions for each slide  Implementing image-understanding programs  Inspecting images and ascertaining attributes These type of queries necessitate dedicated “methods”
  • 18. Creating Function  Create function one() returns int as “select 1 as RESULT” language “SQL” Select one() as answer: Result Answer 1
  • 19. Creating “Table” & “Methods”  Implementation: Create tables slides( id int, date date, Caption document, pictureCD_Image, method containsName (name varchar) return boolean as external name “matching” language ‘C’ );
  • 20. Implementation  Sample Query Find a picture of a reservoir with lower level which is in “Sacramento” Select slides P, landmark L Where isLowWaterLevel (P.picture) and P.containsName (L.name) and L. name=“Sacramento”;
  • 21. Object-Relational Mapping  Object-Relational Mapping (ORM) systems built on top of traditional relational databases  Implementor provides a mapping from objects to relations  Objects are purely transient, no permanent object identity  Objects can be retried from database  System uses mapping to fetch relevant data from relations and construct objects  Updated objects are stored back in database by generating corresponding update/insert/delete statements  The Hibernate ORM system is widely used  described in Section 9.4.2  Provides API to start/end transactions, fetch objects, etc.  Provides query language operating directly on object model  queries translated to SQL  Limitations: overheads, especially for bulk updates
  • 22. Advantage of OODBMS  Designer can specify the structure of objects and their behavior (methods)  Better interaction with object-oriented language such as Java and C++  Definition of complex and user-defined types  Encapsulation of operations and user-defined methods
  • 23. A Water Resource Management example  A Database of state wide water projects  Includes a library of picture sliders  Indexing according to predefined concepts – prohibitively expensive  Type of Queries  Geographic locations  Reservoir levels during droughts  Recent flood condition, etc.

Editor's Notes

  • #2: NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image.