Returns a connection object to the given database URL.
Syntax
getConnection( url )
url.getConnection( )
getConnection( url , properties )
url.getConnection( properties )
getConnection( url , user , password )
url.getConnection( user , password )
Parameters
url
|
the url of the database to use.
|
properties
|
the properties object containing any necessary information.
|
user
|
the user's id.
|
password
|
the user's password.
|
Returns
connection
|
the new connection object to the database.
|
Example
con = getConnection( database )
|