Chapter - 11: Access Layer: Object Storage and Object Interoperability
Chapter - 11: Access Layer: Object Storage and Object Interoperability
Chapter - 11: Access Layer: Object Storage and Object Interoperability
Database Views
DBMS provides the database users with a conceptual representation that is
independent of the low-level details (physical view) of how the data are stored.
The database provides an abstract data model that uses logical concepts such as field, records and tables and their interrelationships. These models can be
Relational Model
It is simple and widespread. Here the relation can be thought of as a table.
The columns of each table are attributes that define the data or value domain
for entries in that column. The rows of each table are tuples representing individual data objects being stored. A relational table should have only one primary key. A primary key is a combination of one or more attributes whose value unambiguously locates each row in the table.
A foreign key is a primary key of one table that is embedded in another table to link the tables.
3
application programmers have to learn and use two different languages. The application programmers have to negotiate the differences in the data models and data structures allowed in both languages.
related requests from the business layer into the appropriate protocol for
data access. Translate the results: The access layer also must be able to translate the
data retrieved back into the appropriate business objects and pass those
objects back into the business layer. Here design is tied to any base engine or distributed object technology such as CORBA or DCOM. Here we can switch easily from one database to another with no major changes to the user interface or business layer objects. All we need to change are the access classes methods.
6
Object lifetimes can be short for local objects (called transient objects) or
long for objects stored indefinitely in a database (called persistent objects).
7
Persistent stores
Most object-oriented languages do not support serialization or object