Concept of Object-Oriented and Distributed Database Model

OO databases try to maintain a direct correspondence between real-world and database objects so that the objects do not lose their integrity and identity and can easily be identified and operated upon. The object has two compounds and they are State (value) and behavior (operations). In an object-oriented database, objects may have an object structure of arbitrary complexity in order to contain all of the necessary information that is required describes the object. Object-oriented databases allow the designer to specify the structure of complex objects and the operations that can be applied to objects. It maintains a direct correspondence between the real-world and the database objects. A real-world object may have different names for key attributes in different relations in traditional database systems. The objects are created by a unique, system-generated object identifier or OID. The OID value of a particular object should not change. A class is understood as an entity that has a well-defined role in the application domain. An object is referred to as a particular instance of a class. An object has the structure or state (variables) and methods (behavior/operations). A distributed database system consists of loosely coupled sites that do not share any physical component. Database systems that run on each site are independent of each other. The transactions may access data at one or more sites. The data is spread over multiple machines which are also referred to as sites or nodes. Network interconnects the machines and the data is shared by users on multiple machines. The main difference between the centralized and distributed database system is that the data reside in on the single location whereas in the later the data reside in several locations. There are mainly two types of distributed database system: In a homogeneous database, all the sites have identical software. Homogeneous databases are aware of each other and agree to cooperate in processing user requests. Each site surrenders a part of its autonomy in terms of the right to change schema or software. It appears to the user as a single system. In the heterogeneous database, different sites may have used different schema and software. The difference in the schema is a major problem for query processing. The difference in software is a major problem for transaction processing. The sites may not be aware of each other and may provide only limited facilities for cooperation in transaction processing.

Summary

OO databases try to maintain a direct correspondence between real-world and database objects so that the objects do not lose their integrity and identity and can easily be identified and operated upon. The object has two compounds and they are State (value) and behavior (operations). In an object-oriented database, objects may have an object structure of arbitrary complexity in order to contain all of the necessary information that is required describes the object. Object-oriented databases allow the designer to specify the structure of complex objects and the operations that can be applied to objects. It maintains a direct correspondence between the real-world and the database objects. A real-world object may have different names for key attributes in different relations in traditional database systems. The objects are created by a unique, system-generated object identifier or OID. The OID value of a particular object should not change. A class is understood as an entity that has a well-defined role in the application domain. An object is referred to as a particular instance of a class. An object has the structure or state (variables) and methods (behavior/operations). A distributed database system consists of loosely coupled sites that do not share any physical component. Database systems that run on each site are independent of each other. The transactions may access data at one or more sites. The data is spread over multiple machines which are also referred to as sites or nodes. Network interconnects the machines and the data is shared by users on multiple machines. The main difference between the centralized and distributed database system is that the data reside in on the single location whereas in the later the data reside in several locations. There are mainly two types of distributed database system: In a homogeneous database, all the sites have identical software. Homogeneous databases are aware of each other and agree to cooperate in processing user requests. Each site surrenders a part of its autonomy in terms of the right to change schema or software. It appears to the user as a single system. In the heterogeneous database, different sites may have used different schema and software. The difference in the schema is a major problem for query processing. The difference in software is a major problem for transaction processing. The sites may not be aware of each other and may provide only limited facilities for cooperation in transaction processing.

Things to Remember

  • OO databases try to maintain a direct correspondence between real-world and database objects so that the objects do not lose their integrity and identity and can easily be identified and operated upon.
  • The object has two compounds and they are State (value) and behavior (operations).
  • In an object-oriented database, objects may have an object structure of arbitrary complexity in order to contain all of the necessary information that is required describes the object.
  • Object-oriented databases allow the designer to specify the structure of complex objects and the operations that can be applied to objects.
  • It maintains a direct correspondence between the real-world and the database objects.
  • A real-world object may have different names for key attributes in different relations in traditional database systems.
  • The objects are created by a unique, system-generated object identifier or OID. The OID value of a particular object should not change.
  • A class is understood as an entity that has a well-defined role in the application domain.
  • An object is referred to as a particular instance of a class. An object has a structure or state (variables) and methods (behavior/operations). 
  • A distributed database system consists of loosely coupled sites that do not share any physical component. Database systems that run on each site are independent of each other
  • The transactions may access data at one or more sites. The data is spread over multiple machines which are also referred to as sites or nodes.
  • Network interconnects the machines and the data is shared by users on multiple machines. The main difference between the centralized and distributed database system is that the data reside in on the single location whereas in the later the data reside in several locations.
  • In a homogeneous database, all the sites have identical software. Homogeneous databases are aware of each other and agree to cooperate in processing user requests. Each site surrenders a part of its autonomy in terms of the right to change schema or software. It appears to the user as a single system.
  • In the heterogeneous database, different sites may have used different schema and software. The difference in the schema is a major problem for query processing. The difference in software is a major problem for transaction processing. The sites may not be aware of each other and may provide only limited facilities for cooperation in transaction processing.

