SlideShare a Scribd company logo
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

All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbmsNaresh Kumar
 
Introduction to Object Oriented databases
Introduction to Object Oriented databasesIntroduction to Object Oriented databases
Introduction to Object Oriented databases
Dr. C.V. Suresh Babu
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
Dashani Rajapaksha
 
Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
Rabin BK
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data model
AnilPokhrel7
 
Adbms 11 object structure and type constructor
Adbms 11 object structure and type constructorAdbms 11 object structure and type constructor
Adbms 11 object structure and type constructor
Vaibhav Khanna
 
Advanced sql
Advanced sqlAdvanced sql
Advanced sql
Dhani Ahmad
 
Object persistence
Object persistenceObject persistence
Object persistenceVlad Vega
 
Type constructor
Type constructorType constructor
Type constructor
krishnakanth gorantla
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
Query optimization in SQL
Query optimization in SQLQuery optimization in SQL
Query optimization in SQL
Abdul Rehman
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
Megha Patel
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
SHIKHA GAUTAM
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Attributes
AttributesAttributes
Attributes
Pooja Dixit
 
Object database standards, languages and design
Object database standards, languages and designObject database standards, languages and design
Object database standards, languages and design
Dabbal Singh Mahara
 

What's hot (20)

All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Introduction to Object Oriented databases
Introduction to Object Oriented databasesIntroduction to Object Oriented databases
Introduction to Object Oriented databases
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
 
Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data model
 
Adbms 11 object structure and type constructor
Adbms 11 object structure and type constructorAdbms 11 object structure and type constructor
Adbms 11 object structure and type constructor
 
Advanced sql
Advanced sqlAdvanced sql
Advanced sql
 
Object persistence
Object persistenceObject persistence
Object persistence
 
Type constructor
Type constructorType constructor
Type constructor
 
Data models
Data modelsData models
Data models
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
SQL Views
SQL ViewsSQL Views
SQL Views
 
Query optimization in SQL
Query optimization in SQLQuery optimization in SQL
Query optimization in SQL
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
 
Attributes
AttributesAttributes
Attributes
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
Object database standards, languages and design
Object database standards, languages and designObject database standards, languages and design
Object database standards, languages and design
 

Similar to Object oriented database

215 oodb
215 oodb215 oodb
215 oodb
trhtom90
 
OODB
OODBOODB
OODB
rajukc47
 
MIT302 Lesson 2_Advanced Database Systems.pptx
MIT302 Lesson 2_Advanced Database Systems.pptxMIT302 Lesson 2_Advanced Database Systems.pptx
MIT302 Lesson 2_Advanced Database Systems.pptx
elsagalgao
 
Chapter 1 - Concepts for Object Databases.ppt
Chapter 1 - Concepts for Object Databases.pptChapter 1 - Concepts for Object Databases.ppt
Chapter 1 - Concepts for Object Databases.ppt
Shemse Shukre
 
05 entity framework
05 entity framework05 entity framework
05 entity frameworkglubox
 
Adv DB - Full Handout.pdf
Adv DB - Full Handout.pdfAdv DB - Full Handout.pdf
Adv DB - Full Handout.pdf
3BRBoruMedia
 
Alternatives of JPA/Hibernate
Alternatives of JPA/HibernateAlternatives of JPA/Hibernate
Alternatives of JPA/Hibernate
Sunghyouk Bae
 
Ch 12 O O D B Dvlpt
Ch 12  O O  D B  DvlptCh 12  O O  D B  Dvlpt
Ch 12 O O D B Dvlptguest8fdbdd
 
CS124-L1-OOP.ppt
CS124-L1-OOP.pptCS124-L1-OOP.ppt
CS124-L1-OOP.ppt
MonishaAb1
 
Adbms 17 object query language
Adbms 17 object query languageAdbms 17 object query language
Adbms 17 object query language
Vaibhav Khanna
 
Java is an Object-Oriented Language
Java is an Object-Oriented LanguageJava is an Object-Oriented Language
Java is an Object-Oriented Language
ale8819
 
oodb.ppt
oodb.pptoodb.ppt
oodb.ppt
ISHAAGARWAL75
 
From relational data to object spaces
From relational data to object spacesFrom relational data to object spaces
From relational data to object spacesAndrea Saltarello
 
Entity framework 4.0
Entity framework 4.0Entity framework 4.0
Entity framework 4.0
Abhishek Sur
 
Multi-Model Data Query Languages and Processing Paradigms
Multi-Model Data Query Languages and Processing ParadigmsMulti-Model Data Query Languages and Processing Paradigms
Multi-Model Data Query Languages and Processing Paradigms
Jiaheng Lu
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
richardrflores1
 

Similar to Object oriented database (20)

215 oodb
215 oodb215 oodb
215 oodb
 
Oodb
OodbOodb
Oodb
 
Oodb
OodbOodb
Oodb
 
OODB
OODBOODB
OODB
 
MIT302 Lesson 2_Advanced Database Systems.pptx
MIT302 Lesson 2_Advanced Database Systems.pptxMIT302 Lesson 2_Advanced Database Systems.pptx
MIT302 Lesson 2_Advanced Database Systems.pptx
 
