Translator Press: This article comes from www.techinsite.com.au, is an article about how Delphi establishes a persistent layer, I am in English, translation only for myself, please don't read.
Introduction
As we all know, Delphi can quickly develop a database application, however, because the data connection component is dragged into the application, make you closer to the API of the component. By each data sensing control, your own specific database mode is implemented. Alternative to this is to achieve your own persistent layer frame. This is a hard work and it will cost hundreds of people / hour. However, if this effort is considered appropriate, the results given to you will be stable, generic and maintained systems. In this article, we will implement the TechInsite object persistent layer framework and discuss what model is used to solve many design controversy.
The subject includes: Object persistent layer frame (OPF) and how it can help me? Layer and pattern of object persistence frameworks can help us implement: - Business object model (Composite mode) - Database mapping object (Visitor and Template Method mode - Dynamically exchanged persistence (Adaptor mode and running period) This article will discuss the core of the object - database map, and how these ideas are implemented in Tiopf. We will use this article to use TiOPF to design and implement a real management application. We will start with the narrative system, then construct the business object model. Estably establish a graphical user interface and database connection layer component through Tiopf, and it can be seamlessly connected to a variety of databases.