MCQs

No MCQs found.

Subjective Questions

Q1: What is matter?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: Anything that has mass and volume is called matter.

Q2:

What are the physical states of matter?


Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: <p>The physical states of matter are solid, liquid and gas.</p>

Q3: What is solid?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The matter which has a fixed shape and a fixed volume is called a solid.

Q4: Give any two examples of solid.
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: Any two examples of solids are rock and book.

Q5: What is liquid?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The matter which has no fixed shape but has a fixed volume is called liquid.

Q6: Give any two examples of liquid?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: Any two examples of liquid are water and milk.

Q7: What is gas?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The matter which has neither a fixed shape nor a fixed volume is called a gas.

Q8:

Give any two examples of gas.


Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: <p>Any two examples of gas are hydrogen and nitrogen.</p>

Q9: What is element?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: An element is a pure substance which is made of only one kind of atoms.

Q10: Give any two examples of element.
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: Any two examples of element are Boron and Calcium.

Q11: How many total number of elements are discovered till now?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: Till now, about 118 elements are discovered.

Q12: What is the symbol of Hydrogen and Chlorine?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The symbol of Hydrogen is H and symbol of Chlorine is Cl.

Q13: Name any two elements whose symbol is derived from their Latin name?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The names of two element whose symbol is derived from their Latin names are sodium and potassium.

Q14: What is the symbol of Argon and Chlorine?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The symbol of Argon is Ag and Chlorine is Cl.

Q15: Name any two things represented by the symbol?
Type: Very_short Difficulty: Easy

Show/Hide Answer
Answer: The symbol of an element represents the name of the element and one atoms of that element.

Q16:

What is solid? Write any four characteristics of solids.


Type: Short Difficulty: Easy

Show/Hide Answer
Answer: <p>The matter which has a fixed shape and a fixed volume is called a solid. Any four characteristics of solids are as follows,</p>
<ul>
<li>They have a fixed shape.</li>
<li>They do not flow.</li>
<li>They have fixed volume.</li>
<li>They are mostly hard.</li>
</ul>

Q17:

What is liquid? Write any four characteristics of liquid.


Type: Short Difficulty: Easy

Show/Hide Answer
Answer: <p>The matter which has no fixed shape but has a fixed volume is called liquid. Any four characteristics of liquid are as follows,</p>
<ul>
<li>They have fixed volume.</li>
<li>They cannot be compressed much.</li>
<li>They can flow from one place to another.</li>
<li>They do not have fixed shape but can take the shape of their container.</li>
</ul>

Q18:

What is gas? Write any four characteristics of the gas.


Type: Short Difficulty: Easy

Show/Hide Answer
Answer: <p>The matter which has neither a fixed shape nor a fixed volume is called a gas. Any four characteristics of gas are given below,</p>
<ul>
<li>They do not have fixed&nbsp;volume.</li>
<li>They can flow easily.</li>
<li>They can be compressed very easily.</li>
<li>They do not have fixed volume.</li>
</ul>

Q19:

What is an element? Write names of any five elements with its atomic number and symbol.


Type: Short Difficulty: Easy

Show/Hide Answer
Answer: <p>An element is a pure substance which is made of only one kind of atoms, Names of any five element with its atomic number and symbol is given below in table,</p>
<table style="height: 123px;" width="457">
<tbody>
<tr>
<td>S.No</td>
<td>Names of element</td>
<td>Atomic Number</td>
<td>Symbol</td>
</tr>
<tr>
<td>1.</td>
<td>Hydrogen</td>
<td>1</td>
<td>H</td>
</tr>
<tr>
<td>2.</td>
<td>Carbon</td>
<td>6</td>
<td>C</td>
</tr>
<tr>
<td>3.</td>
<td>Neon</td>
<td>10</td>
<td>Ne</td>
</tr>
<tr>
<td>4.</td>
<td>Sodium</td>
<td>11</td>
<td>Na</td>
</tr>
<tr>
<td>5.</td>
<td>Potassium</td>
<td>19</td>
<td>K</td>
</tr>
</tbody>
</table>

Q20:

What is a symbol? How  symbol of an element is written? Explain with examples.


Type: Short Difficulty: Easy

Show/Hide Answer
Answer: <p>The symbol is a one or two letters of an element used to represent the elements in shortform so as to write chemical reactions quickly and conveniently. Mainly symbol of most of the element is derived from their English names and only a few&nbsp;elements have their symbol that is of them is derived from their&nbsp;Latin names. About writing symbol, the first letter of the name of an element is written as the symbol of that element but if the name of two or more elements starts with the same letter then one of the element is given a one- letter symbol but all other elements are given&nbsp;two letter symbol. For example, the symbol of Hydrogen is H which is its first letter. Similarly, the names of Helium and Hydrogen starts with the same first letter,so in this case, the symbol of hydrogen is given its first letter H and the symbol of Helium is given He which its first and second letter.</p>

