SlideShare a Scribd company logo
3
Most read
4
Most read
7
Most read
Encapsulation of
Operations, Methods &
Persistence
BY PREM LAMSAL
31
BSC.CSIT 7TH SEMESTER
Encapsulation
Encapsulation is related to the concepts of abstract data types and information
hiding in programming languages.
Encapsulation is a mechanism of binding data with functions.
Encapsulation of Operations
The concepts of encapsulation is applied to database objects in ODBs by
defining the behavior of a type of object based on the operations that can be
externally applied to objects of that type.
Some operations may be used to create (insert) or destroy (delete)
The external users of the object are only made aware of the interface of the
operations, which defines the name and arguments (parameters) of each
operation.
The implementation is hidden from the external users.
Encapsulation of Operations
For database applications, the requirement that all objects be completely
encapsulated is too stringent.
One way to relax this requirement is to divide the structure of an object into
visible and hidden attributes (instance variables).
Visible attributes can be seen by and are directly accessible to the database
users and programmers via the query language.
The hidden attributes of an object are completely encapsulated and can be
accessed only through predefined operations.
Most ODMSs employ high-level query languages for accessing visible
attributes.
Encapsulation of operations, methods & persistence
Persistence
The OOPL is used to specify the method (operation) implementations as well as
other application code.
Not all objects are meant to be stored permanently in the database.
Transient objects exist in the executing program and disappear once the
program terminates.
Persistent objects are stored in the database and persist after program
termination.
The typical mechanisms for making an object persistent are naming and
reachability.
Persistence
The naming mechanism involves giving an object a unique persistent name
within a particular database.
This persistence object name can be given via a specific statement or operation
in the program
The named persistent objects are used as entry points to the database through
which users and applications can start their database access.
It is not practical to give name to all object in large database in thousands of
objects so, some objects are made persistence using second mechanism called
reachability.
Persistence : Reachability
The reachability mechanism works by making the object reachable from some
other persistent object.
An object B is said to be reachable from an object A if a sequence of references
in the database lead from object A to object B.
If we first create a named persistent object N, whose state is a set (or possibly a
bag) of objects of some class C, we can make objects of C persistent by adding
them to the set, thus making them reachable from N.
Hence, N is a named object that defines a persistent collection of objects of
class C. In the object model standard, N is called the extent of C.
Persistence
Thank you !
For more please visit : http://premlamsal.com.np

More Related Content

What's hot (20)

PPT
Oodbms ch 20
saurabhshertukde
 
PPT
11. Storage and File Structure in DBMS
koolkampus
 
PPTX
Database Management System
Nishant Munjal
 
PPTX
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Gyanmanjari Institute Of Technology
 
PPT
Distributed Database System
Sulemang
 
PPSX
Parallel Database
VESIT/University of Mumbai
 
PPTX
Distributed database
ReachLocal Services India
 
PPT
Object Oriented Modeling and Design with UML
Malek Sumaiya
 
PPTX
Introduction to Oracle Database
puja_dhar
 
PPTX
Concurrency Control in Database Management System
Janki Shah
 
PPTX
Relational Database Design
Archit Saxena
 
PPTX
Distributed database management system
Pooja Dixit
 
PPTX
Object oriented database
Md. Hasan Imam Bijoy
 
PDF
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
PPTX
Object oriented database concepts
Temesgenthanks
 
PDF
Database backup and recovery
Anne Lee
 
PPT
Distributed System-Multicast & Indirect communication
MNM Jain Engineering College
 
PPTX
Ordbms
ramandeep brar
 
PDF
Serializability
Pyingkodi Maran
 
PPTX
Data mining primitives
lavanya marichamy
 
Oodbms ch 20
saurabhshertukde
 
11. Storage and File Structure in DBMS
koolkampus
 
Database Management System
Nishant Munjal
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Gyanmanjari Institute Of Technology
 
Distributed Database System
Sulemang
 
