1 ACCESS ARCHITECTURE the general method data models access / business modules definitions models construction the access modules, the test programs, the.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Software Modeling SWE5441 Lecture 3 Eng. Mohammed Timraz
Copyright 2008 Tieto Corporation Database merge. Copyright 2008 Tieto Corporation Table of contents Please, do not remove this slide if you want to use.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Chapter3: Language Translation issues
11 3 / 12 CHAPTER Databases MIS105 Lec14 Irfan Ahmed Ilyas.
Introduction to Databases Transparencies
CS 290C: Formal Models for Web Software Lecture 6: Model Driven Development for Web Software with WebML Instructor: Tevfik Bultan.
Lecture Nine Database Planning, Design, and Administration
Chapter 1 Introduction to Databases
Academic Year 2014 Spring.
Chapter 1: The Database Environment
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Architecture, Implementation, and Testing Architecture and Implementation Prescriptive architecture vs. descriptive architecture Prescriptive architecture:
Software Reengineering 2003 년 12 월 2 일 최창익, 고광 원.
Chapter 2 Database System Concepts and Architecture
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Objectives of the Lecture :
1 technical objects functional objects persistent objectsdescriptive objectsprocessing objects files content copybook, programs, DTD, …, directly managed.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Chapter 9 Database Planning, Design, and Administration Sungchul Hong.
1 Shawlands Academy Higher Computing Software Development Unit.
Chapter 1: The Database Environment and Development Process
Database Design - Lecture 1
1 Software Construction Software Construction Chapter 1.
Chapter 2 CIS Sungchul Hong
Chapter 2 Database System Architecture. An “architecture” for a database system. A specification of how it will work, what it will “look like.” The “ANSI/SPARC”
CSC271 Database Systems Lecture # 4.
ITEC224 Database Programming
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Methodology Conceptual Databases Design
Introduction to Database Systems
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
1 The Software Development Process  Systems analysis  Systems design  Implementation  Testing  Documentation  Evaluation  Maintenance.
© 2007 by Prentice Hall 1 Introduction to databases.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
Ch. 1 데이터베이스시스템 (2). Ch.1 Database System 데이터베이스시스템 2 What to Learn Database System Overview Entity-Relationship diagram Relational Data Model  Structure.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
 Three-Schema Architecture Three-Schema Architecture  Internal Level Internal Level  Conceptual Level Conceptual Level  External Level External Level.
Finalizing Design Specifications
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Chapter 1 Introduction to Databases Transparencies.
The Software Development Process
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
DataBase System Concepts and Architecture
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Chapter 2 Database Environment.
1 Chapter 2 Database Environment Pearson Education © 2009.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Advanced Databases COMP3017 Dr Nicholas Gibbins
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
Databases and DBMSs Todd S. Bacastow January 2005.
Chapter 2 Database Environment.
Chapter 2 Database System Concepts and Architecture
Software Design Methodology
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data, Databases, and DBMSs
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

1 ACCESS ARCHITECTURE the general method data models access / business modules definitions models construction the access modules, the test programs, the documentation define describe generate

2 PRODUCT num_prod Descr prix id:num_prod Detail num_com num_prod qte id: num_com ref:num_com ref:num_prod ORDER num_com num_cli Date id:num_com ref:num_cli Cust Num_cli nom id:Num_cli Access mod « customer » programs ACCESS MODULES VS BUSINESS MODULES BUSINESS MODULE COM-PRIX-TOTAL IS CALCULATED BY THE BUSINESS OBJECTS Access mod detail Access mod order Access mod « product » PRODUCT PROD-NUM PROD-DESC PROD-PRICE id:PROD-NUM DETAIL DET-NUM-ORD DET-NUM-PROD DET-QTY id:DET-NUM-ORD DET-NUM-PROD ref:DET-NUM-ORD ref:DET-NUM-PROD ORDER ORD-NUM ORD-NUM-CUS ORD-DATE id:ORD-NUM ref:ORD-NUM-CUS CUSt CLI-NUM CLI-NOM id:CLI-NUM

