Entering content frame

Procedure documentation Calling the Method java.sql.DriverManager.getConnection Locate the document in the library structure

Use

You can call the method java.sql.DriverManager.getConnection with different parameters. This results in three different options for declaring this method.

Procedures

·        The connection options are specified as part of the connection URL:

getConnection (String url, String user, String password)

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

getConnection (String url)

·        The connection options, name and password of the database user are transferred in an object of the java.util.Properties class:

getConnection (String url, java.util.Properties info)

 

See also:

Examples for Connecting to the Database Instance

 

Leaving content frame