1 | The DriverManager class is used to open a connection to a database via a JDBC Driver, which must be registered with the DriverManager |
2 | DriverManager chooses from a given listof available drivers to suit the explicit type of database connection |
3 | DriverManager maps URL's to drivers |
4 | URL syntax |
5 | jdbc:<subprotocol>:<subname> |
6 | e.g jdbc:msql:naos://naos.npac.syr.edu:2007//stuff |
7 | The above syntax specifies the transport to use (jdbc), the database type (msql), the server name (naos), the port (2007), and the database to connect to (stuff). |