23.01.2014 Views

7 - Indira Gandhi Centre for Atomic Research

7 - Indira Gandhi Centre for Atomic Research

7 - Indira Gandhi Centre for Atomic Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

An OODB combines object oriented programming principles with database management<br />

principles. Object oriented programming concepts such as encapsulation, polymorphism<br />

and inheritance are en<strong>for</strong>ced along with regular database management concepts such as the<br />

<strong>Atomic</strong>ity, Consistency, Isolation and Durability (ACID properties). OODB is a system<br />

while supporting all the functionality of a relational database system (including queries,<br />

transactions, backup and recovery mechanisms), also offers an Object oriented<br />

programming language interface, user defined data types, object identifiers and the ability<br />

to manage objects persistently.<br />

3. Object Oriented Data Model (OODM)<br />

Object oriented data model represents real-world entities as objects. Each object’s attributes<br />

and methods implementation is hidden from other object. A unique object ID identifies<br />

each object. Classes inherits all properties of their super classes.T he OODM is different<br />

from E-R and Relational model in the sense that the OODM object has additional properties<br />

like behavior, inheritance and encapsulation. Such features make OODM more close to real<br />

world entities. OODM classes allow the implementation of Abstract Data Types (ABT).<br />

The ABT is used to create new data types and is a powerful modeling tool. In relational<br />

model the relationship among entities is established through a common attribute. OODM in<br />

contrast uses object ID to establish relation among objects.<br />

Objects can be used persistently and transiently. Persistent instances of objects are<br />

automatically and transparently stored by the OODB. Transient instances exist only while<br />

the application based on the OODB is running. Locking and transaction mechanisms<br />

guarantee security and integrity <strong>for</strong> multi-user update operations.<br />

4. The Object Data Management Standard (ODMG Standard)<br />

ODMG was founded in 1991 to define the criteria <strong>for</strong> OODBs, to provide a feature list <strong>for</strong><br />

OODB comparisons and to introduce standards into the OODB world. Most major OODB<br />

vendors are members of this group. The ODMG has published several documents called<br />

´ODMG Standards.’ The first version of this standard appeared in 1993. The current<br />

version is ODMG 2.0. This document defines an object model, an object definition<br />

language (ODL), an object query language (OQL) and interfaces <strong>for</strong> the programming<br />

languages C++, Smalltalk and Java.<br />

5. Object Definition Language (Odl) and Object Query Language (OQL)<br />

ODL describes the database schema, i.e. the hierarchy of object classes, their elements and<br />

methods. The ODL is independent of the programming language (C++, Java, Smalltalk). A<br />

pre-processor translates the schema into class definitions <strong>for</strong> the programming language.<br />

The ODMG-OQL is based on O 2 SQL (which in turn is based on SQL 92). In addition to<br />

SQL-style queries, OQL can be used to query complex types of data. It can make use of the<br />

methods in classes. The OQL does not support recursive queries.<br />

57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!