© 2005 Prentice Hall10-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Databases MMG508. DB Properties  Definition of a database: “A database is a collection of interrelated data items that are managed as a single unit”
Traditional Approach to Design
Chapter 10 The Traditional Approach to Design
Introduction to Databases
Objectives In this session, you will learn to:
© 2005 Prentice Hall7-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Conquering Complex and Changing Systems Object-Oriented Software Engineering TJSS: Defining persistent data stores, example Päivi Ovaska.
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
File Systems and Databases
Database Management: Getting Data Together Chapter 14.
© 2005 Prentice Hall12-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
© 2005 Prentice Hall8-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
© 2005 Prentice Hall3-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 1 An Overview of Database Management. 1-2 Topics in this Chapter What is a Database System? What is a Database? Why Database? Data Independence.
12-1 © Prentice Hall, 2004 Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Management COP4540, SCS, FIU An Introduction to database system.
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Objectives Design Class Diagrams Issues in system design Generalization Review UML papers.
Chapter 10 Architectural Design
The Design Discipline.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Systems Analysis and Design in a Changing World, Fifth Edition
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 2-1 David M. Kroenke’s Chapter One: Why DB? Database Processing: Fundamentals,
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
CSC271 Database Systems Lecture # 4.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
2. Database System Concepts and Architecture
Architecture for a Database System
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
12 Systems Analysis and Design in a Changing World, Fifth Edition.
Information System Development Courses Figure: ISD Course Structure.
Chapter 15 Relational Implementation with DB2 David M. Kroenke Database Processing © 2000 Prentice Hall.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Object Persistence Design Chapter 13. Key Definitions Object persistence involves the selection of a storage format and optimization for performance.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Domain and Persistence Patterns. Fundamental Pattern Types Design Patterns Business Logic Patterns.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Introduction Database integral part of our day to day life Collection of related database Database Management System : software managing and controlling.
© 2005 Prentice Hall1-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Chapter 2 Database Environment.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Datab ase Systems Week 1 by Zohaib Jan.
Chapter 4 Relational Databases
Chapter 13 Logical Architecture.
Chapter 20 Object-Oriented Analysis and Design
Chapter 13 Logical Architecture.
Database Architecture
Stumpf and Teague Object-Oriented Systems Analysis and Design with UML
Stumpf and Teague Object-Oriented Systems Analysis and Design with UML
Presentation transcript:

© 2005 Prentice Hall10-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML

© 2005 Prentice Hall10-2 Learning Objectives Understand the need for persistent objects. Learn why the third tier of the three-tier architecture is kept separate. Know the types of data bases which are available. Use the Singleton pattern to access the third tier.

© 2005 Prentice Hall10-3 Learning Objectives (continued) If you have a background in relational data bases, define relational database tables and write the Structured Query Language (SQL) statements required. Determine how to assign the three tiers to a processor.

© 2005 Prentice Hall10-4 Overview Chapters 8 and 9 discussed the design of the application software in the business layer, the middle tier of a three-tier system architecture. Chapter 10 is concerned with the interface between the application layer and the storage layer.

© 2005 Prentice Hall10-5 Overview (continued) A data base in the storage layer implements the persistence needed by objects in the business layer. These objects communicate with the data base via an interface which accesses the operations of the database management system (DBMS).

© 2005 Prentice Hall10-6 Overview (continued) The Singleton pattern produces a single, globally visible object to act as this interface. The design of the data base is derived from the objects, attributes, and associations shown in the design class diagram.

© 2005 Prentice Hall10-7 The Three-Tier System Architecture.

© 2005 Prentice Hall10-8 Persistence Many instances of concepts in the real world have long lives inherently. Software objects operate in the volatile memory of a computer. Making them persistent requires storing them in memory which lasts even when power is turned off.

© 2005 Prentice Hall10-9 Data Bases and Database Management Systems A data base is a systematically partitioned, reusable, integrated collection of data which can be shared by many individual users as well as by multiple applications. Users and application software access a data base through an interface – a database management system (DBMS).

© 2005 Prentice Hall10-10 Data Bases and Database Management Systems (continued) Data bases provide: Logical independence of the data and Physical independence of the data Data bases enforce: Integrity constraints and Security

© 2005 Prentice Hall10-11 Database Structures Ideally, objects should be stored in object data bases; that technology, however, is still evolving. In practice, most current data bases are relational – organized as tables, or relations.

© 2005 Prentice Hall10-12 Database Operations on Objects Every database management system must provide these operations on objects: 1.Create: Establish a new object. 2.Remove: Delete an existing object. 3.Store: Modify the value of one or more attributes of an existing object. 4.Load: Read the attribute data for one object

© 2005 Prentice Hall10-13 Database Operations on Associations Every database management system must provide these operations on associations: 1.Create: Establish a new link (an instance of an association). 2.Remove: Delete an existing link.

© 2005 Prentice Hall10-14 System Start-up and Shutdown At system start-up, new objects must be instantiated, and a load operation must read each object’s attribute values from the data base. To prevent loss of data during an unexpected system shutdown, it is desirable to use a create, delete, or store operation whenever an object is created or destroyed or whenever an attribute value is modified.

© 2005 Prentice Hall10-15 Global Visibility Most objects in the business layer need visibility to the data base and need to use the operations of the DBMS. The Singleton pattern provides this global visibility. Figure 10.3 shows the Singleton object added to the design class diagram. (Note that the dependency arrows show indirect visibility to this object.)

© 2005 Prentice Hall10-16 The Singleton Pattern.

© 2005 Prentice Hall10-17 Database Requirements – An Example.

© 2005 Prentice Hall10-18 Database Requirements – An Example (continued).

© 2005 Prentice Hall10-19 Database Requirements – An Example (continued).

© 2005 Prentice Hall10-20 Database Requirements – An Example (continued).

© 2005 Prentice Hall10-21 Database Requirements – An Example (continued).

© 2005 Prentice Hall10-22 Database Requirements – An Example (continued) These requirements may be mapped into an appropriate structure for the type of data base.

© 2005 Prentice Hall10-23 Public University – System Design Alternatives The system design alternatives identified in Chapter 7 may now be evaluated from the perspective of the database design to assist in selecting the best alternative. These are shown in Figures through

© 2005 Prentice Hall10-24 Public University – System Design Alternatives (continued).

© 2005 Prentice Hall10-25 Public University – System Design Alternatives (continued).

© 2005 Prentice Hall10-26 Public University – System Design Alternatives (continued).

© 2005 Prentice Hall10-27 Public University – System Design Alternatives (continued) If the data base is distributed, as in Alternative B, the database boundaries may be shown on the class diagram. (See Figure in the text.)

© 2005 Prentice Hall10-28 Summary A data base implements persistence in object-oriented systems. Database management systems have operations to store the attributes and associations of objects in order to re-instantiate the objects and associations during system start-up. The Singleton Pattern provides global visibility from objects in the business layer to an interface to the DBMS.