Videos

Introduction to matter and elements.
Introduction to Matter and Elements
Concept of Object-Oriented and Distributed Database Model

Concept of Object-Oriented and Distributed Database Model

Object Oriented Database

Overview of Object Oriented Concepts:

OO databases try to maintain a direct correspondence between real-world and database objects so that the objects do not lose their integrity and identity and can easily be identified and operated upon. Object has two compounds and they are:

  • State (value) and behavior (operations).

In an object-oriented database, objects may have an object structure of arbitrary complexity in order to contain all of the necessary information that is required describes the object. On the contrary in traditional database systems, information about a complex object is often scattered over many relations or records leading to loss of direct correspondence between a real-world object and its database representation. The internal structure of an object in OOPLs includes the specification of instance variables which holds the value that defines the internal state of the object. An instance variable is similar to the concept of an attribute except for the instance variables may be encapsulated within the object and thus are not necessarily visible to external users. Some OO models insist that all operations a user can apply to an object must be predefined. This forces to a complete encapsulation of objects. In order to encourage encapsulation an operation is defined in two parts:

  • Signature or interface of the operation specifies the operation name and arguments or parameters.
  • Method or body specifies the implementation of the operation.

Operation polymorphism refers to an operation’s ability to be applied to the different types of objects. In such situation, an operation name may refer to several distinct implementations depending on the type of object it is applied to. This feature is also called as operator overloading.

Object-oriented databases allow the designer to specify the structure of complex objects and the operations that can be applied to objects. It maintains a direct correspondence between the real-world and the database objects. A real-world object may have different names for key attributes in different relations in traditional database systems. For example: EMP_ID, SSN in different relations. An object-oriented database is known as a unique identity for each independent object stored in the database. The objects are created by a unique, system-generated object identifier or OID. The OID value of a particular object should not change.

Classes and objects:

A class is understood as an entity that has a well-defined role in the application domain. An object is referred to as a particular instance of a class. An object has structure or state (variables) and methods (behavior/operations). An object is described by four characters and they are:

  • Identifier: A system-wide unique id for an object.
  • Name: An object may also have a unique name in database which is optional.
  • Lifetime: It determines if the object is persistent or transient.
  • Structure: The construction of objects using type constructors.

Object Oriented Database Model: This model represents an entity as a class. A class captures the attributes as well as the behavior. Instances of the class are called objects. Within an object, the class attributes take on specific values which distinguish one object from another. Object Oriented Examples:

  • Class: Cat.
  • Attributes: Color, weight, breed.
  • Behavior: Scratches, sleeps, purrs.

An instance of the cat class is an object with specific attributes.

Advantages of OODBMS:

  • Easier Design-Reflect Applications
  • Modularity and Reusability
  • Incremental refinement and abstraction
  • Multiple inheritance
  • Support for multiple version and Alternatives
  • Designer can specify the structure of objects and their behavior (methods).
  • Better interaction with object-oriented languages such as Java and C++
  • Definition of complex and user-defined types.
  • Encapsulation of operations and user-defined methods.

Class Diagram: It shows the static structure of an object-oriented model such as object classes, internal structures, and relationships. Class diagram showing two classes is shown below:

.

Distributed Database System:

A distributed database system consists of loosely coupled sites that do not share any physical component. Database systems that run on each site are independent of each other. The transactions may access data at one or more sites. The data is spread over multiple machines which are also referred to as sites or nodes. Network interconnects the machines and the data is shared by users on multiple machines. The main difference between the centralized and distributed database system is that the data reside in on the single location whereas in the later the data reside in several locations. There are mainly two types of distributed database system:

  • Heterogeneous Database
  • Homogeneous Database

.

Homogeneous Database: In a homogeneous database all the sites have identical software. Homogeneous databases are aware of each other and agree to cooperate in processing user requests. Each site surrenders a part of its autonomy in terms of right to change schema or software. It appears to the user as a single system.

Heterogeneous distributed database: In heterogeneous database different sites may have used different schema and software. The difference in schema is a major problem for query processing. The difference in software is a major problem for transaction processing. The sites may not be aware of each other and may provide only limited facilities for cooperation in transaction processing.

References:

  1. H.F.Korth and A. Silberschatz,"Database system concepts",McGraw Hill,2010
  2. A.K.Majumdar and p, Bhatt acharya,"Database Management Systems",Tata McGraw Hill,India,2004
  3. F.Korth, Henry. Database System Concepts. 6th edition.

Lesson

Advanced database Concepts

Subject

Computer Engineering

Grade

Engineering

Recent Notes

No recent notes.

Related Notes

No related notes.