meljun cortes jedi slides-4.4 data design
TRANSCRIPT
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
1/22
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
2/22
Software Engineering 2
Data Design
It is also known as data architecting.
It is a software engineering task that creates a model of thedata in more implementation specific representation.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
3/22
Software Engineering 3
Ang Bulilit Liga Logical
Database Design
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
4/22
Software Engineering 4
Persistency
It means to make an element exists even after the applicationthat created it terminates.
It has the following characteristics that need to be identified:
Granularity Volume
Duration
Access Mechanism
Reliability
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
5/22
Software Engineering 5
Java Database Connectivity
(JDBC) Design Pattern It is a design pattern used to connect to a relational database
server that makes use of SQL Statements.
It is a design pattern that shows a mechanism to access data
in a relational database system. It has a static view and dynamic view.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
6/22
Software Engineering 6
Static View
It is represented as a class diagram.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
7/22
Software Engineering 7
Dynamic View
It represents the behavior of the classes defined in the staticview.
It is represented using the Sequence Diagrams.
JDBC Initialization JDBC Create
JDBC Read
JDBC Update
JDBC Delete
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
8/22
Software Engineering 8
JDBC Initialization
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
9/22
Software Engineering 9
JDBC Create
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
10/22
Software Engineering 10
JDBC Read
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
11/22
Software Engineering 11
JDBC Update
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
12/22
Software Engineering 12
JDBC Delete
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
13/22
Software Engineering 13
Developing the Data Design
Model1. Define the static view of the data element.2. Model the behavior of the classes using the dynamic view.
3. Document the data design classes.
4. Modify the software architecture to reflect the dbclasses andpersistent classes.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
14/22
Software Engineering 14
STEP 1: Define the static view
of the data elements. Every data that needs to be persistent would have acorresponding DBClass.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
15/22
Software Engineering 15
STEP 2: Model the behaviorof the class using the
dynamic view. In the example diagram, the JDBC Read for accessing an
athlete record is shown.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
16/22
Software Engineering 16
DBAthlete JDBC Read
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
17/22
Software Engineering 17
DBAthlete JDBC Create
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
18/22
Software Engineering 18
DBAthlete JDBC Update
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
19/22
Software Engineering 19
DBAthlete JDBC Delete
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
20/22
Software Engineering 20
STEP 3: Document the data
design classes. Attributes and operations need to distributed to the classes.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
21/22
Software Engineering 21
STEP 4: Modify the software
architecture.
-
7/31/2019 MELJUN CORTES JEDI Slides-4.4 Data Design
22/22
Software Engineering 22
Summary
Data Design Concepts Java Database Connectivity (JDBC) Design Pattern of
Persistency
Static View
Dynamic View
JDBC Initialization
JDBC Create
JDBC Read
JDBC Update
JDBC Delete Developing the Data Design Model