Download Object-Relational Access Layers

Transcript
Object/Relational Access Layers
Local Roadmap
Architecting an Object/Relational Access Layer
Layered Architecture for
Business Informatiojn Systems
Two Layer Persistence Subsystem
Physical Views
Host Access
Figure 4: Local Roadmap: Architecting an Object/Relational Access Layer
Pattern List
• Layered Architecture for Business Systems: What is a good overall architecture for
Business Systems? See [Ren+97] for a discussion in pattern form and [Bus+96] for a
general discussion of layered architectures (Layers).
• Two Layer Persistence Subsystem: What is a good structure for a persistence subsystem?
• Physical Views: How do you provide an easy to use interface to your physical database
tables? See [Kel+98a] and also the Query Objects Pattern in [Bra+96].
• Host Access: How do you link you database access layer to a transaction based host
database server?
Patterns
Pattern: Two Layer Persistency Subsystem
Problem
What is good way to structure an object-oriented database or an object/relational access layer?
Forces
Remember the above discussion on Separation of concerns versus cost: Database
programming is complex, storage subsystems are complex but they are known abstractions.
Object-oriented programming languages are also proven concepts. Both have enough
complexity. Mapping one concept to the other and not dividing into further subsystems could
easily sum up to a nightmare of complexity. The easiest way is to separate the concepts of
object-orientation from those of database programming and to separate the object-oriented
database aspects from the relational database aspects. You are then able to exploit wellknown patterns for each of the problem domains. The cost of separated layers has to pay off
with increased maintainability and easier performance tuning.
© Wolfgang Keller 1998 – 2004
page 7