Parallel Database
VESIT/University of Mumbai
 
Distributed database
ReachLocal Services India
 
Object Oriented Modeling and Design with UML
Malek Sumaiya
 
Introduction to Oracle Database
puja_dhar
 
Concurrency Control in Database Management System
Janki Shah
 
Relational Database Design
Archit Saxena
 
Distributed database management system
Pooja Dixit
 
Object oriented database
Md. Hasan Imam Bijoy
 
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
Object oriented database concepts
Temesgenthanks
 
Database backup and recovery
Anne Lee
 
Distributed System-Multicast & Indirect communication
MNM Jain Engineering College
 
Serializability
Pyingkodi Maran
 
Data mining primitives
lavanya marichamy
 

Similar to Encapsulation of operations, methods & persistence (20)

PPTX
Adbms 12 encapsulation and its benefits
Vaibhav Khanna
 
PPTX
Concepts for Object Oriented Databases.ppt
nafsigenet
 
PPTX
Chapter 1 Concepts for Object-oriented Databases.pptx
haymanottaddess2015m
 
PDF
Post-graduate course: Object technology: Persistence.
Baltasar García Perez-Schofield
 
PPT
7 data management design
Châu Thanh Chương
 
PPT
Introduction to odbms
ajay pashankar
 
PDF
Adv DB - Full Handout.pdf
3BRBoruMedia
 
PPTX
Introduction
Preeti Mishra
 
PPT
ch8.ppt for sevenyh sshgsfdveheybdv dhdg
ssuser951fc8
 
ODP
BIS08 Application Development - II
Prithwis Mukerjee
 
PPT
Chapter 1 - Concepts for Object Databases.ppt
Shemse Shukre
 
PPSX
ADO.NET
Farzad Wadia
 
PPTX
Abstraction file
Hoang Nguyen
 
PPTX
Abstraction file
Luis Goldster
 
PPTX
Abstraction file
Tony Nguyen
 
PPTX
Abstraction file
Fraboni Ec
 
PPTX
Abstraction file
James Wong
 
PPTX
Abstraction file
Young Alista
 
PPTX
Abstraction file
Harry Potter
 
PPT
Database administration and management chapter 12
saniaafzalf1f2f3
 
Adbms 12 encapsulation and its benefits
Vaibhav Khanna
 
Concepts for Object Oriented Databases.ppt
nafsigenet
 
Chapter 1 Concepts for Object-oriented Databases.pptx
haymanottaddess2015m
 
Post-graduate course: Object technology: Persistence.
Baltasar García Perez-Schofield
 
7 data management design
Châu Thanh Chương
 
Introduction to odbms
ajay pashankar
 
Adv DB - Full Handout.pdf
3BRBoruMedia
 
Introduction
Preeti Mishra
 
ch8.ppt for sevenyh sshgsfdveheybdv dhdg
ssuser951fc8
 
BIS08 Application Development - II
Prithwis Mukerjee
 
Chapter 1 - Concepts for Object Databases.ppt
Shemse Shukre
 
ADO.NET
Farzad Wadia
 
Abstraction file
Hoang Nguyen
 
Abstraction file
Luis Goldster
 
Abstraction file
Tony Nguyen
 
Abstraction file
Fraboni Ec
 
Abstraction file
James Wong
 
Abstraction file
Young Alista
 
Abstraction file
Harry Potter
 
Database administration and management chapter 12
saniaafzalf1f2f3
 
Ad

Recently uploaded (20)

PDF
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
PPTX
Exploring Multilingual Embeddings for Italian Semantic Search: A Pretrained a...
Sease
 
PDF
Context Engineering for AI Agents, approaches, memories.pdf
Tamanna
 
PDF
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays
 
PPTX
Advanced_NLP_with_Transformers_PPT_final 50.pptx
Shiwani Gupta
 
