Databases

The Database Connectivity (dbc) API defines Session and RecordSet interfaces:

We can provide a single implementation of the Session interface using the Bridge Pattern:

In fact JDBC API (the Java version of our dbc) uses the Bridge Pattern to connect with drivers. One such driver is a bridge to the ODBC API (the MS version of our dbc):