SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

SOEN 343 Software Design Section H Fall 2006 Dr Greg Butler
Lecture # 02 07/02/2013Dr. Muhammad Umair 1. 07/02/2013Dr. Muhammad Umair 2  Numeric  Integer Numbers  0,10,15,4563 etc.  Fractional Number  10.5,
SOEN 343 Software Design Section H Fall 2006 Dr Greg Butler
Managing the Data SQL Overview. Client\Server RDMS (relational database management system) Client\Server RDMS (relational database management system)
Data Access Patterns. Motivation Most software systems require persistent data (i.e. data that persists between program executions). In general, distributing.
Design I: Web Application Architecture and Patterns Peter Dolog dolog [at] cs [dot] aau [dot] dk Intelligent Web and Information Systems September.
Chapter 5 Database Processing.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
What is Architecture  Architecture is a subjective thing, a shared understanding of a system’s design by the expert developers on a project  In the.
Data Access Patterns Some of the problems with data access from OO programs: 1.Data source and OO program use different data modelling concepts 2.Decoupling.
5.0 Objects First with Java A Practical Introduction using BlueJ Introduction to Computer Science I Instructor: Allyson Anderson.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
Technology & Management Club Development Software Overview.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
SOEN 343 Software Design Section H Fall 2006 Dr Greg Butler
CS 160: Software Engineering October 1 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
CS 160: Software Engineering October 6 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
FEN Introduction to the database field:  Applications, concepts and terminology Seminar: Introduction to relational databases.
Hibernate Persistence. What is Persistence Persist data to database or other storage.  In OO world, persistence means persist object to external storage.
JDBC Enterprise Systems Programming. JDBC  Java Database Connectivity  Database Access Interface provides access to a relational database (by allowing.
Databases MIS 21. Some database terminology  Database: integrated collection of data  Database Management System (DBMS): environment that provides mechanisms.
Spring 2009Computer Science Department, TUC-N Object Oriented Methods Architectural Patterns 3.
CS 1308 Computer Literacy and the Internet
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA ‏ Visibility Control.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Data Source Patterns.  Table Data Gateway  Row Data Gateway  Active Record  Data Mapper  Unit of Work  Identity Map.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
SOEN 6011 Software Engineering Processes Section SS Fall 2007 Dr Greg Butler
3-1 Modeling Basic Entities DBMS Create Sort Search Addition Deletion Modification Create Sort Search Addition Deletion Modification DBMS is a Software.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
5.1 Basics of defining and using classes A review of class and object definitions A class is a template or blueprint for an object A class defines.
Intro to JDBC Joseph Sant Applied Computing and Engineering Sciences Sheridan ITAL.
JSP/Database Connectivity Instructor: Dr. M. Anwar Hossain.
SELECT, IMPLEMENT & USE TODAY’S ADVANCED BUSINESS SYSTEMS
CS1222 Using Relational Databases and SQL
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2005 Instructor: Patrice Chalin.
SOEN 343 Software Design Section H Fall 2006 Dr Greg Butler
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
PHP-language, database-programming
Chapter 8 Data Base Security
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2005 Instructor: Patrice Chalin.
Enterprise Architecture Patterns
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2005 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2005 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2005 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2005 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
CS1222 Using Relational Databases and SQL
Understanding and Designing with EJB
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
Software design Lecture 7.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
INHERITANCE.
Presentation transcript:

SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin

Agenda – Lecture 7a Review & renew. Data Source Patterns Exercise set 6 12/5/2018 SOEN 343, © P.Chalin,

Opening Remarks Did I mention that … … there will be an exercise set. 12/5/2018 SOEN 343, © P.Chalin,

Enterprise Application Patterns Page Controller Template View Presentation Front Controller Transform View Transaction Script Domain Model Domain Active Record Row Data Gateway Data Mapper Data Source Table Data Gateway 12/5/2018 SOEN 343, © P.Chalin,

Presentation Domain Data Source Data Source Patterns Page Controller Template View Presentation Front Controller Transform View Transaction Script Domain Model Domain Active Record Row Data Gateway Data Mapper Data Source Table Data Gateway 12/5/2018 SOEN 343, © P.Chalin,

Data Source Patterns Hide SQL. Provide an abstraction for One data row. A collection of data row(s). 12/5/2018 SOEN 343, © P.Chalin,

Example: Person-Grade Table Table attributes: name : String grade : int name grade 12/5/2018 SOEN 343, © P.Chalin,

Table Data Gateway PersGrade TDG find(name) : ResultSet findInRange(fg,tg) : ResultSet insert(name,grade) update(name,grade) delete(name) No fields. Find methods return ResultSet 12/5/2018 SOEN 343, © P.Chalin,

Table Data Gateway: Find Code 12/5/2018 SOEN 343, © P.Chalin,

Table Data Gateway: FindInRange 12/5/2018 SOEN 343, © P.Chalin,

Row Data Gateway PersGradeRDG - name : String - grade : int find(name) : PersGradeRDG insert() : void update() : void delete() : void … getters and setters … Fields – table columns. Finder methods: static. insert, update, delete on instance. 12/5/2018 SOEN 343, © P.Chalin,

Row Data Gateway: Find Code 12/5/2018 SOEN 343, © P.Chalin,

Active Record (Row Data Gateway) PersGrade AR name : String grade : int find(name) … // like RDG delete() // Can also have domain logic getRank() 12/5/2018 SOEN 343, © P.Chalin,

Exercise Set 6 12/5/2018 SOEN 343, © P.Chalin,

Server-web.xml-servlet 12/5/2018 SOEN 343, © P.Chalin,

12/5/2018 SOEN 343, © P.Chalin,

RDG & TDG 12/5/2018 SOEN 343, © P.Chalin,