OBJECT ORIENTED DATA BASES

glintplainvilleSoftware and s/w Development

Nov 18, 2013 (3 years and 9 months ago)

65 views


OBJECT ORIENTED DATA BASES

The object oriented database management system is a combination of object oriented
programming and database technology to provide what we now call object

oriented
databases. Additionally, object oriented databases allow
all the benefits of an object
orientation as well as the ability to have a strong equivalence with object
-
oriented
programs, an equivalence that would be lost if an alternative were chosen, as with a
purely relational database. By combining object
-
orient
ed programming with database
technology, we have an integrated application development system, a significant
characteristics of object
-
oriented database technology.

Many advantages accrue from including the definition of operations with the definition of
d
ata.

First, the defined operations apply universally and are not dependent on the particular
database application running at the moment.

Second , the data types can be extended to support complex data such as multimedia by
defining new object classes th
at have operations to support the new kinds of information.

The “object
-
oriented database system “ described the necessary characteristics that a
system must satisfy to be considered an object
-
oriented database. These categories can
be broadly divided int
o object
-
oriented language properties and database requirements.

First, the rules that make it an object
-
oriented system are as follows

1.

The system must support complex objects.

A system must provide simple atomic types of objects(integers, characters, etc
) from
which complex objects can be built by applying constructors to atomic objects or
other complex objects or both.

2.

Object identity must be supported.


A data object must have an identity and existence independent of its values.

3.

Objects must be encapsul
ated.

An object must encapsulate both a program and its data. Encapsulation embodies the
separation of interface and implementation and the need for modularity.

4.

The system must support types or classes.


The system must support either the type concept(e
mbodied by c++) or the class
concept (embodied by smalltalk).

5.

The system must support inheritance.


Classes and types can participate in a class hierarchy. The primary advantage of
inheritance is that it factors out shared code and interfaces.

6.

The system

must avoid premature binding.


This feature also known as late binding or dynamic binding. Since classes and types
support encapsulation and inheritance, the system must resolve conflicts in operation
names at run time.

7.

The system must be computationa
lly complete.

Any computable function should be expressible in the data manipulation
language(DML) of the system, thereby allowing expression of any type of operation.

8.

The system must be extensible.


The user of the system should be able to create new typ
es that have equal status to
the system’s predefined types.

Second, these rules make it a DBMS:

9.

It must be persistent, able to remember an object state.

The system must allow the programmer to have data survive beyond the execution of
the creating proces
s for it to be reused in another process.

10

It must be able to manage very large databases.


The system must efficiently manage access to the secondary storage and provide
performance features, such as indexing, clustering, buffe
ring, and query optimization.

11.


It must accept concurrent users.

The system must allow multiple concurrent users and support the notions of atomic,
serializable transactions.

12.

It must be able to recover from hardware and software failures.

The system m
ust be able to recover from software and hardware failures and return
to a coherent state.

13.

Data query must be simple

The system must provide some high
-
level mechanism for ad
-
hoc browsing of the
contents of the database.


The major benefits of using ODBMS

include:

1.

The objects as such can be stored in the database(often the operations are not
stored, but are only present in the class library in the primary memory).

2.

No conversion is needed for the DBMS type system, the user defined classes are
used as

types in the DBMS.

3.

The language of the DBMS can be integrated with an object
-
oriented
programming language.