3  Access modules roles  To garantee some independance to the programs vs the DB  To homogenise DB access (if different DBMS)  To centralize the data access in a single module  To verify the integrity constraints  To garantee confidentiality and access control  To manage the transactions  To put measure points in place ( for statistical or invoicing purpose) Program n … Program 3 Program 2 Program 1 Business modules  Business modules roles  Same role as access modules +  Programs are totally independant from the DB  Programs are getting simpler  The management rules for the business objects are written once and by business specialists.  Maintenance improvement  Performances optimization Access modules Access modules vs business modules

4 ACCESS ARCHITECTURE the general method data models access / business modules definitions models construction the access modules, the test programs, the documentation define describe generate

5 BUSINESS MODULE CONSTRUCTION LOGICAL MODEL The business module is derived from the logical model  by transformation within DB-MAIN  Keeps the mapping between the 2 schemas BUSINESS MODULE sem :la dernière commande select : date in (select max(date) from commande) sem : retourne les commandes passées le "DATE" name : DATE tech : COMMANDE.DATE = :TB-COMMANDE.TB-DATE tech : PERFORM COMPUTE-PRIX-TOTAL. tech : COMPUTE-PRIX-TOTAL N PASSE-LAST N PASSE acc:COMMANDE COMMANDE-LAST NUM-COM NOM PRENOM ADRESSE DATE DETAIL[0-20] NUM-PROD LIBELLE QTE PRIX PRIX-TOTAL id:NUM-COM COMMANDE NUM-COM NOM PRENOM ADRESSE DATE DETAIL[0-20] NUM-PROD LIBELLE QTE PRIX PRIX-TOTAL id:NUM-COM acc:DATE ADD-DETAIL DEL-DETAIL CLIENT NUM-CLI NOM PRENOM ADRESSE TELEPHONE id:NUM-CLI acc:NOM The instructions depend on the technological platform

6  Formalism to represent business module  Close to an entity-relationship schema  Keeps the link between the logical schema and the business schema  Allows an automatic generation of the components concept association 0-N (between concepts) attribute (simple) Decomposable attribute Access criteria method/function BUSINESS MODULE CONSTRUCTION

7 name :component name sem :component description select : selection (clause where) order_by : sort key updatable:true/false var : varaibles declaration in working host_var : déclaration of "host variables" insert_pre:code to be executed before an insertion insert_post:code to be executed after an insertion tech : code to be added at the end of the program BUSINESS MODULE CONSTRUCTION sem :attribute description select :selection (where clause ) order_by :sort key sem :criteria description name : criteria name tech : selection (clause where) order_by :sort key name : method name sem :method description tech : method code compte-10-mvt num solde mouvement[10-10] date valeur id:num acc:solde id(mouvement): date method Complementary informations name :relation name sem :relation description Model enrichment by simply adding meta- properties in DB-Main.

8 ACCESS ARCHITECTURE the general method data models access / business modules definitions models construction the access modules, the test programs, the documentation define describe generate

9 ACCESS MODULE GENERATION  Modules generation  Depends on the technical platform language (COBOL, C, C++, JAVA,…)  The generation of business modules can be done simultaneously in different languages( eg: JAVA and COBOL)  The same base can be accessed following the same logic by different applications ( back-end application in Cobol and front-end application in Java for the internet)  Ducumentation generation  Test program generation  Allow to test the generated modules

10 BUSINESS MODULES ADDED VALUE At conception time  Conception environment  method  formalism  Independence vs the physical structure  If change in the DB without busines change  modification of the business modules  no modification in the programs  If a busines change implies a change in the DB  busines modules modifications  very often, programs modifications  Automatic generation  code  documentation  Test programs At maintenance time  Modification of the logical and business models  Automtic (re-) generation  Impact analysis  Impacted components list  Programs list using the impacted components

11  A large part of the constraints are not managed by the DBMS  50% of the implicit constraints  The implicit constraints have to be managed by the programs  Error risks :  Duplicated code  The programmer doens’t know all the constraints to verify  Maintenance problems  If DBMS change  If DB structure change Program n … Program 3 Program 2 Program 1 Program n … Program 3 Program 2 Program 1 modules WITHOUT THE MODULESWITH THE MODULES  Procesing and data dissociation  Programs simplification  Less duplicated code  The programmer doesn’t have to know the constraints  Drastic reduction of the errors risks ( less code and code written by specialists)  Constraints are better coded ( more readable, more efficient..;)  Easier maintenance BUSINESS MODULES ADDED VALUE