Design Patterns. How JDBC is Implemented in the Java Programming

Authors

  • Mihai Iolu Transilvania University of Brasov, Romania

Keywords:

design patterns, abstract factory, factory method, Java DataBase Connectivity (JDBC), database drivers

Abstract

Starting from the principles promoted by design patterns, we are going to show how working with databases is implemented in Java. We are going to see that there are two design patterns involved: the Abstract Factory design pattern and the Factory Method. The two methods solve the problem in a very elegant way; they are an example of how to respect some of the main directions that motivate the use of design patterns: “programming to an interface not to an implementation” and “when something varies encapsulate it”.

Author Biography

Mihai Iolu, Transilvania University of Brasov, Romania

Department of Computer Science

Published

2007-05-24

Issue

Section

MATHEMATICS, INFORMATICS