Book contents
- Frontmatter
- Contents
- About the Author
- Foreword
- Preface
- Acknowledgments
- Part I INTRODUCTION TO BUILDING OBJECT APPLICATIONS
- Part II OBJECT-ORIENTED ANALYSIS, DESIGN, AND ARCHITECTURE
- Part III OBJECT-ORIENTED CONSTRUCTION
- Chapter 6 Measuring and Improving the Quality of Your Work—Object-Oriented Metrics
- Chapter 7 Choosing an Object-Oriented Language—Comparing the Leading Languages
- Chapter 8 Building Your Application—Effective Object-Oriented Construction Techniques
- Chapter 9 Making Your Applications Usable—Object-Oriented User Interface Design
- Chapter 10 Making Your Objects Persistent—Object-Orientation and Databases
- Chapter 11 Integrating Legacy Code—Wrapping
- Part IV OBJECT-ORIENTED TESTING
- Part V CONCLUSION
- APPENDICES
- Index
Chapter 10 - Making Your Objects Persistent—Object-Orientation and Databases
from Part III - OBJECT-ORIENTED CONSTRUCTION
Published online by Cambridge University Press: 07 September 2010
- Frontmatter
- Contents
- About the Author
- Foreword
- Preface
- Acknowledgments
- Part I INTRODUCTION TO BUILDING OBJECT APPLICATIONS
- Part II OBJECT-ORIENTED ANALYSIS, DESIGN, AND ARCHITECTURE
- Part III OBJECT-ORIENTED CONSTRUCTION
- Chapter 6 Measuring and Improving the Quality of Your Work—Object-Oriented Metrics
- Chapter 7 Choosing an Object-Oriented Language—Comparing the Leading Languages
- Chapter 8 Building Your Application—Effective Object-Oriented Construction Techniques
- Chapter 9 Making Your Applications Usable—Object-Oriented User Interface Design
- Chapter 10 Making Your Objects Persistent—Object-Orientation and Databases
- Chapter 11 Integrating Legacy Code—Wrapping
- Part IV OBJECT-ORIENTED TESTING
- Part V CONCLUSION
- APPENDICES
- Index
Summary
What We'll Learn in This Chapter
Why your persistence strategy is important for successful application development.
What terminology is commonly used with respect to persistence.
How to map objects to flat files.
How to map objects to relational databases, concentrating on several critical topics: the impedance mismatch; mapping objects to tables; implementing object relationships; inheritance mapping strategies; and mapping success factors.
How to use object-oriented databases and object/relational databases as your persistence mechanism.
Persistence deals with the issue of how one ensures that the objects that he or she works with last, or persist, between invocations of object-oriented applications. In other words, persistence addresses one's strategy for saving objects to permanent storage. There are four common mechanisms used to store objects: flat files, relational databases, object-oriented databases, and object/relational databases. Although you may have heard that mapping objects into a relational database is a nightmare, and it can be if you make a mistake, we'll see in this chapter that using relational databases to store your objects is a very viable approach to persistence.
The vast majority of business objects must be persistent, or in other words they need to be saved to permanent storage so that you can work with them in the future. Fortunately or unfortunately depending on your point of view, we have several mechanisms that we can use to make our objects persistent: flat files, relational databases, object-oriented databases, and object/relational databases. We will cover each of these mechanisms in detail, discussing the issues for how to use them to make your objects persistent.
- Type
- Chapter
- Information
- Building Object Applications that WorkYour Step-by-Step Handbook for Developing Robust Systems with Object Technology, pp. 291 - 342Publisher: Cambridge University PressPrint publication year: 1997