Tải bản đầy đủ (.ppt) (85 trang)

slide cơ sở dữ liệu tiếng anh chương (27) object-oriented dbmss – standards and systemstransparencies

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.2 MB, 85 trang )

1
Chapter 27
Object-Oriented DBMSs - Standards
and Systems
Transparencies
© Pearson Education Limited 1995, 2005
2
Chapter 27 - Objectives

Object Management Group (OMG), CORBA,
and other OMG standards.

Main features of ODMG Object Standard:

Object model

Object Definition Language (ODL)

Object Query Language (OQL)

Language bindings.

Main features of ObjectStore:

Architecture

Data Definition

Data Manipulation.
© Pearson Education Limited 1995, 2005
3


Object Management Group (OMG)

International non profit-making consortium
founded in 1989 to address object standards.

Several hundred member organizations
including many platform and major software
vendors.

Primary aims of OMG are:

Promotion of object-oriented approach.

Development of standards in which location,
environment, language, and other characteristics
of objects are transparent.

Not recognized standards group but aims to
develop de facto standards.
© Pearson Education Limited 1995, 2005
4
Object Management Architecture
Four areas identified for reference model:
Object Model (OM) - Design-portable abstract model
for communicating with OMG-compliant object-
oriented systems.
Object Request Broker (ORB) - Handle distribution
of messages between application objects in a highly
interoperable manner.
Like distributed ‘software bus’ enabling objects to

make/receive requests/responses from a provider.
© Pearson Education Limited 1995, 2005
5
Object Management Architecture
Object Services - Provide main functions for
realizing basic object functionality. Many of
these services are database-oriented.
Common Facilities - Comprise a set of tasks that
many applications must perform but are
traditionally duplicated within each one.
© Pearson Education Limited 1995, 2005
6
Object Reference Model
© Pearson Education Limited 1995, 2005
7
Object Model
© Pearson Education Limited 1995, 2005
8
Common Object Request Broker Architecture
(CORBA)

Defines architecture of ORB-based environments.

Basis of any OMG component, defining parts that
form ORB and associated structures.

Some elements of CORBA are:

Interface Definition Language (IDL).


Type model.

Interface Repository.

Methods for getting interfaces/specifications of
objects.

Provides static and dynamic mechanism for clients
to issue request to objects.
© Pearson Education Limited 1995, 2005
9
CORBA ORB Architecture
© Pearson Education Limited 1995, 2005
10
Other OMG Specifications

UML provides common language for describing
software models.

Meta-Object Facility (MOF), defines common,
abstract language for specification of
metamodels.

XML Metadata Interchange (XMI) maps MOF to
XML. XMI defines how XML tags are used to
represent MOF-compliant models in XML.

Common Warehouse Metamodel (CWM) defines
metamodel representing both business and
technical metadata commonly found in data

warehousing and business intelligence domains.
© Pearson Education Limited 1995, 2005
11
CWM Sub-Metamodels
© Pearson Education Limited 1995, 2005
12
CWM Relational Data Metamodel
© Pearson Education Limited 1995, 2005
13
Model-Driven Architecture (MDA)

OMG hoped OMA would be common OO
middleware standard. However:

Microsoft produced DCOM (Distributed Common
Object Model),

Sun developed Java, which came with its own
ORB, Remote Method Invocation (RMI),

another set of middleware standards emerged with
XML and SOAP (Simple Object Access Protocol).

Also e-Business increased pressure on
companies to integrate their corporate databases.
Enterprise Application Integration (EAI) is one
of current key challenges for companies and,
rather than helping, middleware may be part of
problem.
© Pearson Education Limited 1995, 2005

14
Model-Driven Architecture (MDA)

MDA is an approach to system specification and
interoperability building upon 4 specifications
discussed above.

Based on premise that systems should be
specified independent of all hardware and
software details.

Thus, while software and hardware may change
over time, the specification will still be
applicable.

MDA addresses complete system lifecycle from
analysis and design to implementation, testing,
component assembly, and deployment.
© Pearson Education Limited 1995, 2005
15
Model-Driven Architecture (MDA)

To create an MDA-based application, a
Platform Independent Model (PIM) is produced
that represents only business functionality and
behavior.

PIM can then be mapped to one or more
Platform Specific Models (PSMs) to target
platforms like CORBA Component Model

(CCM), Enterprise JavaBeans (EJB), or
Microsoft Transaction Server (MTS).

Both the PIM and the PSM are expressed using
the UML.

MDA covers full range of pervasive services
already specified by OMG, such as Persistence,
Transactions, and Security.
© Pearson Education Limited 1995, 2005
16
Model-Driven Architecture (MDA)
© Pearson Education Limited 1995, 2005
17
Object Data Management Group

Established by vendors of OODBMSs to define
standards.

Have produced an Object Model that specifies
a standard model for the semantics of database
objects.

Design of class libraries and applications
using these semantics should be portable
across various OODBMSs.
© Pearson Education Limited 1995, 2005
18
Object Data Management Group


Between release 2.0 (1997) and 3.0 (late 1999),
ODMG expanded its charter to cover the
specification of universal object storage
standards.

At same time, ODMG changed its name from
Object Database Management Group to Object
Data Management Group to reflect expansion of
its efforts beyond merely setting storage
standards for object databases.

The Java binding was submitted to JCP as basis
for Java Data Objects (JDO).

In 2001, ODMG completed its work and
disbanded.
© Pearson Education Limited 1995, 2005
19
Object Data Management Group

Under its extended charter, ODMG specification
covers both OODBMSs that store objects directly
and Object-to-Database Mappings (ODMs) that
convert and store the objects in a relational or
other database system representation.

Both types of products are referred to generically
as Object Data Management Systems (ODMSs).

ODMSs make database objects appear as

programming language objects in one or more
existing OOPLs, and extend programming language
with transparently persistent data, concurrency
control, recovery, associative queries, and other
database capabilities.
© Pearson Education Limited 1995, 2005
20
Object Data Management Group

Major components of ODMG architecture for
an OODBMS are:

Object Model (OM).

Object Definition Language (ODL).

Object Query Language (OQL).

C++, Smalltalk, and Java Language Binding.
© Pearson Education Limited 1995, 2005
21
ODMG OM - Basic Modeling Primitives

Basic modeling primitives are object/literal.

Only an object has a unique identifier.

Objects/literals can be categorized into types.

All objects of given type exhibit common

behavior and state. A type is itself an object.

Behavior defined by set of operations that can
be performed on or by object.

State defined by values objects carry for a set
of properties.
© Pearson Education Limited 1995, 2005
22
ODMG OM - Basic Modeling Primitives

Property may be either an attribute of object or
relationship between object and one or more
other objects.

ODMS stores objects, enabling them to be
shared by multiple users and applications.

ODMS based on a schema defined in ODL.
© Pearson Education Limited 1995, 2005
23
ODMG Object Model - Objects

Object types decomposed as atomic,
collections, or structured types.

Structured types as defined in ISO SQL
standard.

Objects created using new() of corresponding

factory interface provided by language
binding.

Each object has a unique identity, the object
identifier, which does not change and is not
reused when the object is deleted.

May be given one or more names by user.
© Pearson Education Limited 1995, 2005
24
Set of Built-in Types for ODMG Object Model
© Pearson Education Limited 1995, 2005
25
ODL Interface for Objects
© Pearson Education Limited 1995, 2005

×