PDF
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
PPTX
AI Presentation Tool Pitch Deck Presentation.pptx
ShyamPanthavoor1
 
PDF
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
PDF
Early_Diabetes_Detection_using_Machine_L.pdf
maria879693
 
PPTX
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
PDF
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
PPTX
GenAI-Introduction-to-Copilot-for-Bing-March-2025-FOR-HUB.pptx
cleydsonborges1
 
PDF
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
PDF
Web Scraping with Google Gemini 2.0 .pdf
Tamanna
 
PDF
Merits and Demerits of DBMS over File System & 3-Tier Architecture in DBMS
MD RIZWAN MOLLA
 
PPTX
Climate Action.pptx action plan for climate
justfortalabat
 
PDF
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
PDF
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
PPTX
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
PPTX
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
Exploring Multilingual Embeddings for Italian Semantic Search: A Pretrained a...
Sease
 
Context Engineering for AI Agents, approaches, memories.pdf
Tamanna
 
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays
 
Advanced_NLP_with_Transformers_PPT_final 50.pptx
Shiwani Gupta
 
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
AI Presentation Tool Pitch Deck Presentation.pptx
ShyamPanthavoor1
 
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
Early_Diabetes_Detection_using_Machine_L.pdf
maria879693
 
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
GenAI-Introduction-to-Copilot-for-Bing-March-2025-FOR-HUB.pptx
cleydsonborges1
 
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
Web Scraping with Google Gemini 2.0 .pdf
Tamanna
 
Merits and Demerits of DBMS over File System & 3-Tier Architecture in DBMS
MD RIZWAN MOLLA
 
Climate Action.pptx action plan for climate
justfortalabat
 
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
Ad

Encapsulation of operations, methods & persistence

  • 1. Encapsulation of Operations, Methods & Persistence BY PREM LAMSAL 31 BSC.CSIT 7TH SEMESTER
  • 2. Encapsulation Encapsulation is related to the concepts of abstract data types and information hiding in programming languages. Encapsulation is a mechanism of binding data with functions.
  • 3. Encapsulation of Operations The concepts of encapsulation is applied to database objects in ODBs by defining the behavior of a type of object based on the operations that can be externally applied to objects of that type. Some operations may be used to create (insert) or destroy (delete) The external users of the object are only made aware of the interface of the operations, which defines the name and arguments (parameters) of each operation. The implementation is hidden from the external users.
  • 4. Encapsulation of Operations For database applications, the requirement that all objects be completely encapsulated is too stringent. One way to relax this requirement is to divide the structure of an object into visible and hidden attributes (instance variables). Visible attributes can be seen by and are directly accessible to the database users and programmers via the query language. The hidden attributes of an object are completely encapsulated and can be accessed only through predefined operations. Most ODMSs employ high-level query languages for accessing visible attributes.
  • 6. Persistence The OOPL is used to specify the method (operation) implementations as well as other application code. Not all objects are meant to be stored permanently in the database. Transient objects exist in the executing program and disappear once the program terminates. Persistent objects are stored in the database and persist after program termination. The typical mechanisms for making an object persistent are naming and reachability.
  • 7. Persistence The naming mechanism involves giving an object a unique persistent name within a particular database. This persistence object name can be given via a specific statement or operation in the program The named persistent objects are used as entry points to the database through which users and applications can start their database access. It is not practical to give name to all object in large database in thousands of objects so, some objects are made persistence using second mechanism called reachability.
  • 8. Persistence : Reachability The reachability mechanism works by making the object reachable from some other persistent object. An object B is said to be reachable from an object A if a sequence of references in the database lead from object A to object B. If we first create a named persistent object N, whose state is a set (or possibly a bag) of objects of some class C, we can make objects of C persistent by adding them to the set, thus making them reachable from N. Hence, N is a named object that defines a persistent collection of objects of class C. In the object model standard, N is called the extent of C.
  • 10. Thank you ! For more please visit : http://premlamsal.com.np