Entering content frame

 Calling the Method java.sql.DriverManager.getConnection 

Use

You can call the method java.sql.DriverManager.getConnection with different parameters. The parameters you choose determine which of the three declarations for this method are used.

Procedures

·        The connection options are specified as part of the connection URL:
getConnection (String url, String user, String password)

·        The connection options, and the name and password of the database user, are specified as part of the connection URL:
getConnection (String url)

·        The connection options, and the name and password of the database user, are specified in an object of the class java.util.Properties:
getConnection (String url)

 

See also:

Examples for Connecting to the Database

 

Leaving content frame