318x Filetype PPTX File size 2.01 MB Source: www.rose-hulman.edu
Learning Outcomes: Patterns, Tradeoffs
Identify criteria for the design of a software
system and select patterns, create
frameworks, and partition software to
satisfy the inherent trade-offs.
Using GoF Patterns in
Iteration 3
Finish up Template Pattern
State Pattern
Command Pattern
Deployment Diagrams
Q3
Persistence Framework – a service to
provide object to record mapping
In a Persistence Framework a record is
to an object, as a _________ is to a
graphical object in a
GUI Framework.
Think for 15 seconds…
Turn to a neighbor and discuss
it for a minute
Recall: A Persistence Framework
Domain Persistence Relational
Layer Framework Database
PersistenceFaçade
Name City
:University get(OID, class):Object
put(OID, object) RHIT Terre Haute
name = Butler
city = Indianapolis Purdue W. Lafayette
Indiana U. Bloomington
Butler U. Indianapolis
University
object Store object in RDB University Table
put(OID, Butler U.)
Retrieve from RDB
get(OID, University) (Really)
Use Objects (Pretend to)
Store as Objects Store as Relations
Recall: Maps between Persistent
Object & Database
University Table
OID name
1 city
:University XI001 RHIT Terre Haute
name = Butler wxx246 Purdue W. Lafayette
city = Indianapolis xxz357 Indiana U. Bloomington
xyz123 Butler U. Indianapolis
oid = xyz123
Recall: Façade Design Pattern w/Brokers
PersistenceFacade <>
getInstance( ): DBMapper
PersistenceFacade class
get(OID, class) : Object get(OID):Object
put(OID, Object) put(OID, Object
ProductSpecification ProductSpecification Manufacturer
RDBMapper FlatFileMapper RDBMapper
get(OID):Object get(OID):Object get(OID):Object
put(OID, Object) put(OID, Object put(OID, Object
Each mapper gets and puts objects in its own unique
Each mapper gets and puts objects in its own unique
way, depending on the kind of data store and format.
way, depending on the kind of data store and format.
no reviews yet
Please Login to review.