Mapping Objects to External DBMSs



Similar documents
DATABASE SYSTEM CONCEPTS AND ARCHITECTURE CHAPTER 2

Chapter 2 Database System Concepts and Architecture

1 File Processing Systems

5.5 Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall. Figure 5-2

Chapter 6: Physical Database Design and Performance. Database Development Process. Physical Design Process. Physical Database Design

Foundations of Business Intelligence: Databases and Information Management

Foundations of Business Intelligence: Databases and Information Management

ECS 165A: Introduction to Database Systems

Course MIS. Foundations of Business Intelligence

Databases and Information Management

Introductory Concepts

MultiMedia and Imaging Databases

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

Preparing Your Data For Cloud

XQuery and the E-xml Component suite

Complex Data and Object-Oriented. Databases

Chapter 6 FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Learning Objectives

Foundations of Business Intelligence: Databases and Information Management

Security and privacy for multimedia database management systems

Object Oriented Design with UML and Java. PART XVIII: Database Technology

Concepts of Database Management Seventh Edition. Chapter 9 Database Management Approaches

Designing Database Solutions for Microsoft SQL Server 2012

When to consider OLAP?

Object Oriented Databases (OODBs) Relational and OO data models. Advantages and Disadvantages of OO as compared with relational

Chapter 5 Business Intelligence: Data Warehousing, Data Acquisition, Data Mining, Business Analytics, and Visualization

Chapter 1 Databases and Database Users

Chapter 3. Database Environment - Objectives. Multi-user DBMS Architectures. Teleprocessing. File-Server

Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 1 Outline

Topics. Database Essential Concepts. What s s a Good Database System? Using Database Software. Using Database Software. Types of Database Programs

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

Database Management. Chapter Objectives

Modern Databases. Database Systems Lecture 18 Natasha Alechina

Database System. Session 1 Main Theme Introduction to Database Systems Dr. Jean-Claude Franchitti

Using SQL Developer. Copyright 2008, Oracle. All rights reserved.

University of Phoenix - Prior Learning Assessment - Corporate Articulation BODWELL COLLEGE. Credit Recommendation Guide (CRG)

MOC 20461C: Querying Microsoft SQL Server. Course Overview

Information Models: Applications and Technology. The Data Scalability Problem

MS 20465: Designing Database Solutions for Microsoft SQL Server 2012

Introduction. Introduction: Database management system. Introduction: DBS concepts & architecture. Introduction: DBS versus File system

Foundations of Business Intelligence: Databases and Information Management

Handling Unstructured Data Type in DB2 and Oracle

The Import & Export of Data from a Database

DE 6211 DISTANCE EDUCATION. M.Sc. (IT) DEGREE EXAMINATION, MAY PRINCIPLES OF INFORMATION TECHNOLOGY. (2002 onwards) PART A (10 3 = 30 marks)

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

Introduction: Database management system

Topics in basic DBMS course

DATABASE MANAGEMENT SYSTEM

Top 10 Oracle SQL Developer Tips and Tricks

Chapter 13. Introduction to SQL Programming Techniques. Database Programming: Techniques and Issues. SQL Programming. Database applications

DATABASDESIGN FÖR INGENJÖRER - 1DL124

Chapter 11 Mining Databases on the Web

Reverse Engineering of Relational Databases to Ontologies: An Approach Based on an Analysis of HTML Forms

2. Background on Data Management. Aspects of Data Management and an Overview of Solutions used in Engineering Applications

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

Chapter 5. Warehousing, Data Acquisition, Data. Visualization

Database Systems. Lecture 1: Introduction

Data Quality in Information Integration and Business Intelligence

Generating XML from Relational Tables using ORACLE. by Selim Mimaroglu Supervisor: Betty O NeilO

Upgrading a Microsoft Dynamics NAV 2009 R2 or Microsoft Dynamics NAV 2009 SP1 Database to Microsoft Dynamics NAV 2015

Discovering SQL. Wiley Publishing, Inc. A HANDS-ON GUIDE FOR BEGINNERS. Alex Kriegel WILEY

Course Notes on A Short History of Database Technology

Course Notes on A Short History of Database Technology

Introduction to Databases

2 Associating Facts with Time

Course DSS. Business Intelligence: Data Warehousing, Data Acquisition, Data Mining, Business Analytics, and Visualization

Towards Heterogeneous Grid Database Replication. Kemian Dang

Data and Databases. Technology Guides T3.1

Multimedia Systems: Database Support

Lesson 8: Introduction to Databases E-R Data Modeling

Supporting Data Set Joins in BIRT

NETMARK: A SCHEMA-LESS EXTENSION FOR RELATIONAL DATABASES FOR MANAGING SEMI-STRUCTURED DATA DYNAMICALLY

Oracle9i Database and MySQL Database Server are

Efficient Data Access and Data Integration Using Information Objects Mica J. Block

LISTE DES DOCUMENTS ORACLE

Oracle Data Integrator: Administration and Development

Chapter 1: Introduction. Database Management System (DBMS) University Database Example

Jet Data Manager 2012 User Guide

DATA MINING CONCEPTS AND TECHNIQUES. Marek Maurizio E-commerce, winter 2011