Chapter 1 - Concepts for Object Databases.ppt
Chapter 1 - Concepts for Object Databases.pptChapter 1 - Concepts for Object Databases.ppt
Chapter 1 - Concepts for Object Databases.ppt
 
05 entity framework
05 entity framework05 entity framework
05 entity framework
 
Adv DB - Full Handout.pdf
Adv DB - Full Handout.pdfAdv DB - Full Handout.pdf
Adv DB - Full Handout.pdf
 
Alternatives of JPA/Hibernate
Alternatives of JPA/HibernateAlternatives of JPA/Hibernate
Alternatives of JPA/Hibernate
 
Ch 12 O O D B Dvlpt
Ch 12  O O  D B  DvlptCh 12  O O  D B  Dvlpt
Ch 12 O O D B Dvlpt
 
CS124-L1-OOP.ppt
CS124-L1-OOP.pptCS124-L1-OOP.ppt
CS124-L1-OOP.ppt
 
Adbms 17 object query language
Adbms 17 object query languageAdbms 17 object query language
Adbms 17 object query language
 
java
javajava
java
 
Java is an Object-Oriented Language
Java is an Object-Oriented LanguageJava is an Object-Oriented Language
Java is an Object-Oriented Language
 
oodb.ppt
oodb.pptoodb.ppt
oodb.ppt
 
From relational data to object spaces
From relational data to object spacesFrom relational data to object spaces
From relational data to object spaces
 
Entity framework 4.0
Entity framework 4.0Entity framework 4.0
Entity framework 4.0
 
2 rel-algebra
2 rel-algebra2 rel-algebra
2 rel-algebra
 
Multi-Model Data Query Languages and Processing Paradigms
Multi-Model Data Query Languages and Processing ParadigmsMulti-Model Data Query Languages and Processing Paradigms
Multi-Model Data Query Languages and Processing Paradigms
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
 

More from Md. Hasan Imam Bijoy

Introduction to System, Simulation and Model
Introduction to System, Simulation and ModelIntroduction to System, Simulation and Model
Introduction to System, Simulation and Model
Md. Hasan Imam Bijoy
 
Introduction to Web Engineering by H.I. Bijoy
Introduction to Web Engineering by H.I. BijoyIntroduction to Web Engineering by H.I. Bijoy
Introduction to Web Engineering by H.I. Bijoy
Md. Hasan Imam Bijoy
 
Basic Accounting by Md. Hasan Imam Bijoy
Basic Accounting by Md. Hasan Imam BijoyBasic Accounting by Md. Hasan Imam Bijoy
Basic Accounting by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
Software Process and Model by Md. Hasan Imam Bijoy
Software Process and  Model by Md. Hasan Imam BijoySoftware Process and  Model by 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
Introduction to Compiler by Md. Hasan Imam BijoyIntroduction to Compiler by Md. Hasan Imam Bijoy
Introduction to Compiler by Md. Hasan Imam Bijoy
Md. Hasan Imam Bijoy
 
Encoder
EncoderEncoder
Time Division Multiplexing
Time Division MultiplexingTime Division Multiplexing
Time Division Multiplexing
Md. Hasan Imam Bijoy
 
Time management
Time management Time management
Time management
Md. Hasan Imam Bijoy
 
Impression management
Impression managementImpression management
Impression management
Md. Hasan Imam Bijoy
 
Covid 19
Covid 19Covid 19
Routing
RoutingRouting
Time and Financial Management
Time and Financial ManagementTime and Financial Management
Time and Financial Management
Md. Hasan Imam Bijoy
 

More from Md. Hasan Imam Bijoy (12)

Introduction to System, Simulation and Model
Introduction to System, Simulation and ModelIntroduction to System, Simulation and Model
Introduction to System, Simulation and Model
 
Introduction to Web Engineering by H.I. Bijoy
Introduction to Web Engineering by H.I. BijoyIntroduction to Web Engineering by H.I. Bijoy
Introduction to Web Engineering by H.I. Bijoy
 
Basic Accounting by Md. Hasan Imam Bijoy
Basic Accounting by Md. Hasan Imam BijoyBasic Accounting by Md. Hasan Imam Bijoy
Basic Accounting by Md. Hasan Imam Bijoy
 
Software Process and Model by Md. Hasan Imam Bijoy
Software Process and  Model by Md. Hasan Imam BijoySoftware Process and  Model by Md. Hasan Imam Bijoy
Software Process and Model by Md. Hasan Imam Bijoy
 
Introduction to Compiler by Md. Hasan Imam Bijoy
Introduction to Compiler by Md. Hasan Imam BijoyIntroduction to Compiler by Md. Hasan Imam Bijoy
Introduction to Compiler by Md. Hasan Imam Bijoy
 
Encoder
EncoderEncoder
Encoder
 
Time Division Multiplexing
Time Division MultiplexingTime Division Multiplexing
Time Division Multiplexing
 
Time management
Time management Time management
Time management
 
Impression management
Impression managementImpression management
Impression management
 
Covid 19
Covid 19Covid 19
Covid 19
 
Routing
RoutingRouting
Routing
 
Time and Financial Management
Time and Financial ManagementTime and Financial Management
Time and Financial Management
 

Recently uploaded

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

Object oriented database

  • 1. 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.
  • 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

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