Implementation of a database factory

  • Authors:
  • Asokan R. Selvaraj;Debasish Ghosh

  • Affiliations:
  • -;-

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1997

Quantified Score

Hi-index 0.01

Visualization

Abstract

Object oriented software systems that utilize relational databases for data-store have to deal with the problem of interfacing to the relational data. This aspect of the software is more relevant to the solution domain rather than the problem domain i.e., the business requirements of an application do not dictate that there be a mechanism that allows the application to store and retrieve relational data. Hence, de-coupling the application from the database and its interface is relevant from the perspective of portability that of the application to other kinds of databases. For example, it is conceivable the application may be required to work with relational databases from different vendors. This article shows an adaptation of the Factory Method Pattern and the Abstract Factory Pattern [1] as a generic solution to the problem of de-coupling application code from the underlying database and its associated interface mechanisms.