Netezza Workbench Documentation

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1

Practical Database Design and Tuning

Trusted RUBIX TM. Version 6. Multilevel Security in Trusted RUBIX White Paper. Revision 2 RELATIONAL DATABASE MANAGEMENT SYSTEM TEL

Problems and Measures Regarding Waste 1 Management and 3R Era of public health improvement Situation subsequent to the Meiji Restoration

Database Management Systems

Kaseya 2. Quick Start Guide. for VSA 6.3

Database Schema Management

The Relational Model. Why Study the Relational Model?

Integrating XML and Databases

NoSQL systems: introduction and data models. Riccardo Torlone Università Roma Tre

SQL Server for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

Logi Ad Hoc Reporting System Administration Guide

Data Modeling Basics

CSE 530A Database Management Systems. Introduction. Washington University Fall 2013

Introduction to Databases

Reverse Engineering in Data Integration Software

Principles of Database. Management: Summary

COIS Databases

NEW FEATURES ORACLE ESSBASE STUDIO

Transcription:

Mapping Objects to External DBMSs There are many decisions to be made when mapping objects to external (non-object) DBMS products. The mapping capabilities of the object storage products factor into these decisions. The tables in this section cover mapping direction, mapping generation, SQL support, and the details about table-to-class mappings and class-to-table mappings. The data here is critical to your decisions about accessing external (or legacy) data and bringing it into an object environment. Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 111

Mapping Direction: Database Table or Object Language Class or Type Generation This table describes the derivation of the database schema and application s object model. Application class or type definitions generated from the definition in the DBMS or the Data Definition Language forward engineering: the DBMS database schema (tables) is generated from an existing object model. reverse engineering: the programming language object model is generated from an existing DBMS schema an existing object model is mapped to an existing DBMS schema generation does not occur in either direction an existing object model is mapped to an existing DBMS schema generation can occur in either direction Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 112

Mapping Generation This table describes the creation and location of the database schema to application object model mapping. mapping is defined using a text description mapping is defined using a form-based interface mapping is defined using a graphical / drag-and-drop interface mapping is generated from DBMS schema or class definitions mapping is generated manually mapping exists as generated code incorporated (compiled or interpreted) as part of application. mapping exists as dynamic metadata stored in files or the database Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 113

SQL Generation and Support This table describes the SQL generation capabilities generates SQL for mapped tables dynamic SQL is used precompiled SQL is used generates stored procedures pre-existing stored procedures can be called pre-existing SQL queries (e.g., prepared SQL statements) can be called directly (without developer writing calls) generated SQL is hidden generated SQL is accessible (i.e., can be viewed if necessary) Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 121

Object Identifier Mapping This table describes how object identifiers are mapped to the external DBMS instances. --------------------- object identifier generation and storage --------------------- ------- object identifier / instance mapping ------ object identifiers are generated, but not stored object identifiers are generated once and the mapping of the object identifier to the external instance is stored in the external database object identifiers are generated once and the mapping of the object identifier to the external instance is stored outside the external database a one-to-one relationship exists between each object identifier and the external instance in the external database (fully coherent cache) more than one object identifier may exist for the same external instance in the external database (this would appear as duplicates of an object) a brief description of the construction of the object identifier (i.e. a generated number, a concatenation of table name and primary key, etc.) Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 122

Literal Attribute Mappings This table describes how external data source literal data types are mapped to program language types. data types map to default programming language primitives default mappings of data types can be overridden by user to map to other programming language primitive data types data types can be mapped to user defined object classes data types can be transformed on read data types can be transformed on write data types can map to relationships Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 123

Multimedia Attribute Mappings This table shows binary large objects (blobs) in the DBMS map to in the programming language image classes or types audio classes or types text classes or types text classes or types using HTML format text classes or types using XML format text classes or types using SGML format full-motion video classes or types (format indicated) other classes or types Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 124

Table to Class Mappings This table describes the kinds of table to class mappings one table to one class one table to multiple classes (e.g. table is denormalized or has discriminators) one table to inheriting classes multiple tables to multiple, inheriting classes columns of multiple tables to one class product infers class inheritance relationships from tables Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 125

Class to Table Mappings one class to one table one class to multiple tables inheriting classes to one table multiple, inheriting classes to one table multiple, inheriting classes to multiple tables properties of a class to multiple tables in a single database or file properties of a class to multiple tables in multiple databases or files user can control partitioning of multiple inheriting classes into one table or multiple tables Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 126

Collection to Table Mappings This table describes the kinds of collection to table mappings --------- homogeneous collection --------- heterogeneous collection to one denormalized table to one table to multiple tables manually determined based on discriminator heterogeneous collection to multiple tables determined based on discriminator manually multiple homogeneous collections to one denormalized table Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 127

Table to Collection Mappings This table describes the kinds of table to collection mappings one table to homogeneous collection -----------multiple tables ---------- --------------------------------------------------- denormalized table ----------------------------------------------- to homogeneous collection to heterogeneous collection to homogeneous collection to heterogeneous collection to multiple homogeneous collections determined based on discriminator manually determined based on discriminator manually determined based on discriminator manually Object Storage Fact Book 5.0 Worksheets, Object-Relational Mapping Mapping Objects to External DBMSs 128