Why is JDBC a typical application of Bridge design pattern?

Viewed 1565

I found from lots of resources that JDBC is a typical example of Bridge design pattern. But they usually didn't tell the details, so I would like to know the details. According to my understanding:

  • Driver interface is the bridge between the DriverManager and the concrete JDBC driver classes
  • Connection interface is the bridge between the Driver and the concrete JDBC connection classes
  • Statement interface is the bridge between the Connection and the concrete SQL statement classes
  • ResultSet interface is the bridge between the Statement and the concete result set classes

Please modify if the my statements are wrong. Also I guess DataSource interface is also a bridge, but I can not figure out that is a bridge between which classes

2 Answers
Related