Connecting to the Database

The application should be isolated from information about the specific database. It should not know which vendor was chosen (e.g. SQL Server vs Oracle), nor should it know where the database is running on the network. Typically, a class is defined that encapsulates all access to the database for the rest of the system. This class is then a façade for the database API, and if you replace the database, you need only replace the façade.

© 1998 by Wrox Press. All rights reserved.